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

[Solved] ItemsSource and dynamic type

6 Answers 177 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.
Richard Harrigan
Top achievements
Rank 1
Richard Harrigan asked on 22 Apr 2013, 10:42 PM
Hi,

The statement below is returned to a WPF RadGridView program that sets the RadGridView.ItemsSource and it work fine.  What I would like to know is if this will also work if called by a windows 8 store app that is using the telerik Grid for xaml control?  If not could you explain how I would bind xml to the control.

return new ObservableCollection<dynamic>(from element in xdoc.Descendants("Row") select new MyDataRow(ToDictionary(element)));

Thanks
Rich

6 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 25 Apr 2013, 02:36 PM
Hello Richard,

Thank you for using our RadControls for Windows 8.

Yes, in our latest official Q1 2013 SP1 release our RadDataGrid allows binding to dynamic objects. I have attached a sample project with a DataGrid bound to a collection of dynamic objects. Note, that the code for reading the xml file should probably be slightly modified in order to match the WinRT namespaces, approach and etc.

I hope this information is useful.

 

Kind regards,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Richard Harrigan
Top achievements
Rank 1
answered on 25 Apr 2013, 04:25 PM
Hi Gergov,

That is great news.  Does that also apply to Windows/RT?

Thanks for the demo.
Rich
0
Ivaylo Gergov
Telerik team
answered on 29 Apr 2013, 04:50 PM
Hi Richard,

Yes, I can confirm that it applies to WinRT.

Let me know if you need further assistance.

 

Greetings,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Richard Harrigan
Top achievements
Rank 1
answered on 06 May 2013, 06:32 PM
Hi Ivaylo,

I have been experimenting with the Grid example you sent and it looks good.  However, I think I will need a xaml/c# example with more features being demonstrated.  Most of the examples that I have seen are for html5. Specifically the following is what I need to see examples of

in c# code behind
.
Create columns with binding to columns data.  Also show other that text, i.e. date, decimal, Int32 etc. stored with grid.
Create filters, groups and sorting
add filtering, grouping and sorting to header (i.e. icon for filter).

I think I can put together a store app pretty quickly if I can get the above example.

Thanks
Rich


0
Mikael
Top achievements
Rank 1
answered on 07 May 2013, 12:33 PM
Edit: My mistake. The dynamic stuff works with the latest official version.
0
Ivaylo Gergov
Telerik team
answered on 08 May 2013, 04:41 PM
Hi Richard,

You can take a look at our online documentation, where you can find a lot of examples:
In the current version of RadDataGrid, it supports only Grouping UI and Sorting UI, but in our Q2 2013 BETA release(by the end of the month) it will support also Filtering UI out of the box. 

I hope this helps.  Let me know if I can assist you further.

Regards,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Grid for XAML
Asked by
Richard Harrigan
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Richard Harrigan
Top achievements
Rank 1
Mikael
Top achievements
Rank 1
Share this question
or