or

<RadGrid 1> <MasterTableView> <NestedViewTemplate> <Label ID="lbl_Id" ... /> <RadTabStrip> <Tabs> <RadTab Text="1" ... /> <RadTab Text="2" ... /> </Tabs> </RadTabStrip> <RadMultiPage ...> <RadPageView ID="ForTab1" ... > <RadGrid ID="NestedGrid1" OnNeedDataSource="NestedGrid1_OnNeedDataSource" ... /> </RadPageView> <RadPageView ID="ForTab2" ... > <RadGrid ID="NestedGrid2" ... /> </RadPageView> </RadMultiPage> </NestedViewTemplate> </MasterTableView> </RadGrid>protected void NestedGrid1_OnNeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e) { SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["AConnectionString"].ConnectionString); using (SqlCommand sqlComm = new SqlCommand("StoredProcedure1", con)) { sqlComm.CommandType = CommandType.StoredProcedure; sqlComm.Parameters.AddWithValue("@InTrId", lbl_Id.Text); SqlDataAdapter sda = new SqlDataAdapter(sqlComm); DataTable dt = new DataTable(); sda.Fill(dt); rGrid_Dex_Wc_Scans.DataSource = sda; } }
<telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumnMaterial column" HeaderText="Material" UniqueName="TemplateColumnMaterial"><ItemTemplate> <asp:Label ID="LabelMaterialSubstring" runat="server" Text='<%#Eval("material").ToString().Substring(7, 3) %>'></asp:Label></ItemTemplate></telerik:GridTemplateColumn>Public Property ItemId As Integer? Get Return Me.ViewState("Id") End Get Set(value As Integer?) Me.ViewState.Add("Id", value) End SetEnd PropertyPublic Property ItemId As Integer? Get Return Me.ViewState("Id") End Get Set(value As Integer?) Me.ViewState.Add("Id", value) Dim ctx = MyEntityContext ctx.Configuration.ProxyCreationEnabled = False Dim item = ctx.SomeCollection.find( value ) Me.ViewState.Add("item", item) End SetEnd Property<telerik:GridNumericColumn DataField="CostLimit" HeaderText="Limit" SortExpression="CostLimit" UniqueName="CostLimit" />