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
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.
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!
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.
Regards,
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.