This is a migrated thread and some comments may be shown as answers.

RadNumericTextBox and Edit Form Template issues

1 Answer 45 Views
Input
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 17 Jan 2014, 06:43 PM

Hi


I am trying to use a numeric textbox inside the FormTemplate of a grid and have run into issues.



When I initially put my selected item into edit mode I want the numeric text box to be hidden.



I accomplish this by setting the style="display: none;"



Then in the javascript handler of a combobox, which is also in the edit form I change the style based on user interaction.



I have to manipulate the textbox and its up/down arrows, so I am changing 3 controls in each case.



This works fine, until I mouse over the numeric text box. As soon as I do that the text element disappears and only the up/down arrows remain.

Inspecting the rendered html clearly shows the style="display: none" attribute has been re-rendered into the html.



If the textbox is initially visible hiding and showing it in javascript still works correctly, AND mouse over DOESN'T hide it.



I have seen other threads that indicate using numeric text boxes in edit forms is a bad idea.



If you have a solution I would love to hear it.



TIA

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 22 Jan 2014, 01:38 PM
Hi Tim,

The behavior you describe could be caused if you have additional code that is executed on hover event of RadNumericTextBox. Please ensure that there is no additional code or CSS styles that are applied on hover for the numeric input control.

Would you share your full markup so we could have better understanding of your scenario? This would enable us to investigate the issue and look for an appropriate solution.

Regards,
Viktor Tachev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Input
Asked by
Tim
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or