Hi there,
First post on this forum :)
My question relates to placing a radgrid inside a GridTemplateColumn within a RadGrid, I'm not sure how to do it. Currently i have a radgrid as per below:
<telerik:RadGrid id="rgdListLicences" runat="server" Width="100%" GridLines="None" Skin="eLicensing_paging" EnableEmbeddedSkins="false" EnableViewState="true">
<MasterTableView RetrieveAllDataFields="false" AutoGenerateColumns="false" >
<Columns>
<telerik:GridBoundColumn DataField="clientRef" HeaderText="Client Ref">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="commencementDate" HeaderText="Commencement Date">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="validations" HeaderText="Validations" SortExpression="CompanyName" InitializeTemplatesFirst="false">
<ItemTemplate>
<telerik:radgrid ID="rgdValidations" runat="server" >
<MasterTableView >
<Columns >
<telerik:GridBoundColumn DataField="validations.Text">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:radgrid>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
And I Bind to the radgrid in the codebehind, as follows:
rgdListLicences.DataSource = CType(licenceImportParser.getLicences.Licence.ToList, IEnumerable)
rgdListLicences.DataBind()
The Datasource licenceImportParser.getLicences.Licence, is a list of objects. These objects contain several properties, which bind successfully to the other columns (ie. commencement date above), but also contain a list of Strings called validations which i need to bind to the radgrid inside the GridTemplateColumn.
I thought i could just set the DataField="validations.Text" or something like that considering validations is a list of Strings.. but not sure here!
But I cant figure out how i can bind it! Any help is greatly appreciated!!
Thanks
Neil
First post on this forum :)
My question relates to placing a radgrid inside a GridTemplateColumn within a RadGrid, I'm not sure how to do it. Currently i have a radgrid as per below:
<telerik:RadGrid id="rgdListLicences" runat="server" Width="100%" GridLines="None" Skin="eLicensing_paging" EnableEmbeddedSkins="false" EnableViewState="true">
<MasterTableView RetrieveAllDataFields="false" AutoGenerateColumns="false" >
<Columns>
<telerik:GridBoundColumn DataField="clientRef" HeaderText="Client Ref">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="commencementDate" HeaderText="Commencement Date">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="validations" HeaderText="Validations" SortExpression="CompanyName" InitializeTemplatesFirst="false">
<ItemTemplate>
<telerik:radgrid ID="rgdValidations" runat="server" >
<MasterTableView >
<Columns >
<telerik:GridBoundColumn DataField="validations.Text">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:radgrid>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
And I Bind to the radgrid in the codebehind, as follows:
rgdListLicences.DataSource = CType(licenceImportParser.getLicences.Licence.ToList, IEnumerable)
rgdListLicences.DataBind()
The Datasource licenceImportParser.getLicences.Licence, is a list of objects. These objects contain several properties, which bind successfully to the other columns (ie. commencement date above), but also contain a list of Strings called validations which i need to bind to the radgrid inside the GridTemplateColumn.
I thought i could just set the DataField="validations.Text" or something like that considering validations is a list of Strings.. but not sure here!
But I cant figure out how i can bind it! Any help is greatly appreciated!!
Thanks
Neil