Hello,
I have an issue with the domaindatasource control; we use this control combined with a grid and pager and this works ok from xaml with the following code:
<
telerik:RadDomainDataSource
x:Name
=
"grdDataSource"
PageSize
=
"20"
AutoLoad
=
"True"
QueryName
=
"GetCustomers"
>
<
telerik:RadDomainDataSource.DomainContext
>
<
myService:myContext
/>
</
telerik:RadDomainDataSource.DomainContext
>
<
telerik:RadDomainDataSource.SortDescriptors
>
<
telerik:SortDescriptor
Member
=
"Id"
SortDirection
=
"Ascending"
/>
</
telerik:RadDomainDataSource.SortDescriptors
>
</
telerik:RadDomainDataSource
>
<
telerik:RadGridView
x:Name
=
"grdData"
SelectionMode
=
"Single"
IsReadOnly
=
"True"
VerticalAlignment
=
"Top"
AutoGenerateColumns
=
"True"
ItemsSource
=
"{Binding PagedSource, ElementName=grdPager}"
IsBusy
=
"{Binding IsBusy, ElementName=grdDataSource}"
/>
<
telerik:RadDataPager
x:Name
=
"grdPager"
PageSize
=
"10"
Source
=
"{Binding DataView, ElementName=grdDataSource}"
DisplayMode
=
"FirstLastPreviousNextNumeric, Text"
IsTotalItemCountFixed
=
"True"
/>
(Sorry about the diff in pagesize on pager and domainsource... but that is not the issue here)
As said the above works great; using fiddler i see a nice query using Take, OrderBy and Skip.
However when i now change the QueryName from code-behind the control stops sending the Take. This results in a download of a large amount of records, resulting in iexplore to crash... :(
It feels like this is a bug, but maybe i'm overseeing something...
Thanks in advance for helping out!
Regards,
Piet