Is there a way to put two column names in one column header? I would like to have a column header that has city and then state underneath it. And be able to click on either city or the state to sort the column (that includes a city and state underneath it) by either city or state.
I figured it out.
Can you Tell me How you did this?
Hi Jadem,Thanks for the code! :)If you wish to copy code from Visual Studio and paste it as syntax-highlighted HTML which you can paste it in the forum, I can recommend the Copy As Html Visual Studio extension which my colleagues are using.Just check it out - there's a tutorial on the extension's home page. However, as an alternative, I can recommend two online syntax highlighting websites which I use for my replies:
$("#test-grid_container .ui-iggrid-headertable").find('thead').append($('<tr id="newheaderrow"></tr>'));$("#newheaderrow").append($("#test-grid_Column1"));$("#newheaderrow").append($("#test-grid_Column2"));
Cheers!Borislav
The forum is kind of wonky. The code should look like this:
$("#test-grid_container .ui-iggrid-headertable").find('thead').append($('<tr id="newheaderrow"></tr>'));$("#newheaderrow").append($("#test-grid_Column1"));$("#newheaderrow").append($("#test-grid_Column2")); p.s. I guess you can't paste code directly from VS.
$("#test-grid_container .ui-iggrid-headertable").find('thead').append($('<tr id="newheaderrow"></tr>'));
$(
"#newheaderrow").append($("#test-grid_Column2"));
"#newheaderrow").append($("#test-grid_Column1"));