Hey Telerik Team -
I've got a RadGridView & RadDataPager bound to a QueryableCollectionView in my ViewModel. In my service callback, I set my QCV to an ObservableCollection which is successfully returning ~1200 rows. My DataPager.PageSize is set to 20, and on page load, I can see "Page 1 of 61". My RGV however is empty. If I sort, group, filter, or page my data is displayed in my RGV, but not until I call any one of these.
Here's where I'm setting the WorkOrders:
In the setter of my WorkOrders property, I'm calling RaisePropertyChanged, as my ViewModels all implement INotify.
Any ideas?
I've got a RadGridView & RadDataPager bound to a QueryableCollectionView in my ViewModel. In my service callback, I set my QCV to an ObservableCollection which is successfully returning ~1200 rows. My DataPager.PageSize is set to 20, and on page load, I can see "Page 1 of 61". My RGV however is empty. If I sort, group, filter, or page my data is displayed in my RGV, but not until I call any one of these.
<
telerik:RadGridView
x:Name
=
"WOAGridView"
ItemsSource
=
"{Binding WorkOrders}"
HorizontalAlignment
=
"Left"
AutoGenerateColumns
=
"False"
IsReadOnly
=
"True"
/>
<
telerik:RadDataPager
Grid.Row
=
"1"
Source
=
"{Binding WorkOrders}"
PageSize
=
"20"
/>
Here's where I'm setting the WorkOrders:
private
void
GetWorkOrdersCallback(ObservableCollection<TSMVVM.Model.WorkOrders> workOrders)
{
if
(workOrders !=
null
)
{
if
(workOrders.Count > 0)
{
WorkOrders =
new
QueryableCollectionView(workOrders);
}
}
}
In the setter of my WorkOrders property, I'm calling RaisePropertyChanged, as my ViewModels all implement INotify.
Any ideas?