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

Problem clearing RadDatePicker inside RadGrid using JavaScript

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 1
Arun asked on 22 Sep 2014, 12:23 AM
Hi, I am trying to clear RadDatePicker which is inside RadGrid, if checkbox is selected using JavaScript. Visually it does seem to clear it but, but if I move cursor there again, the value is there. I am aware of the clear() method, but when I select the control using jquery and try to invoke clear method, i get error message as this method doesn’t exist? May be I am not selecting the RadDatePicker right way? Any idea?

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 24 Sep 2014, 02:15 PM
Hi Arun,

In order to access the clear() method you need to get reference to the client-side object of the RadDatePicker. You could use the $telerik.findControl() client method to achieve this. The snippet below illustrates how you could get reference to a RadDatePicker with ID RadDatePicker1.

$telerik.findControl(document, "RadDatePicker1");

If you would like additional information on the Telerik Static Client Library you would find this article interesting.

Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Arun
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or