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

Grid within Combobox

3 Answers 116 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sam Schwartz
Top achievements
Rank 1
Sam Schwartz asked on 01 Apr 2011, 04:58 PM
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?

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 04 Apr 2011, 05:21 PM
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
0
Sam Schwartz
Top achievements
Rank 1
answered on 04 Apr 2011, 08:06 PM
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.

 
0
Valeri Hristov
Telerik team
answered on 06 Apr 2011, 02:41 PM
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
Tags
ComboBox
Asked by
Sam Schwartz
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Sam Schwartz
Top achievements
Rank 1
Share this question
or