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

[Solved] Events and Properties GridViewComboBoxColumn

3 Answers 377 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marlos
Top achievements
Rank 1
Marlos asked on 10 Nov 2010, 01:38 PM
Good morning,
I wonder if the column already RadGridView GridViewComboBoxColumn
accepts SelectionChanged event and SelectedItem property.

How do I get these event and this property?

I'm using a tip from other forums that would add an event
my page

this.AddHandler (RadComboBox.SelectionChangedEvent, new
RoutedEventHandler (this.OnComboSelectionChanged), true);

The problem is how to identify the combobox firing the event that is already
that the property is always empty.

Example:
RadComboBox sourceComboBox = ((Telerik.Windows.Controls.SelectionChangedEventArgs) args). Source as RadComboBox;

sourceComboBox. Name is always empty.

Can anyone help me?

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 10 Nov 2010, 02:06 PM
Hi Marlos,

You may take a look at this blog post (point 3) demonstrating how to subscribe to SelectionChanged event of the RadComboBox.
 

Greetings,
Maya
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
Marlos
Top achievements
Rank 1
answered on 10 Nov 2010, 02:15 PM
Good morning,

My problem is I have several ComboBox on my page, including
ItemSource the same type,
so the event is fired for each combobox.

ComboBox How to tell which is firing the event, as the name is always
empty?
0
Maya
Telerik team
answered on 10 Nov 2010, 03:24 PM
Hi Marlos,

In case you are defining GridViewComboBoxColumn and your requirement is to know which exactly comboBox fires the SelectionChanged event, i. e. on which row, you may use the ParentOfType<GridViewRow> extension method and get the corresponding row.


Kind regards,
Maya
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
Tags
GridView
Asked by
Marlos
Top achievements
Rank 1
Answers by
Maya
Telerik team
Marlos
Top achievements
Rank 1
Share this question
or