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

[Solved] Show column in grid with no edition

1 Answer 81 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.
Pablo
Top achievements
Rank 1
Pablo asked on 05 Sep 2011, 11:24 AM
Hi all,

I'm using a telerik grid and would like to show three columns a,b and c. However, when adding or editing a row, I don't want to allow the user to enter the data of column c as this is gonna be calculated by the server in the controller. I just want the user to enter both values for columns a and b, but after the row has been added/edited, i do want to display column c in the grid.

Which would be the best way to do this?

Thanks a lot

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 05 Sep 2011, 02:49 PM
Hi Pablo,

You could make that column read-only.
e.g.
columns.Bound(o => o.calcVal).ReadOnly();

Regards,
Georgi Tunev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Pablo
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or