Hi,
i would like to know if it is possible to know if it is possible to extract the pager information during the NeedDataSource event.
I supposed it can be done with a custom pager, but i would like to reuse basic pager.
I need this because i have not a local db, but have to call a remote wcf service with a simple call (no odata or similar).
If cannot, do you suggest ObjectDataSource or Custom Pager?
Thx in advance
Mauro Dalla Zuanna
<telerik:RadGrid ID="RadGridMain" runat="server" AllowSorting="True" AllowPaging="True" AllowFilteringByColumn="True" PageSize="12"
OnNeedDataSource="RadGridTransazioni_NeedDataSource">
....
</telerik:RadGrid>
#Code behind
protected void RadGridMain_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e) {
WcfClient client = new WcfClient();
List<DataType> returnedData = client.ReturnData( <... sort, page number, number of records ...>);
this.RadGridMain.DataSource = returnedData;
}
i would like to know if it is possible to know if it is possible to extract the pager information during the NeedDataSource event.
I supposed it can be done with a custom pager, but i would like to reuse basic pager.
I need this because i have not a local db, but have to call a remote wcf service with a simple call (no odata or similar).
If cannot, do you suggest ObjectDataSource or Custom Pager?
Thx in advance
Mauro Dalla Zuanna
<telerik:RadGrid ID="RadGridMain" runat="server" AllowSorting="True" AllowPaging="True" AllowFilteringByColumn="True" PageSize="12"
OnNeedDataSource="RadGridTransazioni_NeedDataSource">
....
</telerik:RadGrid>
#Code behind
protected void RadGridMain_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e) {
WcfClient client = new WcfClient();
List<DataType> returnedData = client.ReturnData( <... sort, page number, number of records ...>);
this.RadGridMain.DataSource = returnedData;
}