Articles in this section
Category / Section

How to change password of the protected PDF in C# and VB.NET

4 mins read

This knowledge base article explains the way to add additional columns in Agenda view of ASP.NET Core Scheduler.

 

Step 1: Create an ASP.NET Core application with the default scheduler code example in the Agenda view by following the instructions given in the links below.

https://help.syncfusion.com/aspnet-core/schedule/getting-started

https://help.syncfusion.com/aspnet-core/schedule/views#agenda

 

Step 2: Define the client-side query-cell-info event which will be triggered during the rendering of each row and column.

<ej-schedule id="Schedule1" width="100%" height="525px" current-view="Agenda" current-date="new DateTime(2017, 6, 2)" query-cell-info="addColumns">
    <e-appointment-settings datasource="@ViewBag.appointments" subject='"Subject"' start-time='"StartTime"' end-time='"EndTime"' all-day='"AllDay"' recurrence='"Recurrence"' recurrence-rule='"RecurrenceRule"' location='"Location"' description='"Description"'>
    </e-appointment-settings>
</ej-schedule>

 

Step 3: In query-cell-info event function addColumns, additional column and header elements can be added as mentioned below.

function addColumns(args) {
        if (args.model.currentView == "agenda") {
            // The following code example is used to add the additional event columns
            if (args.requestType == "agendacells" && args.cellType == "agendaeventcell") {
                var customDesign = "<td class='e-agendacells location-column'><div class='e-textwrapper'><span>" + args.appointment.Location + "</span></div></td><td class='e-agendacells description-column'><div class='e-textwrapper'><span>" + args.appointment.Description + "</span></div></td>";
                $(args.element).after(customDesign);
            }
            // The following code example is used to add the additional event columns headers
            if (args.requestType == "agendacells" && args.cellType == "agendaheadercells" && $(args.element).hasClass("e-eventcolumn") && $(".e-headercells.loccolumn").length == 0) {
                var customDesign1 = "<td class='e-headercells location-column'><div class='e-textwrapper'><b>Event Location</b></div></td><td class='e-headercells description-column'><div class='e-textwrapper'><b>Event Description</b></div></td>";
                args.element.after(customDesign1);
            }
        }
    }

 

Step 4: Run the sample, and the scheduler control will be displayed as follows with the additional columns in the Agenda view.

Scheduler control displayed with additional columns

 

Figure 1: Scheduler control displayed with additional columns

Sample Link:

https://www.syncfusion.com/downloads/support/directtrac/203127/ze/AgendaAddiotionalFields-1270606945


Note:

Starting with v16.2.0.x, if you reference Syncfusion&reg; assemblies from a trial setup or from the NuGet feed, include a license key in your projects. Refer to the link to learn about generating and registering the Syncfusion&reg; license key in your application to use the components without a trial message.

 

Conclusion

I hope you enjoyed learning about how to change password of the protected PDF in C# and VB.NET.

You can refer to our WinForms PDF’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms PDF documentation to understand how to present and manipulate data.

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms PDF and other WinForms components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!


Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied