Skip to content

Replies

0
Sanjay kumar
Sanjay kumar answered on Jul 2, 2015 1:32 PM

Thanks so much for giving attention to my requirement.

Actually, i'm looking any setting in grid which allow me to hide some conditions.

Its' okay, i've already made jquery fix for this requirement, BUT your sample is short and simple. Thanks alot.

$(document).delegate("#Grid", "iggriddatarendered", function (evt, ui) {

     var $nextMonth = $('.ui-iggrid-filtericonnextmonth');

     if ($nextMonth.length > 0) {
         var $parentNote = $nextMonth.parent().parent();
         if ($parentNote.length > 0) { $parentNote.css("display", "none");}
     }    

     var $nextYear = $('.ui-iggrid-filtericonnextyear');

     if ($nextYear.length > 0) {
        var $parentNote = $nextYear.parent().parent();
        if ($parentNote.length > 0) { $parentNote.css("display", "none");}
      }
});

$(document).delegate("#Grid", "iggridfilteringfilterdialogfilteradded", function (evt, ui) {
    var $ClientNotesGrid1_container_dialog = $('#ClientNotesGrid1_container_dialog');
    if ($ClientNotesGrid1_container_dialog.length > 0) {
         var $filterTable = $('.ui-iggrid-filtertable', $ClientNotesGrid1_container_dialog);
         if ($filterTable.length > 0) {
            var $filterSelect = $filterTable.find('select');
             if ($filterSelect.length > 0) {
                $filterSelect.find('[value="nextMonth"]').remove();
                 $filterSelect.find('[value="nextYear"]').remove();
             }
         }
     }
});

Thanks once again.