.net - Refresh serial number after update Kendo Grid -
i have kendo grid , insert serial number following:
var rownumber = 0; function resetrownumber(e) { rownumber = 0; } function rendernumber(data) { return ++rownumber; }
it loads serial number order when edit-update record in row of kendo grid serial number start last serial number. want serial number order in proper after grid updation. can me this? in advance..
i have tried databounding.. working good. have included grid code here .
@(html.kendo().grid<ssrwaweb.models.mydatawrappers.viewmyjobitem>() .name("grid") .columns(columns => { columns.template(t => { }).title("line no").clienttemplate("#= rendernumber(data) #"); columns.bound(c => c.line_num).title("line #"); columns.bound(c => c.part_num).title("part number"); }) .events(e => { e.edit("assignnumber"); e.save("orderupdate"); e.cancel("cancelchanges"); e.databound("resetrownumber"); e.databinding("reseteditrownumber"); })
thank you..
Comments
Post a Comment