I have a grid that contains checkbox
<ej:Grid ID="grdPage"
runat='server'
MinWidth="600"
Height="108%"
EnableTheming="true"
IsResponsive="true"
AllowScrolling="false"
AllowSorting="true"
AllowMultiSorting="true"
AllowResizing="true"
AllowPaging="false"
EnableTouch="true"
GridLines="None">
<Columns>
<ej:Column Field="Code" Visible="false"></ej:Column>
<ej:Column Field="MenuCode" Visible="false"></ej:Column>
<ej:Column Field="Name" HeaderText="ชื่อหน้าจอ" Width="150" TextAlign="Left" AllowEditing="false"></ej:Column>
<ej:Column Field="AllowRead" HeaderText="อ่าน" Width="20" TextAlign="Left" displayAsCheckBox="true" editType="booleanedit"></ej:Column>
<ej:Column Field="AllowInsert" HeaderText="เพิ่ม" Width="20" TextAlign="Left" displayAsCheckBox="true" editType="booleanedit"></ej:Column>
<ej:Column Field="AllowUpdate" HeaderText="แก้ไข" Width="20" TextAlign="Left" displayAsCheckBox="true" editType="booleanedit"></ej:Column>
<ej:Column Field="AllowDelete" HeaderText="ลบ" Width="20" TextAlign="Left" displayAsCheckBox="true" editType="booleanedit"></ej:Column>
<ej:Column Field="AllowPrint" HeaderText="พิมพ์" Width="20" TextAlign="Left" displayAsCheckBox="true" editType="booleanedit"></ej:Column>
</Columns>
<EditSettings AllowEditing="True"></EditSettings>
<ToolbarSettings ShowToolbar="True" ToolbarItems="edit,update"></ToolbarSettings>
</ej:Grid>
after i select template from dropdown i want to load template and bind to my grid , but this code not working.
function permissionChange(e) {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: '<%=ResolveUrl("Users.aspx/GetPermissionGroup")%>',
data: '{group: "' + e.value + '" }',
datatype: "json",
success: function (result) {
$('#<%=grdPage.ClientID%>').ejGrid({
dataSource: jQuery.parseJSON(result.d).menuPermistList
});
$('#<%=grdCompanyList.ClientID%>').ejGrid({
dataSource: jQuery.parseJSON(result.d).companyPermissionList,
});
$('#<%=grdAccountGroup.ClientID%>').ejGrid({
dataSource: jQuery.parseJSON(result.d).accountGroupPermistList
});
},
error: function (xmlhttprequest, textstatus, errorthrown) {
swal("Can not get permission group!");
console.log("error: " + errorthrown);
}
});
}