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

showing a RadGridView inside of the combox

3 Answers 46 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sammy
Top achievements
Rank 1
Sammy asked on 15 Aug 2012, 12:53 AM
Hi,
This seems to do exactly what I want:
http://blogs.telerik.com/blogs/posts/10-04-09/how-to-filter-as-you-type-radgridview-inside-radcombobox-for-wpf-and-silverlight.aspx

However, I have 2 questions:
a)When i start typing in the combox, the grid does not show. How would I get it to show? I figured I would tie into the KeyPress event, and then set the .Visibility of the grid. But this leads me to the 2nd question:

b)How do you get access to the RadGridView from codebehind?

After 2 hrs, I've lost enough hair. I guess I just don't understand the Rad control model enough. I've tried various things, such as:

Any tips?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 15 Aug 2012, 02:11 PM
Hi Sammy,

Straight to your questions:

1. You can set OpenDropDownOnFocus property of the ComboBox to true, so the dropdown will be shown when the input field receives the focus.

2. Since the GridView is placed in a popup it cannot be directly accessed.  But you can still get the selected row from the ViewModel.

Hope this helps.

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Sammy
Top achievements
Rank 1
answered on 15 Aug 2012, 02:19 PM
Thanks for the reply.

Why do you say the gridview is placed in a popup? I'm not seeing that.

thanks!
0
Yana
Telerik team
answered on 15 Aug 2012, 02:25 PM
Hello Sammy,

It is placed in the RadComboBox dropdown which is actually a popup.

Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ComboBox
Asked by
Sammy
Top achievements
Rank 1
Answers by
Yana
Telerik team
Sammy
Top achievements
Rank 1
Share this question
or