开发者

Telerik MVC DateTimePicker Set value in Javascript

开发者 https://www.devze.com 2023-03-31 17:47 出处:网络
I\'m setting the value of the datetime picker 开发者_JAVA百科at client side using $(\'#ToDate\').data(\'tDateTimePicker\').value(javascriptdateobject);

I'm setting the value of the datetime picker 开发者_JAVA百科at client side using

$('#ToDate').data('tDateTimePicker').value(javascriptdateobject);

(I do this on client event 'OnLoad' as I couldn't find any other suitable method)

I see the value being set on the datetimepicker textbox. However when I open the datetimepicker the date is not set in the calendar.

What additional step(s) I need to do in order to propagate the new value to the calendar?

Thanks!


This should suffice. Go check the client-api online demo for a working demonstration.

0

精彩评论

暂无评论...
验证码 换一张
取 消