RadNumericTextBox and Edit Form Template issues

2 posts, 0 answers
  1. Tim
    Tim avatar
    57 posts
    Member since:
    Apr 2011

    Posted 17 Jan 2014 Link to this post


    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.


  2. Viktor Tachev
    Viktor Tachev avatar
    1438 posts

    Posted 22 Jan 2014 Link to this post

    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.

    Viktor Tachev
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top