1. Karthik
    Karthik avatar
    15 posts
    Member since:
    Feb 2012

    Posted 15 Feb 2012 Link to this post

    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
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 16 Feb 2012 Link to this post

    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 >>
  3. Karthik
    Karthik avatar
    15 posts
    Member since:
    Feb 2012

    Posted 16 Feb 2012 Link to this post

    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
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 16 Feb 2012 Link to this post

    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 >>
Back to Top