Sunday, March 11, 2012

DateTimePicker placed into ATLAS UpdatePanel doesn´t work correctly

Hi,

I solved it !

<scripttype="text/javascript"language="javascript">

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(pageLoadedHandler)

function pageLoadedHandler(sender, args)

{ SetCalendarStartTime(); }

function EndRequestHandler(sender, args)

{ SetCalendarStartTime();}

function SetCalendarStartTime()

{

Zapatec.Calendar.setup ({

firstDay : 1, [ SOME MORE VALUES ]

});

}

</

script>I′m so happySmile


I 'm having the same exact problem while using theZapatecdate picker inside the update panel it doesn't work after the first postback

and here it is the code i m using

"server> <link rel="stylesheet" href="http://links.10026.com/?link=calendar/themes/fancyblue.css" /> <script type="text/javascript" src="http://pics.10026.com/?src=calendar/src/zapatec.js"></script> <script type="text/javascript" src="http://pics.10026.com/?src=calendar/src/calendar.js"></script> <script type="text/javascript" src="http://pics.10026.com/?src=calendar/lang/calendar-en.js"></script> <script type="text/javascript" src="http://pics.10026.com/?src=calendar/src/display.js"></script></head> ..............<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <input type="text" id="DayOfStart" runat="server"/> <input id="Button2" type="button" value=" ..." class="buttons" /> <SCRIPTtype="text/javascript">calendarSetup("DayOfStart","Button2");

I want to know what exactly to write in this section

function SetCalendarStartTime()

{

Zapatec.Calendar.setup ({

firstDay : 1, [ SOME MORE VALUES ]

});

}

No comments:

Post a Comment