RadGridViewComboBoxColumn need to be able to allow other options than list contains

4 posts, 1 answers
  1. Ryan Overton
    Ryan Overton avatar
    12 posts
    Member since:
    Oct 2009

    Posted 16 Apr 2010 Link to this post

    Is it possible to show a value that is not part of the ItemsSource of the combobox? My observablecollection contains 1,2,3,4, but the value I have assigned to the databound field is 10.

    Below is my current column setup.
    <telerik:GridViewComboBoxColumn Header="Weld ID" x:Name="ddWeldID" DataMemberBinding="{Binding WeldID}" DisplayMemberPath="WeldID" SelectedValueMemberPath="WeldID" 
                                                        IsComboBoxEditable="True" /> 


    WeldID contains the value 24, but the ItemsSource I bind to the combobox contains the values 1,2,3,4. When I load the grid, 24 is not displayed in the column, but if I add the value 24 as one of the dropdown options, it gets displayed in the column.

    Any help would be much appreciated!

    Ryan
  2. Answer
    Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 20 Apr 2010 Link to this post

    Hello Ryan Overton,

    Currently the GridViewComboBox column does not support a scenario where a value not in the ItemsSource shall be displayed.

    The best workaround here would be to use a regular column , with a RadComboBox placed in the cell template.  Then maybe by  using the TextBinding property of the combobox - achieve the desired effect.

    The good news is that we are already addressing this issue  and in a very sooner version GridViewComboBoxColumn will be able to handle such scenarios ( within less than two weeks ).

    Best wishes,
    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Nikhil Pant
    Nikhil Pant avatar
    2 posts
    Member since:
    Jan 2010

    Posted 08 Jul 2010 Link to this post

    Hi,

    I am using Telerik.Windows.Controls.GridView.dll version 2010.1.603.35, does it have the said functionality where the
    GridViewComboBoxColumn can be used to display the values that are not part of the ComboBox's Itemsource property?

    Thanks
    Nikhil
     

  5. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 09 Jul 2010 Link to this post

    Hi Nikhil Pant,

    The ComboBoxColumn does not have such feature. Such marginal scenarios as said before in the thread should be achieved by placing  a "clever " user control  containing a combo inside the cells via the CellTemplate property.
    By "clever" I mean some custom code should be written.

    Sincerely yours,
    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
Back to Top