Set default value on GridViewComboBoxColumn in a RadGridView

1 Answer 65 Views
GridView
Anders
Top achievements
Rank 1
Iron
Veteran
Iron
Anders asked on 01 Sep 2023, 02:17 PM

Hi,

I am populating a GridViewComboBoxColumn in RadGridView with data from an ArrayList.

How to set a default value on the column (using index from ArrayList or maybe just using string compare) on grid load?

Please advise.

/Br. Anders

1 Answer, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 04 Sep 2023, 03:42 PM

Hello, Anders,

RadGridView offers a CellEditorInitialized event which gives you access to the activated editor (RadDropDownListEditor) and can adjust any settings you want. The RadDropDownListEditorElement.SelectedIndex property allows you to specify what item to be selected in the drop down once it is initialized.

The following forum thread is quite useful on this topic: https://www.telerik.com/forums/radgridview---default-option-in-gridviewcomboboxcolumns#2156205 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Anders
Top achievements
Rank 1
Iron
Veteran
Iron
commented on 13 Sep 2023, 08:38 AM

Hi Dess,

Thanks!

/Br. Anders

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