Hey,
I am using SelfReferencing in "Prometheus" grid
If there is no child record in the grid it shows empty row with "No child records to display." i want to remove these rows can you please help me out..
i have seen one link for that and its not working for me..
undefined value in RowObject
http://www.telerik.com/help/radgrid/v3_NET2/grdHideExpandCollapseImagesWhenNoRecordsClientLoadMode.html
I am using SelfReferencing in "Prometheus" grid
If there is no child record in the grid it shows empty row with "No child records to display." i want to remove these rows can you please help me out..
i have seen one link for that and its not working for me..
undefined value in RowObject
http://www.telerik.com/help/radgrid/v3_NET2/grdHideExpandCollapseImagesWhenNoRecordsClientLoadMode.html
<script type="text/javascript">
function RowCreated(rowObject)
{
//alert(rowObject.Type);
if(rowObject.ItemType == "NestedView")
{
var nestedTable = rowObject.Control.cells[1].childNodes[0];
if(nestedTable != null && nestedTable.tBodies[0].rows.length == 1 && nestedTable.innerHTML.indexOf("No child records to display.") != -1)
{
var parentRow = this.Control.rows[rowObject.Control.rowIndex - 1];
parentRow.cells[0].childNodes[0].style.display =
"none";
rowObject.Control.style.display =
"none";
}
}
}
</script>
thanks