Jqgrid and record how to set width

How to set default view width from grid. The default value is 300 pixels, but I can not find the documentation on how to change it. I could find information about changing the default editing width, but not the view.

+4
source share
1 answer

The place of documentation is here . You can specify the width in the parameters of the viewGridRow method. You call the method directly, like here

 onSelectRow: function (id) { $(this).jqGrid('viewGridRow', id, {width: 500}); } 

or you can use the View icon in the navigation bar:

 $("#list").jqGrid('navGrid', '#pager', {add: false, edit: false, del: false, search: false, view: true}, {/*edit options*/}, {/*add options*/}, {/*del options*/}, {/*search options*/}, {width: 500}); 
+5
source

Source: https://habr.com/ru/post/1381757/


All Articles