Hi Jorge,
Thanks for contacting Syncfusion support.
We can make any field or particular cell read only with the help of “BeginEdit” client side event. Please refer the below code example for details.
<ej:treegrid ID="Treegrid" runat="server"
//…
BeginEdit="beginedit">
<script type="text/javascript">
function beginedit(args) {
if (args.columnIndex == 5 && parseInt(args.data.PercentDone) > 100) {
args.cancel = true;
}
}
</script>
|
Here we have cancelled the editing event when we attempt to edit the percentage column value is greater than 100.
We have also prepared a sample based on this, and you can find the sample under the following location.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/cellEdit1796809052
Regards,
Mahalakshmi K.