Hi,
Is there a way to place a button inside of a textbox?
Here's my scenario:
A user has a textbox to enter words that they wish to search for. After they have searched and they want to clear the results, i want to have a button (a red x button or something) that shows up at the end of the textbox (inside the textbox) allow them to clear the textbox and search results.
I've tried making a RadButtonElement and adding it to the TextBoxElement.Children but the button appears to show up behind the textbox element. I can see and click on the very bottom edge of the textbox and fire the event handler.
Thanks
Is there a way to place a button inside of a textbox?
Here's my scenario:
A user has a textbox to enter words that they wish to search for. After they have searched and they want to clear the results, i want to have a button (a red x button or something) that shows up at the end of the textbox (inside the textbox) allow them to clear the textbox and search results.
I've tried making a RadButtonElement and adding it to the TextBoxElement.Children but the button appears to show up behind the textbox element. I can see and click on the very bottom edge of the textbox and fire the event handler.
Dim btnElement As New RadButtonElement |
btnElement.Text = "try this" |
btnElement.Size = New Drawing.Size(20, 20) |
Dim textboxElement As RadTextBoxElement = txtSearchFor.TextBoxElement |
textboxElement.Children.Add(btnElement) |
AddHandler btnElement.Click, AddressOf btnClearSearh_Click |
Thanks