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

Feature request GridviewComboBoxColumn

4 Answers 98 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Flemming
Top achievements
Rank 1
Flemming asked on 22 Jun 2010, 02:28 PM
I'd like to have 'SelectionChanged' event on GridViewComboBoxColumn, like it is on a 'normal' RadComboBox.
/Flemming

4 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 22 Jun 2010, 02:31 PM
Hi Flemming Clausen,

Please have a look at point 3 in my blogpost. I believe it offers a solution .

Regards,
Pavel Pavlov
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
Flemming
Top achievements
Rank 1
answered on 22 Jun 2010, 02:48 PM
Yes, this will fulfill my needs, right now; I just find it so much easier to hook up an event  from xaml.
0
Vinicius Maeda
Top achievements
Rank 1
answered on 09 Sep 2010, 09:22 PM
I tried convert the follow code to vb.net but I got a error (Bold selection)

C#
this.AddHandler(RadComboBox.SelectionChangedEvent, new Telerik.Windows.Controls.SelectionChangedEventHandler(comboSelectionChanged));


VB.Net
AddHandler RadComboBox.SelectionChangedEvent, AddressOf comboSelectionChanged


Private Sub comboSelectionChanged(ByVal sender As Object, ByVal e As Telerik.Windows.RadRoutedEventsArgs)

The error that I got is:
'SelectionChangedEvent' is not an event of 'Telerik.Windows.Controls.RadComboBox'


0
Pavel Pavlov
Telerik team
answered on 13 Sep 2010, 02:40 PM
Hello Vinicius Maeda,

Here is some working code I have tested in VB :
Imports Telerik.Windows.Controls
Imports Telerik.Windows
  
Partial Public Class MainPage
    Inherits UserControl
  
    Public Sub New()
        InitializeComponent()
        Me.AddHandler(RadComboBox.SelectionChangedEvent, New Telerik.Windows.Controls.SelectionChangedEventHandler(AddressOf comboSelectionChanged), True)
    End Sub
  
    Private Sub comboSelectionChanged(ByVal sender As Object, ByVal e As Telerik.Windows.RadRoutedEventArgs)
        MessageBox.Show("Selection changed")
    End Sub
  
End Class

Let me know in case you have any troubles implementing this.

Regards,
Pavel Pavlov
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
Flemming
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Flemming
Top achievements
Rank 1
Vinicius Maeda
Top achievements
Rank 1
Share this question
or