Hello,
I've been playing around with RadGrid in a financial application that retrieves its data every second. In order to reduce server load I did some data caching and utilized RadGrid's client data-binding capabilities. Data is retrieved from an ASMX web service. Unfortunately I couldn't find a good demo implementing web server data-binding and NestedViewTemplate's/DetailTables'...
Consider a markup like this one:
It would be nice if I could somehow attach a select method to the NestedViewTemplate in order to retrieve a news by NewsID and still use a web service for that.
I've got an almost identical issue with DetailTables - I can't set a web service method to retrieve the appropriate data filtered by NewsID.
I know I can achieve this by using ObjectDataSource but I can not (correct me if I am wrong) point it to an arbitrary web service.
Any help would be greatly appreciated.
Thank you.
I've been playing around with RadGrid in a financial application that retrieves its data every second. In order to reduce server load I did some data caching and utilized RadGrid's client data-binding capabilities. Data is retrieved from an ASMX web service. Unfortunately I couldn't find a good demo implementing web server data-binding and NestedViewTemplate's/DetailTables'...
Consider a markup like this one:
| <telerik:RadGrid ID="Grid1" runat="server"> |
| <MasterTableView HierarchyLoadMode="ServerOnDemand"> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Date" HeaderText="Date" DataFormatString="{0:D}" /> |
| <telerik:GridBoundColumn DataField="Source" HeaderText="Source" /> |
| <telerik:GridBoundColumn DataField="Subject" HeaderText="Subject" /> |
| </Columns> |
| <NestedViewTemplate> |
| <asp:Label ID="LblBody" runat="server" Text='<%# Bind("Body") %>' meta:localize="false" /> |
| </NestedViewTemplate> |
| <NestedViewSettings> |
| <ParentTableRelation> |
| <telerik:GridRelationFields MasterKeyField="NewsID" DetailKeyField="NewsID" /> |
| </ParentTableRelation> |
| </NestedViewSettings> |
| </MasterTableView> |
| <ClientSettings> |
| <DataBinding Location="~/GridFeeder.asmx" SelectMethod="GetNews" SelectCountMethod="GetNewsCount" /> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
It would be nice if I could somehow attach a select method to the NestedViewTemplate in order to retrieve a news by NewsID and still use a web service for that.
I've got an almost identical issue with DetailTables - I can't set a web service method to retrieve the appropriate data filtered by NewsID.
I know I can achieve this by using ObjectDataSource but I can not (correct me if I am wrong) point it to an arbitrary web service.
Any help would be greatly appreciated.
Thank you.