Hello Guys,
I am doing something like when you change the value of the RadNumericTextbox. it should changed the value of few other textboxes.
I am using clientsideevent "OnValuechange".
However i have server side code that should be called when i clicked row in grid that will change the value. On first time, it is calling both code i.e. Serverside and client side to chage the values.
How can i avoid to call ClientSide code on first time when i clicked on row?
Can i get any simple example?
Thanks,
Mayank
I am doing something like when you change the value of the RadNumericTextbox. it should changed the value of few other textboxes.
I am using clientsideevent "OnValuechange".
However i have server side code that should be called when i clicked row in grid that will change the value. On first time, it is calling both code i.e. Serverside and client side to chage the values.
How can i avoid to call ClientSide code on first time when i clicked on row?
Can i get any simple example?
Thanks,
Mayank
4 Answers, 1 is accepted
0
Accepted
Hello Mayank,
I tested the described behavior on my end but was not bale to replicate the issue you are facing. Find attached my test application and verify if it works for you and what the difference in your case is.
Regards,
Maria Ilieva
Telerik
I tested the described behavior on my end but was not bale to replicate the issue you are facing. Find attached my test application and verify if it works for you and what the difference in your case is.
Regards,
Maria Ilieva
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.
0
Mayank
Top achievements
Rank 1
answered on 17 Jul 2013, 08:16 PM
Hello Maria,
I came across with another issue on Numneric Textbox regarding to decimal places. I have 3 numeric textboxes. for example A,B,C. If you enter value in textbox A, it will calculate value for textboxes B and C by Java script functions.
I am able to enter value with number of decimal places as i want like 20.9000000 however the textboxes B and C the values are being set to only one decimal point. I want upto 2 decimal points.
(The calculated value is 50.25 and it sets value in textbox 50.2)
I want the value up to 2 decimal places (50.25).
Any help will be appreciated.
Thanks,
Mayank
I came across with another issue on Numneric Textbox regarding to decimal places. I have 3 numeric textboxes. for example A,B,C. If you enter value in textbox A, it will calculate value for textboxes B and C by Java script functions.
I am able to enter value with number of decimal places as i want like 20.9000000 however the textboxes B and C the values are being set to only one decimal point. I want upto 2 decimal points.
(The calculated value is 50.25 and it sets value in textbox 50.2)
I want the value up to 2 decimal places (50.25).
Any help will be appreciated.
Thanks,
Mayank
0
Zachary
Top achievements
Rank 1
answered on 17 Jul 2013, 08:58 PM
Try setting the NumberFormat-DecimalDigits property on the client-side to "2", or NumberFormat.DecimalDigits in the codebehind.
0
Hi Mayank,
Try to set "NumberFormat-DecimalDigits" property to "2" for the B and C input controls and verify how it goes.
Regards,
Maria Ilieva
Telerik
Try to set "NumberFormat-DecimalDigits" property to "2" for the B and C input controls and verify how it goes.
Regards,
Maria Ilieva
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.