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
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;}
}