c# - onSelectRow is not responding -
i want when select row show grid info according section id of currebt row "onselectrow" not responding when select row
$(document).ready(function () { $("#deptinsertionmode").val(true); createdialogform(); $("#gridlist").jqgrid({ datatype: "json", url: '<%: url.action("getalldepartments", "departments") %>', editurl: '', colnames: ['deptid', 'departments', '', ''], colmodel: [{ name: 'deptid', index: 'deptid', align: 'center', hidden: true }, { name: 'deptname', index: 'deptname' }, { name: 'editlink', index: 'editlink', formatter: 'showlink', formatoptions: { baselinkurl: 'javascript:', showaction: "updatedept('", addparam: "');" } }, { name: 'deletelink', index: 'deletelink', formatter: 'showlink', formatoptions: { baselinkurl: 'javascript:', showaction: "removedept('", addparam: "');" } }], pager: '#paginator', gridview: true, sortname: 'deptid', sortorder: 'desc', width: '300', height: '500', caption: "departments list", viewrecords: false, //multiselect: true, rownum: 20, rowlist: [5, 10, 20, 50], onselectrow: function (rowindex) { var departmenid = $(this).jqgrid().getcell(rowindex, 'deptid'); var url = '<%: url.action("getcoursesbydept", "departments") %>?deptid = ' + departmenid; $("#courseslist").jqgrid().setgridparam({ url: url }).trigger("reloadgrid"); } });
c# jqgrid
No comments:
Post a Comment