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

Exit edit mode when an item is selected in a GridViewComboBoxColumn editor

2 Answers 782 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Veteran
Matt asked on 12 Oct 2020, 08:24 PM

Hi all,

I have a grid that uses the GridViewComboBoxColumn column type.  We're trying to give it very fast action.  We want the cell to commit the edit and exit edit mode immediately after selecting a value in the combo box of the column.

How can this be done?  I see there's a RadMultiColumnComboBox.SelectionChanged event where an EndEdit could be called, but we're not using multi-column combo boxes.

Thanks!
Matt

2 Answers, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 15 Oct 2020, 07:55 AM

Hi Matt,

Such behavior can be achieved by hooking up to the SelectionChanged event of the RadComboBox that GridViewComboBoxColumn uses for its editing operation. This is discussed in detail in the Handle SelectionChanged for GridViewComboBoxColumn topic. In the event handler, you can call the CommitEdit method of RadGridView as shown in the article.

I hope this article is helpful.

Regards,
Dinko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Matt
Top achievements
Rank 1
Veteran
answered on 16 Oct 2020, 12:28 PM
Thanks Dinko!  Works great!
Tags
GridView
Asked by
Matt
Top achievements
Rank 1
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Matt
Top achievements
Rank 1
Veteran
Share this question
or