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

Grid

3 Answers 20 Views
This is a migrated thread and some comments may be shown as answers.
Karthik
Top achievements
Rank 1
Karthik asked on 16 Feb 2012, 12:37 AM
I have a RadGridView, inside which I have a GridViewComboboxColumn. It looks like this.
<br><telerikGrid:GridViewComboBoxColumn Header="Data Source"  ItemsSourceBinding ="{Binding Sources}" DataMemberBinding="{Binding SelectedSourceId}"  DisplayMemberPath="SourceName" SelectedValueMemberPath="sourceId" EditTriggers="CellClick"></telerikGrid:GridViewComboBoxColumn>


I seem to be facing this issue. I require two clicks for the drop down box to open. I have read from many different posts here, people have had similar problems, but most of them were WPF in which case I could write a listener for ValueChanged or SelectionChanged. But this is Silverlight and I havent found a property for ValueChaned on RadGridView or GridViewComboBoxColumn. Any ideas on how to have the drop down show upon on click of the Combobox column?

On a similar note, I see that the item that I select from the combo box does not get bound to the property in view model until I focus elsewhere on the grid. In other words, I double click the combobox, select an item from the drop down, at this moment I expect "SelectSourceId" to be bound with value that I selected, but it is not until I click elsewhere in the grid the value is bound.

Any ideas what is happening here? Any help would be greatly appreciated
(PS i realize that these two might be two separate issues, if it is I apologize for posting it under the same thread)

Thanks
K

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 16 Feb 2012, 07:36 AM
Hi Karthik,

Please take a look at this forum thread for a reference on the first issue. Considering the second one, this is the expected behavior since the grid commits the edit once the cell loses the focus. If you want the property to be updated right away, you can try defining RadComboBox for a CellTemplate/ CellEditTemplate. 

Kind regards,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Karthik
Top achievements
Rank 1
answered on 16 Feb 2012, 07:41 AM
Maya,

Thanks for the suggestion. I will sure try the option that was provided in the other thread. As far as the second issue goes, can you provide me with an example for defining CellTemplate/ CellEditTemplate Silvelight GridViewComboboxColumn please?

Thanks
K
0
Maya
Telerik team
answered on 16 Feb 2012, 07:48 AM
Hello Karthik,

You can take a look at this article for a reference, The approach is the same with the difference that you should define RadComboBox control instead. 

Greetings,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Asked by
Karthik
Top achievements
Rank 1
Answers by
Maya
Telerik team
Karthik
Top achievements
Rank 1
Share this question
or