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

[Solved] Bugs using XML ItemSource

1 Answer 106 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jose
Top achievements
Rank 1
jose asked on 25 Feb 2011, 03:50 PM

We are using RadGridview to control the presentation of data of social indicators.

The information shown is related to the time (years) and data in relation to grow over time.

The idea is to have a control that is dynamically complete without a fixed pattern, since each indicator has variables per year. Having a fixed model would represent having to change code every time there's a new year.

 

One solution is implemented to generate an XML file at runtime using isolated storage IsolatedStorageFile and XmlWriterSettings to write to this file.

 

Once you create the XML file we use StreamReader to read the file and XDocument to bring the file to the application.

 

To assign the XML file to control RadGridView do as follows:

 

RadGridView. ItemsSource = xDoc.Descendants ("Tag name of XML file"). ToList ();

 

Which is of type XDocument xdoc.

 

Thus we present the XML content in the control RadGridView.

But this has meant that when exporting data RadGridview information exported by like as the XML file source, I mean that in each cell of the exported table contains the structure of the source XML file. And also disables control the choice of filters is RadGridView default.

 

How we can solve these problems export result  and control of filters?








1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Mar 2011, 09:22 AM
Hi,

 Please check this thread for more info. 

Greetings,
Vlad
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
jose
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or