or
For Each masterViewItem As GridDataItem In RadGrid-1.MasterTableView.Items
thisGrid = DirectCast(masterViewItem.ChildItem.NestedViewCell.FindControl("RadGrid-2"), RadGridThe problem that I am having is now when I traverse RadGrid1 to access all my RagGrid-2's they can not be be found. I am making a call like:
this.imgCreateStoreList.Attributes.Add("onclick", "openWinEvents('Events.aspx?Designator=" + desParameter + "&ctProcessId=" + ctProcessId + "&rnd=" + System.Guid.NewGuid() + "'); return false;");
function openWinEvents(parameter) { var wnd = $find('<%=RadWindow1.ClientID %>'); if (wnd != null) { wnd.setUrl("/Builder/" + parameter + ""); wnd.setSize(800, 600); wnd.set_modal(true); wnd.set_iconUrl("/img/radwindowicon.gif"); wnd.Show(); } }RadWindow CommPromptWindow = (RadWindow)Page.Master.FindControl("EventsPromptWindow"); CommPromptWindow.VisibleOnPageLoad = true; <script type="text/javascript"> function RefreshClientGrid() { try { var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); masterTable.rebind(); }catch(Error) { alert(Error); } } </script><asp:Label ID="CompanyIdLabel" runat="server" Visible="False"></asp:Label><uc1:FSCompanyReadOnly ID="FSCompanyReadOnly1" runat="server" /><telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="LinqDataSource1" GridLines="None" Skin="Telerik" PageSize="15" CellSpacing="0" OnItemCommand="RadGrid1_ItemCommand" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"> <MasterTableView DataKeyNames="ClientId" CommandItemDisplay="Top" ClientDataKeyNames="ClientId"> <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridEditCommandColumn ButtonType="LinkButton" UniqueName="EditCommandColumn"> <ItemStyle CssClass="GridImageButton" /> </telerik:GridEditCommandColumn> <telerik:GridBoundColumn DataField="ClientId" DataType="System.Int32" HeaderText="ClientId"