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

Postback to Another Page

3 Answers 94 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Vic
Top achievements
Rank 1
Vic asked on 15 Mar 2009, 01:40 AM
I have a RadCalendar as part of a CRM Web App in a Master Page as part of the sidebar, similar to Outlook.  I think have a calendar.aspx page with the RadScheduler in it.  I want a user to be able to be on any other page of the site, click a date on the calendar and be directed to that date on the scheduler.  I dont want to pass the date in the query string and the RadCalendar doesn't allow you to specify the PostBackURL as a typical button.  Any suggestions?

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 17 Mar 2009, 01:02 PM
Hello Vic,

Have you considered storing the selected date in the calendar in a Session/Cache object and performing Response.Redirect call to the page with the scheduler control? Thus you should be able to navigate to the requested page, fetch the selected date from the Session/Cache object and display the corresponding day in the scheduler control. I hope this approach is appropriate for your case.

Kind regards,
Sebastian
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Vic
Top achievements
Rank 1
answered on 17 Mar 2009, 02:24 PM
that's how i'm handling it, was just hoping there was a postback method or something else i could use.
0
Nikolay Rusev
Telerik team
answered on 20 Mar 2009, 09:18 AM
Hello Vic,

You can try enable AutoPostBack on RadCalendar and handle SelectionChanged event on server as follow:

<telerik:RadCalendar runat="server" ID="RadCalendar1" AutoPostBack="true"   
   OnSelectionChanged="RadCalendar1_SelectionChanged">  
</telerik:RadCalendar> 

protected void RadCalendar1_SelectionChanged(object sender, SelectedDatesEventArgs e)  
{  
   DateTimeCollection selectedDates = e.SelectedDates;  
   //handle slected date  


Best wishes,
Nikolay
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Calendar
Asked by
Vic
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Vic
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Share this question
or