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

[Solved] Show all Recurring items in RadGrid problem

2 Answers 100 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
brian
Top achievements
Rank 1
brian asked on 18 Mar 2010, 04:18 PM

I am binding a scheduler based on categories, locations, etc.

Despite implementing this paint by number knowledge base article, i still can only display records available within each associated view. For example, in the simplified code below, i can show masters and exclusions, but nowhere near enough results. A Monday/Tuesday event will only produce 15 records even in 'Month View'.

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-display-all-radscheduler-appointments-in-gridview.aspx.

Also, i ensured the 'MonthView-VisibleAppointmentsPerDay' was large enough since i have many events on business days.

Is there an attribute of the scheduler or way to increase the view of the scheduler, or set it to a necessary record count, since i need this data to be accurate.

protected void RadScheduler2_DataBound(object sender, EventArgs e) 
     { 
         //Create a dynamic table to store the appointments' information:      
         DataTable table1 = new DataTable(); 
       
         table1.Columns.Add("Subject"); 
         table1.Columns.Add("Description"); 
         table1.Columns.Add("Starttime"); 
         table1.Columns.Add("Endtime"); 
 
          
         foreach (Appointment a in RadScheduler2.Appointments) 
         { 
 
             
               table1.Rows.Add(new string[] { c.ToString(),    
                    a.Subject.ToString(), a.Description,  
                    a.Start.ToString(), a.End.ToString() });        
         } 
 
         RadGrid1.DataSource = table1; 
         RadGrid1.DataBind(); 
 
     }  
 
Regards,

Brian

2 Answers, 1 is accepted

Sort by
0
brian
Top achievements
Rank 1
answered on 18 Mar 2010, 04:28 PM

I just got the idea to try this from a previous post about timeline view

  <MultiDayView NumberOfDays="365" />

Brian
0
brian
Top achievements
Rank 1
answered on 18 Mar 2010, 05:01 PM

This works well for my application

Sort your recurring items:
   table1.DefaultView.Sort = "Starttime ASC";
   RadGrid1.DataSource = table1.DefaultView;        
   RadGrid1.DataBind();

Set scheduler visibility="false"


Brian
Tags
Scheduler
Asked by
brian
Top achievements
Rank 1
Answers by
brian
Top achievements
Rank 1
Share this question
or