RadNumericTextBox database

3 posts, 0 answers
  1. Larry Stewart
    Larry Stewart avatar
    6 posts
    Member since:
    Jan 2010

    Posted 27 Apr 2010 Link to this post

    Hi

    I'm not sure this is possible but here's what I'm trying to do:

    I would like to have the user enter 8 digits.  On the OnKeyUp event the value is sent to the db and brings back values for three other RadTextboxes.  I have done this with the ComboBox...just not sure where to start with the RadNumbericTextBox.  Also, I am using  an update panel but not a grid.

    Thanks
    Larry

    It seems like the RadInput_TextChanged event will work for me.  Let me know if you think there's a better way.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 Apr 2010 Link to this post

    Hi Larry,

    Another option to accomplish the functionality is attaching 'OnKeyPress' client event to RadNumericTextBox and invoke an ajaxRequest() to update the other textboxes. Pass the NumericTextBox values to AjaxManager_AjaxRequest method as parameter, query the db to get the results and then set the other textboxes values.

    Also set the AjaxManager AjaxSettings accordingly.

    Regards,
    Princy.
  3. Larry Stewart
    Larry Stewart avatar
    6 posts
    Member since:
    Jan 2010

    Posted 28 Apr 2010 Link to this post

    Thanks for the quick reply Princy :)

    I did get it working with an OnTextChanged event.  I like your example but I'm not sure if I could implement it with my current set up.  I have a default.aspx page that uses a RadTabStrip and a RadMulitPage.  Each time something is chosen from the Tab it will load an ascx page with a different web form. If nothing else I am keeping your solution in my code library.

    Thanks
    Larry
Back to Top