syncfusion mvc ej().schedule .agenda view not Show (rendering)

ej (). schedule .agenda view
Do not show any information
For other views Show normal data

------------------------------------------------------------------
 @(Html.EJ().Schedule("Schedule1")
                    //.ReadOnly(false)
                    .Width("100%")
                    .Height("525px")
                    //.CellWidth("120px")
                    .Views(view)
                    .WorkWeek(workWeek)
                    .ShowTimeZoneFields(false)
                    //.AgendaViewSettings(agendaViewSettings => agendaViewSettings.DaysInAgenda(5))
                    //.ShowOverflowButton(false) //autofit the cells
                    //.Orientation(Orientation.Horizontal)
                    //.DateFormat("dd/mmm/yyyy")
                    //.MinDate(new DateTime(2019, 12, 1))
                    //.MaxDate(new DateTime(2020, 12, 31))
                    .StartHour(6)
                    .EndHour(18)
                    .WorkHours(hrs => hrs.Highlight(true).Start(7).End(17))
                    .TimeMode(TimeMode.Hour24)
                    //.TimeScale(ts => ts.Enable(true).majorSlot(60).minorSlotCount(2))
                    .AllowInline(false)
                    .EnableLoadOnDemand(true)
                    .ShowNextPrevMonth(true)
                    .ShowQuickWindow(true)
                    .FirstDayOfWeek(DayOfWeek.Monday)
                    // .AgendaViewSettings(agendaViewSettings => agendaViewSettings.DaysInAgenda(5))
                    .CurrentDate(DateTime.Now)
                    .ShowCurrentTimeIndicator(true)
                    .ShowAppointmentNavigator(true)
                    .ShowLocationField(true)
                    //.ShowAllDayRow(false)
                    //.CurrentDate(new DateTime(2020, 1, 1))
                    .CurrentView(CurrentView.Week)
                    .ShowWeekend(false)
                    .AppointmentTemplateId("#appTemplate")
                    //.AllDayCellsTemplateId("#allDayTemplate") // Alldaycells Template ID
                    //.WorkCellsTemplateId("#workTemplate") // Workcells Template ID
                    .TooltipSettings(tooltip => tooltip.Enable(true).TemplateId("#tooltipTemplate"))
                    .AppointmentSettings(fields => fields.Datasource(dataSource => dataSource.URL("Schedule/GetRecords").CrudURL("Schedule/CrudResult").Adaptor("UrlAdaptor"))
                    //.AppointmentSettings(fields => fields.Datasource(ds => ds.URL("GetRecords").CrudURL("CrudResult").Adaptor(AdaptorType.UrlAdaptor))
                    .Id("Id")
                    .Subject("Subject")
                    .StartTime("StartTime")
                    .EndTime("EndTime")
                    .Description("Description")
                    .Location("Location")
                    .AllDay("AllDay")
                    .Recurrence("Recurrence")
                    .RecurrenceRule("RecurrenceRule")
                    //.ResourceFields("OwnerId")
                    //.ResourceFields("Note")
                    )
                    )
            }
-----------------------------------------------------------------------------------------








Help recommend solutions
Thanks for the advice

Attachment: Capture_Schedule_fb4cd6ad.zip

11 Replies

HB Hareesh Balasubramanian Syncfusion Team March 20, 2020 11:15 AM UTC

Hi Phonchai, 

Greetings from Syncfusion Support. 

We have validated your reported problems at our side and prepared a sample with your shared code snippets but it is working properly. And the sample can be downloaded from the following link, 


Kindly try the above sample and if the issue still persists at your side kindly try to replicate the same problem in our shared sample for the better serve. 

Regards, 
Hareesh 



PS Phonchai Sakunchinnasee March 23, 2020 03:27 AM UTC

We tested it.
The problem remains the same. Do not show Agenda view.
We do not use this function. Because I don't know why
We can't adapt to the example.

Thanks for the advice


PS Phonchai Sakunchinnasee March 23, 2020 04:07 AM UTC

Please recommend adding button link URLs in
Dialog Box edit from


Thanks for the advice





HB Hareesh Balasubramanian Syncfusion Team replied to Phonchai Sakunchinnasee March 24, 2020 02:30 PM UTC

We tested it.
The problem remains the same. Do not show Agenda view.
We do not use this function. Because I don't know why
We can't adapt to the example.

Thanks for the advice

Hi Phonchai,

 

Thanks for the update.

 

We have validated your reported problem at our end and our previously updated sample is working properly. And for further reference, we have taken a video demo of it and it can be downloaded from the following link,

 

