I have created a server control which inherits from the TadDatePicker web control using the code below. It appears that all of the serverside properties and methods work flawlessly when I place my "DatePicker" control onto an ASP.NET webform.
BUT.... When I try to access the client-side API I am not able to access any of the built-in methods or properties. For example, I have a page with a dropdown on it. When the dropdown's selection is chnaged, I am trying to clear the contents of my DatePicker control using javascript. Here is the code of a user control that encpsulates my server controls and the javascript:
The error I am getting when the dropdown is changed is on the line "datePicker.clear();" which is:
"Object doesn't support this property or method."
I am able to do an alert(datePicker.name) and it works just fine, so I know that I at least am getting a reference to the object. It appears that it does not understand the type of the object and that it is a RadDatePicker, and therefore doees not know what "obj.clear()" is. Any help would be MOST appreciated!