Skip to content

set_form_dimension issue in bootstrap theme

Problem:


I'm having an issue with set_form_dimension. No matter how I set it, there is no effect on size. Screenshots of what it looked like previously and what it looks like now are attached. Any ideas?

Solution:


It is because the newer versions uses bootstrap framework for layout. Previously your grid was using jQuery UI for layout. If you look at "Edit Form Layout" sample on https://demo.phpcontrols.com/

The set_form_dimension() function only can apply to non-bootstrap themes such as ‘aristo’ or ‘cobalt’. For Bootstrap themes, it has no effect as the layout is managed by the Bootstrap framework.

Another thing you can try is to go to datagrid.css and find the following class and change width accordingly.

.modal.ui-jqgrid-bootstrap.ui-jqdialog {
    width: 600px !important;
}

Feedback and Knowledge Base