Video demo: https://www.syncfusion.com/downloads/support/forum/152557/ze/video_demo-1200749271

 

Kindly try the above solutions and if the issue still persists at your end kindly try to replicate the reported issue in our previously updated sample else if share your working sample(if possible) for the better serve.

 

Regards,

Hareesh



HB Hareesh Balasubramanian Syncfusion Team replied to Phonchai Sakunchinnasee March 24, 2020 02:31 PM UTC

Please recommend adding button link URLs in
Dialog Box edit from


Thanks for the advice




Hi Phonchai,

 

Thanks for the update.

 

We validated your reported query at our end and the scheduler’s appointment window can be customized as per your requirement and it can be achieved using appointmentWindowOpen property. And for further reference kindly refer the below UG link,

 

UG link: https://help.syncfusion.com/aspnet/schedule/customization#appointment-window-customization

 

If you have any other concerns please revert for further assistance.

 

Regards,

Hareesh



PS Phonchai Sakunchinnasee March 25, 2020 01:42 AM UTC

We just need to add a button. Click to open the url when editing.
Details are an easy way. # Appointment-window-customization
It looks a lot modified.


HB Hareesh Balasubramanian Syncfusion Team March 25, 2020 12:49 PM UTC

Hi Phonchai, 

Thanks for the update. 

Based on your shared requirement, we have prepared a sample using AppointmentWindowOpen event and it can be downloaded from the following link, 

Code snippet: 
<div id="customWindow" style="display: none"> 
    <div id="appWindow"> 
        <form id="custom"> 
            <table width="100%" cellpadding="5"> 
                <tbody> 
                    <tr style="display: none"> 
                        <td> 
                            Id: 
                        </td> 
                        <td colspan="2"> 
                            <input id="customId" type="text" name="Id" /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            Subject: 
                        </td> 
                        <td colspan="2"> 
                            <input id="subject" type="text" value="" name="Subject" onfocus="temp()" style="width: 100%" /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            Description: 
                        </td> 
                        <td colspan="2"> 
                            <textarea id="customdescription" name="Description" rows="3" cols="50" style="width: 100%; resize: vertical"></textarea> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            StartTime: 
                        </td> 
                        <td> 
                            @Html.EJ().DateTimePicker("StartTime").Width("150px") 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            EndTime: 
                        </td> 
                        <td> 
                            @Html.EJ().DateTimePicker("EndTime").Width("150px") 
                        </td> 
                    </tr> 
                    <tr> 
                        <td colspan="3"> 
                            <div class="customcheck">AllDay:</div> 
                            <div class="customcheck"> 
                                <input id="allDay" type="checkbox" name="AllDay" onchange="allDayCheck()" /> 
                            </div> 
                            <div class="customcheck">Recurrence:</div> 
                            <div> 
                                <input id="recurrence" type="checkbox" name="Recurrence" /> 
                            </div> 
                        </td> 
                    </tr> 
                    <tr id="summaryTr" style="display:none;"> 
                        <td colspan="3"> 
                            <div class="recSummary">Summary:</div> 
                            <div> 
                                <label id="recSummary" name="Summary"></label> 
                            </div> 
                        </td> 
                    </tr> 
                    <tr id="editor" style="display:none;"> 
                        <td colspan="3"> 
                            <div><a id="recedit" onclick="recurrenceRule()">Edit</a></div> 
                        </td> 
                    </tr> 
                </tbody> 
            </table> 
        </form> 
        <div> 
            <button type="submit" onclick="customClick()" id="buttonCustom" style="float:right;margin-right:20px;margin-bottom:10px;">Custom</button> 
            <button type="submit" onclick="cancel()" id="buttonCancel" style="float:right;margin-right:20px;margin-bottom:10px;">Cancel</button> 
            <button type="submit" onclick="save()" id="buttonSubmit" style="float:right;margin-right:20px;margin-bottom:10px;">Submit</button> 
        </div> 
    </div> 
    <div id="recWindow" style="display: none"> 
        <div style="margin: 0 15%;"> 
            @(Html.EJ().RecurrenceEditor("recurrenceEditor").SelectedRecurrenceType(0).Frequencies(new List<string> { "daily", "weekly", "monthly", "yearly", "everyweekday" })) 
        </div> 
        <div> 
            <button type="submit" id="recCancel">Cancel</button> 
            <button type="submit" id="recSubmit">Submit</button> 
        </div> 
    </div> 
</div> 
 
