Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a specific requirement in the web grid used in MVC4 razor engine.
In this I have to have editable text boxes in a column in the web grid.
Also in the same column for few rows those text boxes should be not editable.


For Example:

It is like in a shopping portal, While adding a product to the cart,
if I select a product of a particular type product and add to the cart, then the product should add to the cart with the editable text box for quantity.

At the same time if I select a product which is optional accessory of the first selected product then the default quantity will be 1 and non editable.


Can we have a mixed mode of editing in the same column?
Please help in this.


Thanks & Regards,
Mathi.
Posted
Comments
Ranjeet Patel 25-Jun-14 7:46am    
Here is a suggestion for you. You make your own grid and take all the property in your model.
and then take one more propery isEditable. you can set it true or false by your requirement by C# code or jquery code too.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900