Hello Michael Tissington,
You can use the following code:
function ToggleDate (dateInputId) |
{ |
var dateInput = window[dateInputId]; |
} |
And in the code-behind:
public partial class _Default : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
DateInputLive.DateInput.Attributes.Add("onclick", "ToggleDate('" + DateInputLive.ClientID + "');"); |
} |
} |
I hope this helps, and let me know if you have further questions.
Greetings,
Pavel
the Telerik team