$(function () { 
        // defining sub-controls used within custom appointment window 
        $("#buttonCancel").ejButton({ width: '85px' }); 
        $("#buttonCustom").ejButton({ width: '85px' }); 
        $("#buttonSubmit").ejButton({ width: '85px' }); 
        $("#recurrence").ejCheckBox({ change: "recurCheck" }); 
        $("#recCancel,#recSubmit").ejButton({ click: "onRecurrenceClick" }); 
        // defining dialog control to be used as custom appointment window 
        $("#customWindow").ejDialog({ 
            width: 600, 
            height: "auto", 
            position: { X: 200, Y: 100 }, 
            showOnInit: false, 
            enableModal: true, 
            title: "Appointment Window", 
            enableResize: false, 
            allowKeyboardNavigation: false, 
            close: "clearFields" 
        }); 
    }); 
 
function customClick() { 
    } 


Kindly try the above sample and if we misunderstood your query kindly share us more details like use-case scenario / image / video demo link about r requirement to provide the prompt solution. 


Regards, 
Hareesh 



PS Phonchai Sakunchinnasee March 26, 2020 10:03 AM UTC

very good 
very good
very good
---------------------------

i can change url pass parameter to Action

  var url = '@Url.Action("Edit", "Schedule")?Id=' + record.Id;

Can I do something like a DataGrid Action?

function onClickEditRecord(args) {
                   var grid = $("#GridMaster").ejGrid("instance");
                 var index = this.element.closest("tr").index();
                 var record = grid.getCurrentViewData()[index];
                 //alert("Record Details: " + JSON.stringify(record)); //แสดงทั่งหมด
                 //alert("Record Details: " + record.reportId); //เลือก column
                 var url = '@Url.Action("Edit", "Schedule")?Id=' + record.Id;
                 window.location.rel='nofollow' href = url;
                 return true; // bResponse;
        }


PS Phonchai Sakunchinnasee March 27, 2020 12:25 AM UTC

--------------------------------------
Hello this morning in Thailand We encountered a new problem.
First time to create (Create) Time is correct.
But Edit time to correct and save the time will not be correct, 
for example to edit post at 8:00, but when editing it will see 01.00
Suggesting methods for fixing too



Thank you so much

Attachment: Capture_time_caf23a1b.zip


HB Hareesh Balasubramanian Syncfusion Team replied to Phonchai Sakunchinnasee March 27, 2020 12:38 PM UTC

very good 
very good
very good
---------------------------

i can change url pass parameter to Action

  var url = '@Url.Action("Edit", "Schedule")?Id=' + record.Id;

Can I do something like a DataGrid Action?

function onClickEditRecord(args) {
                   var grid = $("#GridMaster").ejGrid("instance");
                 var index = this.element.closest("tr").index();
                 var record = grid.getCurrentViewData()[index];
                 //alert("Record Details: " + JSON.stringify(record)); //แสดงทั่งหมด
                 //alert("Record Details: " + record.reportId); //เลือก column
                 var url = '@Url.Action("Edit", "Schedule")?Id=' + record.Id;
                 window.location.rel='nofollow' href = url;
                 return true; // bResponse;
        }

Hi Phonchai,

 

Thanks for the update.

 

we have validated your shared code and in this you have get the details of the row which one you clicked. from this we suspect that your requirement is to get the same action in Scheduler too. If this is your requirement, we regret to let you know this is option is not available in scheduler.

 

If you have any other concerns please revert for further assistance.

 

Regards,

Hareesh



HB Hareesh Balasubramanian Syncfusion Team replied to Phonchai Sakunchinnasee March 27, 2020 12:39 PM UTC

--------------------------------------
Hello this morning in Thailand We encountered a new problem.
First time to create (Create) Time is correct.
But Edit time to correct and save the time will not be correct, 
for example to edit post at 8:00, but when editing it will see 01.00
Suggesting methods for fixing too



Thank you so much

Attachment: Capture_time_caf23a1b.zip

Hi Phonchai,

 

Thanks for the update.

 

We have validated your reported problem and for that we have checked for the CRUD actions in our previously updated sample by changing the system’s timezone to (UTC +07:00) Bangkok, Hanoi, Jakarta but it is working properly at our side. And for the same, we have taken a video demo of it and it can be downloaded from the following link,

 

Video demo: https://www.syncfusion.com/downloads/support/forum/152557/ze/video_demo-1146864508

 

Kindly try our previously updated sample and if the issue still persists at your end kindly try to replicate the same problem in the above sample else if kindly share the issue reproducing sample(if possible) for the better serve.

 

Regards,

Hareesh


Loader.
Up arrow icon