I am saving the sort order in database as
{selected:null,field:"[{name:\"selection\",width:52},{name:\"issuedate\",width:212},{name:\"sellercountry\",width:81},{name:\"buyercountry\",visible:false},{name:\"poreference\",visible:false},{name:\"sellername\",width:101},{name:\"buyername\",width:104},{name:\"ordercurrency\",visible:false},{name:\"orderamount\",width:30},{name:\"outstandingamount\",visible:false},{name:\"status\",width:149},{name:\"substatus\",visible:false},{name:\"action\"},{name:\"export\",width:137}]",sort:" {fieldName:\"sellercountry\",sortDir:true} "}
I am extrating it as
var gridPreferences = '${userPreferencesModel.gridPreferences}';
When I try to apply it on listgrid as
ListGrid.setViewState(gridPreferences); it is not getting appplied. Please assist me on this at the earliest.
{selected:null,field:"[{name:\"selection\",width:52},{name:\"issuedate\",width:212},{name:\"sellercountry\",width:81},{name:\"buyercountry\",visible:false},{name:\"poreference\",visible:false},{name:\"sellername\",width:101},{name:\"buyername\",width:104},{name:\"ordercurrency\",visible:false},{name:\"orderamount\",width:30},{name:\"outstandingamount\",visible:false},{name:\"status\",width:149},{name:\"substatus\",visible:false},{name:\"action\"},{name:\"export\",width:137}]",sort:" {fieldName:\"sellercountry\",sortDir:true} "}
I am extrating it as
var gridPreferences = '${userPreferencesModel.gridPreferences}';
When I try to apply it on listgrid as
ListGrid.setViewState(gridPreferences); it is not getting appplied. Please assist me on this at the earliest.
Comment