Evaluating Telerik and have some scheduler questions

2 posts, 0 answers
  1. Chris
    Chris avatar
    19 posts
    Member since:
    Feb 2015

    Posted 05 Mar 2015 Link to this post

    On day 3 of the eval and I have to say love the grid tools but am having some trouble with the scheduler.

    The scenario is:
    A Venue object has multiple event objects (not just recurring, unique multiple events). So the workflow is create the venue and then create and assign events.

    Using the scheduler to create a new event the title field in the event needs to be the name of the venue. I am considering using a dropdown list but not really sure how to bind that to the title field. Resource bound to a viewbag item?

    Additionally, we have regions. Venues are region agnostic but events are not. This is due to venues sitting on the regional borders and drawing crowds from different regions. I am thinking I need to add a multiselect to the template containing all the regions for event creation. On display however, I think there would be a drop down list of the regions and then the scheduler is filtered based on ddl selection.  I was unable to find a filter example but think it is an onchange that would prompt the scheduler to refresh with the new parameter. 

    I think all this needs to be dumped into a custom editor template and I have seen plenty of examples on that and think I can get that done with the exception of recurrence. I am unsure how to add the recurrence options to a custom event editor. Is it possible to use partial views instead of using text?

    Lastly, while I am not sure it is practical, would it be possible to create events outside of the scheduler. Think master/detail venue/events. I think this is possible but generating the recurrence inputs would be the tricky part again. Also, any edits would have to apply to the series in this format rather than a specific occurrence. So maybe it would create more problems than it would solve but would still like to try it out. 

    Hopefully all this makes sense and are fairly simple solutions that I have not learned yet.

    I have included the basic classes below for reference.

    Thanks in advance,
    Chris
    public class Venue
        {
            public Venue()
            {
            }
            public int venueid { get; set; }
            public string venuename { get; set; }
        }
    public class sEvent
        {
            public sEvent()
            {
            }
            public int eventid { get; set; }
            public DateTime start_time { get; set; }
            public DateTime end_time { get; set; }
            public string title{ get; set; }
            public string description { get; set; }
            public string reminder { get; set; }
            public string recurrence_rule { get; set; }
            public int recurrence_id { get; set; }
     
            public virtual Venue venue { get; set; }
    public virtual ICollection<Region> regionlist {get;set;}
     
        }


  2. Chris
    Chris avatar
    19 posts
    Member since:
    Feb 2015

    Posted 05 Mar 2015 Link to this post

    Found this sample and it answers all my questions.
    http://www.telerik.com/support/code-library/custom-editor-9fd60fca3c02
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top