This is a migrated thread and some comments may be shown as answers.

[Solved] Record editable based on condition

0 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jivan
Top achievements
Rank 1
Jivan asked on 27 Sep 2011, 08:09 PM
I'm using telerik grid to display mymodel collection. Everything is working fine as expected and I'm able to add new record update the existing record. The model used contains a property IsEditable. I want to enable user to edit only that row that contains value of IsEditable true for that record.

As my partial view using model of IEnumerable of mymodel.

Please help me how I can ensure that if there are 5 records with 3rd and 5th record with value IsEditable=true then user should be able to edit only 3rd and 5th record only and other records should be readonly.

For editing, I'm using Inline Edit functionality of telerik grid

I'm using C# .Net 4.0, Razor view engine, ASP.Net MVC 3.
Tags
Grid
Asked by
Jivan
Top achievements
Rank 1
Share this question
or