This is a migrated thread and some comments may be shown as answers.

Scheduler, add, edit event not working in partial view

1 Answer 211 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ankit
Top achievements
Rank 1
Veteran
Ankit asked on 01 Jan 2021, 09:25 AM

Hi,

We have added scheduler in partial view with kendo ui js. (All scheduler js are in partial view as we need to use this common view in many pages.)

On main page, we have used jquery load method (for loading the partial view) on click on button.

It loads the control perfectly fine.  It also displays the event.

But when we try to add\edit\delete operation, we are getting error.

VM2284:113 Uncaught TypeError: c.ui.validator.validateOnInit is not a function
    at init._validateOnInit (<anonymous>:113:9440)
    at new init (<anonymous>:113:7213)
    at init.refresh (<anonymous>:265:11880)
    at new init (<anonymous>:265:9159)
    at HTMLDivElement.<anonymous> (<anonymous>:30:5608)
    at Function.each (masterpagejs?v=UucszGsF6c2MewgvGCU79DYX2aiYoO5WtG8R6tBh_k81:1)
    at R.fn.init.each (masterpagejs?v=UucszGsF6c2MewgvGCU79DYX2aiYoO5WtG8R6tBh_k81:1)
    at R.fn.init.e.fn.<computed> [as kendoEditable] (<anonymous>:30:5582)
    at r.editEvent (<anonymous>:556:21652)
    at init._createPopupEditor (<anonymous>:563:18759)

 

 

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 05 Jan 2021, 08:14 AM

Hi Vishal,

I have tested locally by loading KendoUI Scheduler from a partial view. The Scheduler widget is loaded correctly on my end. Also, events could be added or edited without any issues. Could you please share more information about the implementation on your side? Attached you will find a small runnable sample where on a button click a Scheduler is loaded using the jQuery load method. Could you please try to modify the sample project in order for the implementation to be closer to the one at your end and the issue to be replicated and send it back to us for a review? This way we could take a closer look and advise you further.

Looking forward to your reply.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Scheduler
Asked by
Ankit
Top achievements
Rank 1
Veteran
Answers by
Neli
Telerik team
Share this question
or