UniGrid and < thead > tag

Brenden Kehren asked on February 25, 2014 00:27

How can I modify the HTML rendered by the UniGrid? I'd like to have my header tags wrapped in the < thead > tag. Hoping its a simple setting or configuration of the UniGrid.

Recent Answers

Brenden Kehren answered on March 6, 2014 10:22

I knew it had to be something simple. I found this article on Stackoverflow. I used the last answer for my custom webpart with the unigrid. Now I'm alble to use some jQuery plugins to get the table formatted for responsive layout.

protected override void OnPreRender(EventArgs e)
    if ((gridTrans.GridView.ShowHeader == true && gridTrans.RowsCount > 0) || (gridTrans.GridView.ShowHeaderWhenEmpty == true))
        gridTrans.GridView.HeaderRow.TableSection = TableRowSection.TableHeader;
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.