This is a migrated thread and some comments may be shown as answers.
Disabling expand on space key press
4 Answers 47 Views
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 2
Matt asked on 22 Jul 2011, 01:46 PM
Hi,
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.

4 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 27 Jul 2011, 09:56 AM
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!

0
Iosu Buenetxea
Top achievements
Rank 1
answered on 29 Oct 2012, 04:23 PM
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" />
     </telerik:RadExpander>
     <TextBox
         Width="250"
         Margin="25,0,0,0"
         HorizontalAlignment="Left"
         VerticalAlignment="Top" />
 </Grid>


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

Regards,

Iosu.
0
Andreas
Top achievements
Rank 1
answered on 08 Jan 2013, 08:24 AM
Same problem as above on my application with the AutoCompleteBox. (Release Q3 2012)

Regards,
Andreas
0
Petar Mladenov
Telerik team
answered on 11 Jan 2013, 07:58 AM
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.

Asked by
Matt
Top achievements
Rank 2
Answers by
Petar Mladenov
Telerik team
Iosu Buenetxea
Top achievements
Rank 1
Andreas
Top achievements
Rank 1
Share this question
or