Using ASP.NET (Not MVC)
I need to be able to re-load / refresh the scheduler data similar to that on the Filtration documentation, however that seems biased towards MVC and I can’t see how to integrate it into an .aspx page.
I can get and filter the data i need, I just want to know how to push that data into the scheduler from code-behind, preferebly from an update-panel partial post-back.
Thanks
Hello,
code from the sample
scheduler.clearAll();
scheduler.load("<%= Model.Scheduler.DataUrl %>rooms=" + document.getElementById("Rooms").value);
will work for asp.net as well.
just instead of ‘Model’, you’ll need to pass scheduler to the page some other way.
e.g.
page.aspx:
scheduler.load("<%= this.Scheduler.DataUrl %>rooms=" + document.getElementById("Rooms").value);
page.aspx.cs
public partial class _page : System.Web.UI.Page
{
public DHXScheduler Scheduler { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
this.Scheduler = new DHXScheduler();