This is a migrated thread and some comments may be shown as answers.

Find Fast Navigation button clicked From Client and Server Side

3 Answers 62 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
kasi
Top achievements
Rank 1
kasi asked on 10 Jul 2011, 01:37 PM
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?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Jul 2011, 07:56 AM
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.
0
kasi
Top achievements
Rank 1
answered on 11 Jul 2011, 06:11 PM
Ok. how can we find the Navigation button in server side?
0
Shinu
Top achievements
Rank 2
answered on 13 Jul 2011, 08:08 AM
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.
Tags
Calendar
Asked by
kasi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
kasi
Top achievements
Rank 1
Share this question
or