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

How-to make readonly colum visible in editform

5 Answers 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
improwise
Top achievements
Rank 1
Iron
Iron
improwise asked on 01 Aug 2010, 11:31 AM
When you select a column in RadGrid as "read only" it will be hidden in Edit and Insert mode, which can be good sometimes, but other times, you want to show it, but I dont know how to do this with RadGrid? With the standard Microsoft controls this is possible, and the column will be rendered in a read only mode (like label instead of textbox).

Even better would be if you could hide a column in the "view part" of the RadGrid, and only make it visible in the Edit/Insert part, but then have the option to choose if it should be read only or not. One reason for doing this could be the lack of an Telerik DetailsView, which can be very handy when you have a table with to many columns to fit the screen horizontaly, and which you want to show verticaly instead. When you think of it, the RadGrid in EditForm or Popup mode is actually quite similar to a DetailsView, in that way that it renders verticaly instead of horizontally, and could in many cases be used as a substitute for a Detailsview. This is especially true if Telrik put in some extra development effort into the RadGrid in this area (or maybe it is already there and I just dont know about it?)

5 Answers, 1 is accepted

Sort by
0
improwise
Top achievements
Rank 1
Iron
Iron
answered on 01 Aug 2010, 11:38 AM
I realize that it could probably be accomplished by converting those columns to template columns instead of making them read only, and manually replace the controls with the static counterpart (like replacing a textbox with a label) but that is a lot of extra work, and it would probably be a bit hard to maintain in the long run....
0
Pavlina
Telerik team
answered on 04 Aug 2010, 07:36 PM
Hi Patrik,

You might view this help topic on Updating values in-place and with edit forms, where you will find detailed example on how to handle the UpdateCommand event on a ReadOnly column.

Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
improwise
Top achievements
Rank 1
Iron
Iron
answered on 11 Aug 2010, 09:13 PM
Thanks for the link but that isn't really the solution I was looking for here. It would be much nicer if you could modify this using a property design time, for the reasons outlined in my first post. Could you please forward this request to your development team as I think it would be something that more people than we would benefit from?
0
Pavlina
Telerik team
answered on 16 Aug 2010, 03:23 PM
Hi Patrik,

I have forwarded your request to our development team for further investigation. Do not hesitate to contact us if other questions or problems arise.

Sincerely yours,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
improwise
Top achievements
Rank 1
Iron
Iron
answered on 16 Aug 2010, 05:13 PM
Thank you very much! Now, if you could also ask them to put in the LocalizationPath for the RadGrid (something that should have been obvious from the start I think) then it would be really nice.
Tags
Grid
Asked by
improwise
Top achievements
Rank 1
Iron
Iron
Answers by
improwise
Top achievements
Rank 1
Iron
Iron
Pavlina
Telerik team
Share this question
or