I am using igGrid in our MVC application with bootstrap. The requirement is to have the grid header fixed so that its visible when user scrolls the long list from top to bottom. Normally the grid header looks like this:
The problem is when I call bootstrap affix class, it shows the grid headers but they don't have any width. They all just stick together and it doesn't represent the correct cell header.
The way I am doing it by getting the grid rendered
event as:
rendered: function (evt, ui) {
//get grid header elements
var _thead = $(ui.owner.element[0]).find('thead');
//call affix
_thead.affix({ offset: { top: 30 } });
},
I don't how I can fix the width of the header. Any help is appreciated.