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

ComboBoxColumn conundrum

2 Answers 16 Views
GridView
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 05 May 2015, 02:46 PM
Hi, I have
an ID hidden column in my grid and a separate comboboxcolumn linked to the ID
in order to display a text linked to this ID property. This works as expected, the
user being able to indirectly change the ID by selecting the appropriate entry
in the combobox column,

…but

My scenario
is that after this ID is selected by the user and saved to the database then it
should not be allowed t be edited going forward. For example when loading past
data the combobox column property should be read only in order to prevent the
user from changing this value.

The problem
is that if I set the comboboxcolumn property to read only I cannot select a
value when I try to insert a new row, the combobox column is locked and
displays no value at all.

Can you
please suggest a way to implement this need?

 
Regards,

 

George

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 08 May 2015, 07:26 AM
Hello George,

Thank you for writing.

It is suitable to use the RadGridView.CellBeginEdit event. You can cancel it when the edit operation is not allowed.

I hope this information helps. Should you have further questions, I would be glad to help.
 
Regards,
Dess
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
George
Top achievements
Rank 1
answered on 08 May 2015, 12:41 PM

Thank you, that worked fine.

 

Regards,

 

George

Tags
GridView
Asked by
George
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
George
Top achievements
Rank 1
Share this question
or