Regarding ajax Grid : Grid ajax Column hide some

Last post 03-07-2009 5:05 PM by xxxd. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-07-2009 3:24 AM

    Regarding ajax Grid : Grid ajax Column hide some

     i m using ajax Grid but i m getting a problem i want to hide some column from the the grid but i also want to gat the data from that column.

    can u help me regarding this.

  •  Advertisement

    Featured Advertisement

     
  • 03-07-2009 5:05 PM In reply to

    • xxxd
    • Top 10 Contributor
    • Joined on 12-18-2006
    • Slacker
    • Points 19,057

    Re: Regarding ajax Grid : Grid ajax Column hide some

     try this, hide some of the columns on databound

     function onDataBound(sender, e)
            {
                var row = e.get_row();
                var tr = row.get_container();
                var productColumnIndex = 1;
                if (tr.childNodes.length > productColumnIndex)
                    tr.childNodes[productColumnIndex].style.display = "none";
        
                  
            }

Page 1 of 1 (2 items)