On click of Title in SharePoint List 2013 open dialog box of view in maximized window.
Go to Allitems.aspx page of SharePoint list. Add HTML form web part.
In Source editor erase existing code and add below code:
<script src="path for jquery-1.11.1.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
ExecuteOrDelayUntilScriptLoaded(_maximizeWindow, 'sp.ui.dialog.js');
function _maximizeWindow() {
var currentDialog = SP.UI.ModalDialog.get_childDialog();
if (currentDialog != null && !currentDialog.$Q_0) {
currentDialog.$1Y_0(); // sets current dialog form state to maximize
}
}
});
</script>
Go to Allitems.aspx page of SharePoint list. Add HTML form web part.
In Source editor erase existing code and add below code:
<script src="path for jquery-1.11.1.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
ExecuteOrDelayUntilScriptLoaded(_maximizeWindow, 'sp.ui.dialog.js');
function _maximizeWindow() {
var currentDialog = SP.UI.ModalDialog.get_childDialog();
if (currentDialog != null && !currentDialog.$Q_0) {
currentDialog.$1Y_0(); // sets current dialog form state to maximize
}
}
});
</script>
No comments:
Post a Comment