radnumerictextbox error

7 posts, 0 answers
  1. Carlos
    Carlos avatar
    96 posts
    Member since:
    Apr 2013

    Posted 20 Dec 2016 Link to this post

    Erro;

    Uncaught TypeError: Cannot read property 'clear' of null

     

    code:

    $find("<%=radnumericbox.ClientID%>").clear();

     

    what im doing badly? i have more radnuemirc boxes and they are running smoothly

     

    BestRegards

     

  2. Vasil
    Admin
    Vasil avatar
    1604 posts

    Posted 21 Dec 2016 Link to this post

    Hi Carlos,

    Seems that $find("<%=radnumericbox.ClientID%>") is null. This mean that you call this code before the component is initialized.
    Make sure you call this during or after the pageLoad client side event.

    If you continue to have this problem, please share full page, so we can see in what context you call the method.

    Regards,
    Vasil
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Carlos
    Carlos avatar
    96 posts
    Member since:
    Apr 2013

    Posted 21 Dec 2016 in reply to Vasil Link to this post

    the problem is taht i have another one before this one in the same div and taht one i dont have problems

     

  4. Carlos
    Carlos avatar
    96 posts
    Member since:
    Apr 2013

    Posted 21 Dec 2016 in reply to Carlos Link to this post

    One more thing, all the combo boxes and textboxes are loaded when that happen
  5. Vasil
    Admin
    Vasil avatar
    1604 posts

    Posted 21 Dec 2016 Link to this post

    Hi Carlos,

    This looks very strange, do you have example code that demonstrates that?

    Regards,
    Vasil
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  6. Carlos
    Carlos avatar
    96 posts
    Member since:
    Apr 2013

    Posted 21 Dec 2016 in reply to Vasil Link to this post

    iits dificult to bring a a piece of code here from the project, i can say is taht if i use pure javascript its work fine. its very strange the behavior its having.
  7. Vasil
    Admin
    Vasil avatar
    1604 posts

    Posted 23 Dec 2016 Link to this post

    Hi Carlos,

    I would be glad to help you with this problem, but as it is hard for you to debug it, it is harder for us to guess the problem without test page. And the fact it is working for some of the inputs and not for other makes it even more harder. At this point we are out of ideas.

    Regards,
    Vasil
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top