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
210
WebMonthView + WARP
posted

Hello all,

I have a WebMonthView and a WARP on an aspx. Basically, I want the user to be able to click a day in the WMV and have the WARP refresh to display relevant data for that day. I am unclear how to get the WMV to trigger the WARP on click so that I can load the data. Can anyone explain please? TIA.

Cheers,

Ryan

Parents
  • 28464
    posted

    Hello Ryan, 

    Indeed, this seems a bit tricky, since the actual change event is available of the WebScheduleInfo control. However, I was able to make this work relatively easy, using the following approach (client-side events of the WebMonthView):

           <script type="text/javascript">
           
            function dayViewClicked(one, two, three, four, five)
            {           
                var warp =  ig_getWebControlById("<%= WebAsyncRefreshPanel1.ClientID %>");
                warp.refresh();
            }
           
            </script>
       
            <igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server" Height="20px"
                Width="80px">
                <igsch:WebMonthView ID="WebMonthView1" runat="server" WebScheduleInfoID="WebScheduleInfo1">               
                    <ClientEvents Click="dayViewClicked" />
                </igsch:WebMonthView>
               
               <igsch:WebScheduleInfo ID="WebScheduleInfo1" runat="server"
                    onactivedaychanged="WebScheduleInfo1_ActiveDayChanged">
                </igsch:WebScheduleInfo>
               
              
            </igmisc:WebAsyncRefreshPanel>

    The general idea is to call refresh for the warp panel on mouse click in the MonthView, then if the day changed, the WebScheduleInfo ActiveDayChanged event will fire on the server in the AJAX callback and you can change the date text there.

    Please, let me know if this helps. 

Reply Children