Queries |
Response | |
“Is there a way to make a specific row read-only based on a column value?” |
Yes, we can make a specific row read-only by defining args.cancel as true in BeginEdit event of ejGrid. This event triggers before the record is edited. In this event, we get the row details in the arguments. Using for loop, we can get each column value and stop the editing by defining args.cancel as true. Please find the code example and sample:
Sample: http://www.syncfusion.com/downloads/support/forum/121827/ze/Sample1185771817393863 Refer to the Help document for Beginedit event, http://help.syncfusion.com/js/api/ejgrid#events:beginedit | |
“Also how can a column be made read-only based on another column value e.g. Boolean or DateTime” |
We can make the column read only using actionComplete event of ejGrid. In this event, we check the condition with the requestType, and disable the CustomerID column by adding the disabled attribute. Please find the code example and sample:
Refer to the following actionComplete event Help document, http://help.syncfusion.com/js/api/ejgrid#events:actioncomplete |
Hi Prasanna,Ignore my previous request think I have figured it outRegardsPrasanth
We will update the mentioned thread shortly.
Regards,
Prasanna Kumar N.S.V