I want to disable whole Row, all its text content, actioncolumns, editors etc.
Share
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.
not really possible. I mean it’s not in the framework. You can mark a record (=row) as disabled. You could add the functions setDisabled/getDisabled to the model of the store. Then you can call something like:
grid.getStore().getAt(0).setDisabled(true)for the first recordfunction for the model:
now you can listen for that event, get the disabled/enabled state. If it’s disabled you could add a class to that row (
addRowCls( )–removeRowCls( )) for the visuals. You can listen for the edit event. Then you can prevent editing when the record is disabled.Not really an out of the box solution but use a little imagination and you’ll get there! Hope it helps 😉