jQWidgets Forums
jQuery UI Widgets › Forums › Grid › 3.0.3 Grid Load/Save State
Tagged: datagridview
This topic contains 2 replies, has 2 voices, and was last updated by userbob 11 years, 7 months ago.
-
Author
-
Hi,
Putting 3.0.3 codebase in place our grids no longer save and load states correctly, the columns are reordered with no apparent logic. Interestingly the local state is only saved on grid usage, whereas using 3.0.2 the local state appears to be created on grid creation.
window.selectorCache.search_transmissions_grid .jqxGrid({ width : '100%', height : '100%', rowdetails : true, initrowdetails : tm_initrowdetails, rowdetailstemplate : { rowdetails : "<div style='margin: 0.5em; float:left;'>" + "<ul style='margin-left: 2.5em;'>" + "<li>" + searchNLS.transactions + "</li>" + "<li>" + searchNLS.events + "</li>" + "</ul>" + "<div></div>" + "<div></div>" + "</div><div style='float: left; width: 100px; height: 100%;'>" + "</div><div style='float:left; width : 300px; height : 100%'></div><div style='float: left; width: 100px; height: 100%;'></div>" + "<div></div>", rowdetailsheight : 250, rowdetailshidden : true }, source : transmissions.dataAdapter, groupable : true, columnsresize : true, columnsreorder : true, sortable : true, filterable : true, sorttogglestates : 2, enablebrowserselection : true, theme : window.theme, rowsheight : 30, autosavestate : true, autoloadstate : true, autoshowfiltericon : true, selectionmode : 'none', columns : [ { text : searchNLS.date, datafield : 'datetime_received', width : '200', filtertype : 'date', cellsformat : 'd' }, { text : searchNLS.sender_name, datafield : 'sender_name', width : '350', filtercondition : 'STARTS_WITH_CASE_SENSITIVE' }, { text : searchNLS.receiver_name, datafield : 'receiver_name', width : '350', filtercondition : 'STARTS_WITH_CASE_SENSITIVE' }, { text : searchNLS.message_type, datafield : 'message_type', width : '200', filtercondition : 'STARTS_WITH_CASE_SENSITIVE' }, { text : searchNLS.sender_ref, datafield : 'sender_ref', width : '200', filtercondition : 'STARTS_WITH_CASE_SENSITIVE' }, { text : searchNLS.status, datafield : 'status', cellclassname : statuscellclass, width : '150', filtercondition : 'STARTS_WITH_CASE_SENSITIVE' }, { text : searchNLS.unique_file_ref, datafield : 'unique_file_ref', columntype : 'imagerenderer', width : '200', filtercondition : 'STARTS_WITH_CASE_SENSITIVE', cellsrenderer : function(row) { return "doessomething"; } }, ] });
Hi userbob,
I confirm that when you have “rowdetails” enabled and when you reorder a column, save the state and then load the state, the columns order is not loaded correctly.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comthanks, I will wait on 3.0.4 for a fix (hopefully)
-
AuthorPosts
You must be logged in to reply to this topic.