jQWidgets Forums
jQuery UI Widgets › Forums › Grid › groupindentwidth with autoloadstate
Tagged: datagridview
This topic contains 2 replies, has 2 voices, and was last updated by gediminas 11 years, 10 months ago.
-
Author
-
Hey!
Is it just me or does the grid reset the groupindentwidth to 56px when I use autoloadstate with server side data? I even explicitly set the groupindentwidth to 20, but that only works when no filters are loaded from the saved state.Hi,
Please include the following information in your post:
– jQuery version, jQWidgets version, device type(PC, Mobile), browser name and version.
– Please, provide step by step instructions on how to reproduce the reported behavior and provide a small sample which demonstrates it.Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hey!
Found the problem!
jQUery v. 1.9.1, jqWidgets 2.9.2, PC, Chrome; Firefox; Opera.
In my grid I had grouping, autoloadstate and autosavestate enabled. In addition, the last column contained no info, only a delete button. This column had no datafield assigned. Then the groupindentwidth got the width of the delete button column. Plus I had weird rendering issues with the delete column itself. I assigned the column a dummy datafield and all works as expected now.
This was stored in the browser’s localstorage (note the null in the columns array):{
“width”: “100%”,
“height”: “100%”,
“pagenum”: 0,
“pagesize”: 10,
“pagesizeoptions”: [
“5”,
“10”,
“20”
],
“selectedrowindexes”: [],
“selectedrowindex”: -1,
“filters”: {
“terminaloperator”: “and”,
“filtervalue0”: “2”,
“filtercondition0”: “EQUALS”,
“filteroperator0”: 1,
“filterdatafield0”: “terminal”,
“filtertype0”: “stringfilter”,
“filterscount”: 1
},
“groups”: [
“manifest_id”
],
“columns”: {
“null”: {
“width”: 56,
“hidden”: false,
“pinned”: false,
“groupable”: true,
“resizable”: true,
“draggable”: true,
“text”: “Atšaukti”,
“align”: “center”,
“cellsalign”: “left”,
“index”: 0
},
“scheduled_pick_up_date_time”: {
“width”: 130,
“hidden”: false,
“pinned”: false,
“groupable”: true,
“resizable”: true,
“draggable”: true,
“text”: “Priskirtas paėmimo laikas”,
“align”: “left”,
“cellsalign”: “left”,
“index”: 1
},
// …
}
} -
AuthorPosts
You must be logged in to reply to this topic.