DHTMLX Grid : Locking Unlocking row, Paging functionality wi

Hi,

I want to have functionality of locking a row of data in Grid, using JSON.

I can do it with XML using locked attribute in row, but how to do same with JSON object ?

Actually I want functionality of editing a row ONLY if I click on “Edit” option of context menu in Grid.



Also I want to do paging with JSON object in Grid, please tell me how to do it.

>> I want to have functionality of locking a row of data in Grid, using JSON.

The default grid doens’t provide such ability, but you can use attached patch, with it row can be locked from json as well

{
    id:“some”,
    data:[“1”,“2”,“3”,“4”],
    locked:true
}

>> Also I want to do paging with JSON object in Grid, please tell me how to do it.
Paging works for any datasource, so just enable paging, same as for XML , and load json data.
    dhtmlx.com/docs/products/dhtmlxG … 4413270000

dhtmlxgrid_json.zip (994 Bytes)

Hi, Thanks for the patch, but side - effect of this is that I am not able to add the Drag and Drop feature in the grid with JSON object. Please solve this.

Problem can’t be reconstructed - the d-n-d works correctly while loading data from json based dataset.
Sample attached

1214483228.zip (91.6 KB)