showing a RadGridView inside of the combox

4 posts, 0 answers
  1. Sammy
    Sammy avatar
    26 posts
    Member since:
    Aug 2012

    Posted 14 Aug 2012 Link to this post

    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!

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 15 Aug 2012 Link to this post

    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.

  3. DevCraft banner
  4. Sammy
    Sammy avatar
    26 posts
    Member since:
    Aug 2012

    Posted 15 Aug 2012 Link to this post

    Thanks for the reply.

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

    thanks!
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 15 Aug 2012 Link to this post

    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.

Back to Top