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

radnumerictextbox error

6 Answers 27 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 20 Dec 2016, 05:39 PM

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

 

6 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 21 Dec 2016, 09:31 AM
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.
0
Carlos
Top achievements
Rank 1
answered on 21 Dec 2016, 09:46 AM

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

 

0
Carlos
Top achievements
Rank 1
answered on 21 Dec 2016, 09:56 AM
One more thing, all the combo boxes and textboxes are loaded when that happen
0
Vasil
Telerik team
answered on 21 Dec 2016, 12:25 PM
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.
0
Carlos
Top achievements
Rank 1
answered on 21 Dec 2016, 05:15 PM
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.
0
Vasil
Telerik team
answered on 23 Dec 2016, 01:08 PM
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.
Tags
NumericTextBox
Asked by
Carlos
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Carlos
Top achievements
Rank 1
Share this question
or