Disabling expand on space key press

5 posts, 0 answers
  1. Matt
    Matt avatar
    7 posts
    Member since:
    Jul 2011

    Posted 22 Jul 2011 Link to this post

    I've got a rad expander within my application using a custom header containing several controls one of which is a text box.

    All of the other controls work correctly apart from the text box, when attempting to put a space within the textbox it expands the expander.

    Is there any way to disable this functionality, i've seen one solution but that involved changing the control header using a style which I don't want to do.

    Thanks in advance.
  2. Petar Mladenov
    Petar Mladenov avatar
    3155 posts

    Posted 27 Jul 2011 Link to this post

    Hello Matt,

    Unfortunately , this is a bug in the RadExpander. We logged it in our PITS and we also updated your telerik account points. As a workaround, you can use the KeyDown event of the TextBox, implement the logic of the Space Key in TextBox and then set e.Handled = true to prevent the expansion.

    Kind regards,
    Petar Mladenov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. Iosu Buenetxea
    Iosu Buenetxea avatar
    91 posts
    Member since:
    Jan 2008

    Posted 29 Oct 2012 Link to this post

    Hi, it still does not work with version 2012 Q3.

    As a workaround, I took out the textbox from the header and placed it outside of the RadExpander.
    It  looks like it is inside the header.

    <Grid x:Name="LayoutRoot">
         <telerik:RadExpander VerticalAlignment="Top">
             <TextBlock Text="Content of the Expander" />
             VerticalAlignment="Top" />

    If the expand direction of your RadExpander is other than down, you will have to do some additional layout to achieve the same thing.


  4. Andreas
    Andreas avatar
    21 posts
    Member since:
    Jan 2012

    Posted 08 Jan 2013 Link to this post

    Same problem as above on my application with the AutoCompleteBox. (Release Q3 2012)

  5. Petar Mladenov
    Petar Mladenov avatar
    3155 posts

    Posted 11 Jan 2013 Link to this post

    Hello Andreas,

     Could you please elaborate more on your exact scenario? RadAutoCompleteBox has built-in TextBox and this is different from the Expander's custom scenario. We highly encourage you to open a new support thread and describe your issue. It would be also great if you can isolate your issue in a runnable sample that we can investigate. Thank you in advance for your cooperation.

    All the best,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top