Find Fast Navigation button clicked From Client and Server Side

4 posts, 0 answers
  1. kasi
    kasi avatar
    29 posts
    Member since:
    May 2011

    Posted 10 Jul 2011 Link to this post

    Hi,

    How can we find that , user has clicked the Navigation Right & Left (> & <),FastNavigation Left & Right (>> & << ) From Client Side and Server side, I want to be do some custome navigation for My requirement. and How can we find the Paritcular Date (Dynamic Date) and make that date as bold (Not Selecting , Just finding the Date ). we can check in the DayRender Event , but  i dont want to check in that, because it ll check for every refresh. i want to check only one time . Can you suggest me how to do?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Jul 2011 Link to this post

    Hello Kasi,

    One approach is to hook OnCalendarViewChanging event and check for the step value.
    javascript:
    function OnCalendarViewChanging(sender, args)
     {
      alert(args.get_step());
     }

    For your second requirement, you need to handle DayRender event and set the desired appearance.

    Take a look at the following forum thread for more on this.
    Disable certain days in the datepicker.

    Thanks,
    Shinu.
  3. kasi
    kasi avatar
    29 posts
    Member since:
    May 2011

    Posted 11 Jul 2011 Link to this post

    Ok. how can we find the Navigation button in server side?
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Jul 2011 Link to this post

    Hello Kasi,

    One approach is to hook the OnCalendarViewChanging event and  save the step value in a HiddenField. Then from server side you can check for the HiddenFieldValue.

    ClientSide:
    function OnCalendarViewChanging(sender, args)
     {
         var step = args.get_step();
         if (step > 1)
            {
              document.getElementById("HiddenField1").value = 1;
            }
       }

    C#:
    protected void RadCalenderClient_DefaultViewChanged(object sender, Telerik.Web.UI.Calendar.DefaultViewChangedEventArgs e)
       {
           if (HiddenField1.Value == "1")
           {
               Response.Write("FastNavigation!!");
                 HiddenField1.Value == "0"
           }
       }

    Thanks,
    Shinu.
Back to Top