Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Web date picker "CalendarClosed" event name not recognized inside updatepanel
posted

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.

Could not find an event named 'CalendarClosed' on associated control 'wbDateStart' for the trigger in UpdatePanel 'updPanelStartHour'.

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>

 

 

Parents
No Data
Reply
  • 8160
    posted

    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 .

Children
No Data