Hi,
I have the following scenario.
I have a webdatapicker control and a webdatetimeeditor control. I have the webdatatimeeditor control within an updatepanel. I am trying to define a trigger for the updatepanel for the client event "CalendarClosed" of webdatepicker.
I am getting the following error. Can you please let me know what event name should be used?
Thanks.
The definitions are as below.
<asp:UpdatePanel runat="server" ID="updPanelStartHour" UpdateMode="Conditional"> <Triggers> <asp:AsyncPostBackTrigger ControlID="wbDateStart" EventName="CalendarClosed" /> </Triggers> <ContentTemplate> <ig:WebDateTimeEditor ID="wbDateStartHour" runat="server" DisplayModeFormat="H:mm" EditModeFormat="H:mm" NullText="0:00"> <Buttons SpinButtonsDisplay="OnRight"> </Buttons> <ClientEvents ValueChanged="validate_str_hour" /> </ig:WebDateTimeEditor> </ContentTemplate> </asp:UpdatePanel> <ig:WebDatePicker ID="wbDateStart" runat="server"> <ClientSideEvents CalendarClosed="validate_str_date"/> </ig:WebDatePicker>
Hello thameez,you are getting this error because you are trying to set client side event to EventName. I don’t think this is possible. You should try to refresh UpdatePanel using JavaScript .