The following steps depicts the way to render Scheduler through partial view in unobtrusive mode.
Step1: Create the default Schedule sample in unobtrusive mode by referring the below link.
Step2: In the index page, render a button control and define its corresponding click function as shown below. Within the click function, make an ajax call to the action in a Home controller namely “Schedule”.
Step3: Define the Home controller function Schedule which assigns the dataSource of Scheduler to ViewBag as well as returns the partial view as shown below.
Step4: Define the partial view index page _schedule (will be under Shared folder) as shown below.
Step5: Run the sample and click the button, Schedule will be rendered through partial view as shown below.
Figure1: Home page with button
Figure2: Schedule after clicking the button
Partial View in Unobtrusive mode:
Partial View without Unobtrusive mode:
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.