Is it possible to disable specific rows displayed in a dojo dgrid?
I want to still display them, but not allow the user to select/edit them.
Let’s say that out of 10 rows that my dgrid has, I want to disable 3.
Cheers
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The editor plugin supports a
canEditfunction on the column definition object in cases whereeditOnis specified. This function receives the data item for the row, and the value to be rendered (e.g. as determined by the column’sfieldor itsgetfunction). Returningfalsefrom this should result in the cell for that particular row not being editable.The Selection mixin supports an
allowSelectmethod which receives a row object (i.e. as produced bygrid.row(...)), and determines whether that row is selectable based on its return value.