Folks,
I am using ASP.Net Ajax Q2 2011 with VS 2010. Below is my Grid Table Laout.
Parent Table
---- Detail Table 1 (GridTableView Name = "Detail")
--- Detail Table 1.1
---- Detail Table 2
 
My desired expectations:
1) While I am scrolling rows in Parent Table, I would like to get the row counts of related Detail Table 1 but not row counts of other Detail Tables.
2) Also if I am scrolling rows in Detail Table 1, do nothing.
Below works to get the Row Count of Parent Table; but having some difficulty to getting row count of Related Detail Table 1.
function RowCount(sender, args) { var grid = $find("<%=RadGrid1.ClientID %>"); var MasterTable = grid.get_masterTableView(); var Rows = MasterTable.get_dataItems(); // Need Help here to get the Row Count of Detail Table 1 and Pass into TextBox RowCountTextBox...
alert(Rows.length);
document.getElementById("<%=RowCountTextBox.ClientID %>").value = parseInt(Rows.length); } Rad Grid Settings:
'''
HierarchyLoadMode = "ServerBind"
'''
<ClientEvents OnFilterMenuShowing="filterMenuShowing" OnRowSelected = "RowCount" /> ''' ''' <asp:TextBox ID="RowCountTextBox" runat="server" Text="" Width = "400px"> </asp:TextBox> I tried in Server Side Prerender event, but did not get the Child Table row count if Parent row is not expanded.
Thanks
gc_0620
