Keep open in kendo grid edit popup

2 posts, 0 answers
  1. Muhammad Fiqih
    Muhammad Fiqih avatar
    13 posts
    Member since:
    Nov 2017

    Posted 04 Sep 2018 Link to this post

    Hi,

    I have a problem with kendo the edit grid popup, i cannot validate empty when i save a data, but popup has been closed Please give a solution about this problem

    This is my code

    01.if($scope.approveModel.notes == ""){
    02. $rootScope.$broadcast(EVENTS.CLIENT.warningResponse, "Notes harus diisi");
    03.                     
    04.}else{
    05. approvalService
    06. .save($scope.approveModel)
    07. .then(function (response, status, headers, config) {
    08.    var grid = $("#approvalGrid").getKendoGrid();
    09.    grid.dataSource.read();
    10.  });
    11.}

     

    Thanks

     

    *sorry for my bad english

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    2497 posts

    Posted 05 Sep 2018 Link to this post

    Hello Muhammad,

    As I understand the requirement you would like to prevent the Grid popup from closing when there are validation errors. If that is the case please check out the threads below that discuss the functionality. 



    Regards,
    Viktor Tachev
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top