Hello,
I am trying to use an Item Template with the Rad Grid but when the control is databound I just get a message saying 'No records to display'. Here is my code:
ASPX:
ASPX.CS:
The datasource is an IList<T>. When I debug the line above I can see that the collection has 2 records in it.
Please can you tell me what I am doing wrong.
Thanks
I am trying to use an Item Template with the Rad Grid but when the control is databound I just get a message saying 'No records to display'. Here is my code:
ASPX:
<telerik:RadGrid ID="EcsSupplierAgreementsGrid" runat="server" AutoGenerateColumns="false" OnNeedDataSource="EcsSupplierAgreementsGrid_NeedDataSource" GridLines="None"> <MasterTableView Width="100%"> <ItemTemplate> <%# Eval("SupplierCode")%> </ItemTemplate> </MasterTableView> </telerik:RadGrid>ASPX.CS:
protected void EcsSupplierAgreementsGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) { EcsSupplierAgreementsGrid.DataSource = _agreement.SupplierAgreements; }The datasource is an IList<T>. When I debug the line above I can see that the collection has 2 records in it.
Please can you tell me what I am doing wrong.
Thanks