Hi all !
i have project using WebDataGrid v13.1
when i set enable RowSelectors grid
the grid header has more row on top. how remove this
when set disable RowSelectors:
Hello,In general there should not be such change in the header, if only the row selectors are enabled.The expected behavior when row selectors are enabled could be found at our online samples: http://www.infragistics.com/samples/aspnet/data-grid/row-selectors
Are you by any chance using Multi column headers? For reference: http://www.infragistics.com/samples/aspnet/data-grid/multi-column-headers
If you continue experiencing difficulties removing it, could you share the markup and CodeBehind code, in order to further look into this?
Hello Ivaylo!
Thank you for your answers.
Please see demo behind and help me.
Thanks!
Hello Nguyen,
The rendered header row is containing the following mkr attribute:
<tr style="height: 1px;" data-ig="x:1405433530.15:mkr:sizeHeaderRow" mkr="sizeHeaderRow">
You could set the following CSS display: none, in order to hide it. For example using a couple of jQuery methods could ease this. http://api.jquery.com/attribute-contains-selector/ http://www.w3schools.com/jquery/jquery_css.asp
$("tr[mkr='sizeHeaderRow']"); - will select the header row$("tr[mkr='sizeHeaderRow']").css("display", 'none'); - will select the header row and hide it.
Please let me know how this approach works for you!
i added code to project
document.onreadystatechange = function () { if (document.readyState == "complete") { if ($("tr[mkr='sizeHeaderRow']") != null) { $("tr[mkr='sizeHeaderRow']").css("display", 'none'); } } };
but line of the column was athwart
please let me fix that.
Thank you!