Kendo tool Bar with Are you sure you want to leave this page JS file

2 posts, 0 answers
  1. dilshad
    dilshad avatar
    1 posts
    Member since:
    Jul 2016

    Posted 12 Jul Link to this post

        .Items(items =>
            items.Add().Type(CommandType.Button).Id("backButton").Text("Back To List").ImageUrl(Url.Content("~/Content/img/leftarrow.png")).Click("backButtonClick");

    i have few controls on my page and with out saving the information entered and clicking on above back button in kendo tool bar i get a prompt saying are you sure you want to leave this page or stay on this page.

    So when i click on kendo tool bar back button and prompts and if i selects stay on this page 

    my code breaks for below code and after that it stays in page and nothing happens in that page means it wont allow me to save that information.

    function backButtonClick(e) {    
        document.location.href = $("#RedirectToIndex").val();    

    This problem is not there with html button or kendo button.

    Problem is with kendo toolbar and button inside that.


    waiting for your response.




  2. Anton Dobrev
    Anton Dobrev avatar
    532 posts

    Posted 15 Jul Link to this post

    Hello Dilshad,

    You have submitted your technical inquiry under the Telerik Platform product. Telerik Platform  is an end-to-end solution for building and distributing mobile applications with a set of application development tools and services.

    I am afraid that Telerik Platform does not include support for the product you are referring to (in this case UI for ASP.NET MVC) and we cannot provide a resolution for your technical question. That is why I'd suggest that you consult the respective product forums here (requires a license) or community forums. 

    Anton Dobrev
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top