Grid within Combobox

4 posts, 0 answers
  1. Sam Schwartz
    Sam Schwartz avatar
    2 posts
    Member since:
    Jul 2009

    Posted 01 Apr 2011 Link to this post

    I am attempting to use this style of  combobox:

    http://blogs.telerik.com/vladimirenchev/posts/10-04-09/how_to_filter_as_you_type_radgridview_inside_radcombobox_for_wpf_and_silverlight.aspx

    The combobox from this tutorial is then being added to a grid view as a template column.  The combobox seems to work in the regards that it filters as you type and displays the results in a grid format.  However, when you select an item from the results the combobox dropdown stays open and the selection does not appear to have registered (even though the view model does in fact register the selected item).  Also tabbing from the combox box to the next grid column does not work.  Instead it tabs within the results grid.

    Basically I want to interact with the combobox as if it were a combox box grid column.  I just want the combobox to display the results as I type in a grid format.

    Any suggestions?

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 04 Apr 2011 Link to this post

    Hi Sam,

    Unfortunately RadComboBox was not designed to work with a RadGridView inside it (as well as any other control), hence the example you mentioned has certain limitations. You could try to set IsTabStop=false and/or IsFocusable=false on the RadGridView that is inside RadComboBox to prevent it from getting the focus, but I am afraid that we don't have a nice workaround for the problem with the dropdown that stays open.

    If you don't need the grid headers, however, you could try with something simpler than a RadGridView - check the following example that demonstrates how to create a custom ItemTemplate for RadComboBox, that could be modified to look very similar to a Grid:
    http://demos.telerik.com/silverlight/#ComboBox/DataBinding

    Greetings,
    Valeri Hristov
    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. Sam Schwartz
    Sam Schwartz avatar
    2 posts
    Member since:
    Jul 2009

    Posted 04 Apr 2011 Link to this post

    I do need the grid because i want the user to be able to search for any part of the three columns in the grid and it will filter to that row. SO for example if i had 2 columns Item id and item description and the items id is 1025 and the description is apple can they use your example to  type the word apple and it will filter down to that product or type 1025 and filter down to that product? Overall the grid has other advantages like defaulted filters which can then be unfiltered to open up a bigger list. It also has all the great sorting, grouping, and, filtering capabilities that telerik offers.

     
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 06 Apr 2011 Link to this post

    I see. Unfortunately the example demonstrates the maximum that you could by putting a RadGridView inside a RadComboBox, e.g. we cannot do much to improve the behavior you are seeing...

    All the best,
    Valeri Hristov
    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