Scheduler, add, edit event not working in partial view

2 posts, 0 answers
  1. Vishal
    Vishal avatar
    9 posts
    Member since:
    Jun 2018

    Posted 01 Jan Link to this post

    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)

     

     

  2. Neli
    Admin
    Neli avatar
    434 posts

    Posted 05 Jan Link to this post

    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/.

Back to Top