Hi:
I have a RadGridView that essentially creates a property page. Mostly, these are just text entries with some validation for integers, doubles, etc. However, I have one row that requires a dropdown. I'm looking at the BeginningEdit event and trying to figure out how I can make the dropdown appear over the cell I want to edit. Then I define a selection changed event to store the resulting selection away and to populate the cell with the new value.
The start of my code looks like this:
I don't want to define a contenttemplate for the whole column, just for one cell, so I think I need to do it dynamically. How can I accompliish this?
Thanks in advance,
Terry
I have a RadGridView that essentially creates a property page. Mostly, these are just text entries with some validation for integers, doubles, etc. However, I have one row that requires a dropdown. I'm looking at the BeginningEdit event and trying to figure out how I can make the dropdown appear over the cell I want to edit. Then I define a selection changed event to store the resulting selection away and to populate the cell with the new value.
The start of my code looks like this:
RadComboBox combo = new RadComboBox(); |
combo.Items.Add( new RadComboBoxItem(){ Content = new TextBlock(){ Text = "Banner" } } ); |
combo.Items.Add( new RadComboBoxItem(){ Content = new TextBlock(){ Text = "HTML" } } ); |
combo.Items.Add( new RadComboBoxItem(){ Content = new TextBlock(){ Text = "PDF" } } ); |
combo.SelectionChanged += new Telerik.Windows.Controls.SelectionChangedEventHandler(combo_SelectionChanged); |
e.Cell... // how to I make the combobox appear over the cell? |
Thanks in advance,
Terry