Author Topic: Pagination Dropdown support  (Read 1754 times)

jeeva

  • Newbie
  • *
  • Posts: 29
    • View Profile
Pagination Dropdown support
« on: July 04, 2017, 05:26:04 pm »
Dear support,

If grid have any action Are you sure you want to close? action in In normal pagination its working fine.

$('.ui-icon-seek-next,.ui-icon-seek-end,.ui-icon-seek-prev,.ui-icon-seek-first,.pq-page-placeholder select.ui-corner-all').off('click').on('click',function(event){
            var isConfirmed = true;
            isConfirmed = UrlService.checkOperationsConfirmed(dataJSONObj);
            if (isConfirmed === false){
               var pagerChange = $window.confirm($translate.instant('load.ALL.Err078_EditFieldValidation'));
               if(pagerChange == true){
                  obj.grid.option("pageModel.rPP",rpp);
               }
               return pagerChange;
            }
            $(this).off('click');
         });

when tried to integrate in grid dropdown,getting alert but when cancel action not staying in grid,Called service immediately.
$(document.body).on('change','select.ui-corner-all',function(){
               var isConfirmed = true;
            isConfirmed = UrlService.checkOperationsConfirmed(dataJSONObj);
            if (isConfirmed === false){
               var pagerChange = $window.confirm($translate.instant('load.ALL.Err078_EditFieldValidation'));
               if(pagerChange == true){
                  rpp = $(this).val();
                  //break;
               }
               return pagerChange;
            }
            $(this).off('change');
               
         });

Any API or method to prevent pagination drop down action when its return false ?

thanks
jeeva