Emptydatatemplate for RadScheduler

2 posts, 0 answers
  1. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 22 Sep 2009 Link to this post


    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
  2. Peter
    Peter avatar
    6637 posts

    Posted 24 Sep 2009 Link to this post


    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.

    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.
Back to Top