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

Emptydatatemplate for RadScheduler

1 Answer 38 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Datamex
Top achievements
Rank 2
Datamex asked on 22 Sep 2009, 11:15 AM
Hi,

We are trying to filter the recources in the scheduler.
But it is possible that the filter returns no recources, so the scheduler would be empty then.

Is there some kind op EmptyDataTemplate that we can show if there is no resource available?
Another problem is that we are getting some javascript errors when there is no recource.

Error message see following:  Link

Translation is : Runtime-fout Microsoft JScript: 'this._weekModels.0' is empty or not an object

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 24 Sep 2009, 01:06 PM
Hello,

You can consider dynamically setting the GroupBy property to empty string if no resources are returned. For example:
protected void Page_Load(object sender, EventArgs e)  
    {  
        if ([no resources are returned])  
            RadScheduler1.GroupBy = String.Empty;  
    } 

If for some reason, you cannot use this workaround, please provide more details on your scenario and we will try to find an alternative solution. It would be best if you can open a support ticket and send us a small demo to test.


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
Datamex
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or