Hi Talha,
Thanks for contacting Syncfusion Forums.
QUERY: Is there any way to make this checkbox disabled if editmode off?
From your query we understand that the checkbox column is editable even when "allowEditing" is set to false when the "editMode" is set as "batch". We can disable the checkbox by setting "disabled" property of checkbox to true in the dataBound event of grid.
Please check the below sample,
Please check the below code snippet,
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
dataBound: function(args){
if(!this.model.editSettings.allowEditing && this.model.editSettings.editMode == "batch") {
$('input[type="checkbox"]').attr("disabled", true);
}
},
-------
});
});
</script>
|
If you have further queries, please get back to us.
Regards,
Padmavathy Kamalanathan