javascript - How to call dojo function on JSON object -


i working on project in dojo , struck @ point.

i using dgrid in dojo generate table , need have checkbox in first column.

here code working fine requirement different.

i taking values headers , data json file

here json file abc.json :

{ "properties": {     "dataloading": "full",     "classnames": ["abc"],     "autorefresh": 60,     "sort" : [ {"attribute":"raisetime", "decending":true} ] }, "columns": [     [[          { "field":"abc","label":"my label","sortable":true },         { "field":"def","label":"second label","sortable":true }     ]],     [[         { "field":"fgh", "label":"third label","sortable":true },         { "field":"ijk", "label":"fourth label","sortable":true } ]]] 

}

but have checkbox feature in table should have :

var grid = new selectiongrid({     columns: [         selector({ label: '' }),         { field: 'firstname', label: 'first name', sortable: false },         { field: 'lastname', label: 'last name', sortable: false }     ],     selectionmode: 'none' }, 'grid'); 

so, in json need call selector() on label. how can in json ? there way?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -