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

Rad Scheduler: When do you bind data?

1 Answer 54 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
rjb227s
Top achievements
Rank 1
rjb227s asked on 27 Jan 2010, 10:20 PM
Hello,

I am running VQ3 2009 with hotfixes.  I'm having trouble with databinding the scheduler. 

  1. I am binding the data in the server side code by querying my appointments table. 
  2. I traverse the datatable of appointments and build a generic list of <Appointment> objects. 
  3. I then set the datasource of thescheduler to the generic list.

I first put this code in the PageLoad() event, but though the data showed in the scheduler just fine, it seemed to cause issues with the navigation pane's calendar popup.

I then moved the code to the PageInit() event.  I get unpredictable behavior now where sometimes when i open the page, the scheduler does not contain data, but when I refresh it finally shows the appointments. 

Questions:
1. Where should I put my server side data binding statement?
2. Should it be wrapped in an "If(!IsPostBack)" call?

Thanks,

Ryan

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 28 Jan 2010, 04:47 PM
Hello Ryan,

Actually, there is an online demo - Binding to Generic List, which you can use for reference.


Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
rjb227s
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or