Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
975
How to hide the row in igGrid?
posted

what API or property that I can use to hide a row in the grid? thanks.

Parents
  • 17559
    posted

    Hello aschoi ,

     

    You can try some custom logic in order to hide some of the rows you can try the following code snippets:

    function hide() {
        $("#grid1").igGrid("allRows").each(function(index) {

            var id = $(this).attr("data-id");

            if (id < 4) {
                $(this).css("display", 'none');
            }

        });

    this will iterate through the DOM and will hide all of the rows that have id less than 4. Another approach that you may try is by using our filtering functionality:

     

    http://help.infragistics.com/Help/NetAdvantage/jQuery/2012.1/CLR4.0/html/igGrid_Filtering.html

     

    If you need any additional assistance on this please do not hesitate to ask.

Reply Children
No Data