This is a migrated thread and some comments may be shown as answers.

[Solved] Grid combined with flipview

1 Answer 116 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Koen
Top achievements
Rank 1
Koen asked on 19 Aug 2013, 02:13 PM
Hello, 

Is there an example of a RadDataGrid with a Flipview behind (double tap)?  
I'm having the following problems:

 - I have a column that has a "sortdirection" in the XAML, but when executed, the data isn't sorted (although there is an arrow that it's sorted).
 - running through the same records in the flipview  (in the same order) as in the RadDataGrid (filtered and sorted)
 - remembering the grid state when coming back from the Flipview (i.e. the sorting and filtering)

Thanks for the information.

Regards,
Koen

[EDIT] The second problem is already solved. I use the function GetDataView to retrieve the filtered and sorted records from the grid and then I use that as the Datacontext for the FlipView.

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 21 Aug 2013, 10:51 AM
Hi Koen,

Thank you for using RadControls for Windows 8!

About your first problem: The SortDirection property controls only the visual state of the SortDirectionGlyph and does not affect the actual sorting state of the grid. If you want to initially sort the data, you have to add a SortDescriptor to the SortDescriptors collection of the grid.

As to your third question: If you navigate between pages, then you have to set the NavigationCacheMode property of the page that contains the grid to Enabled.

For your convenience I have attached a runnable sample application that has two pages - one with a RadDataGrid, that is initially sorted, and one with a FlipView that uses the currently displayed items in the grid as ItemsSource.

I hope this was useful and let us know if there is anything else we can assist you with.

Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Grid for XAML
Asked by
Koen
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or