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

[Solved] Problem Binding at Runtime

3 Answers 105 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.
Tony
Top achievements
Rank 1
Tony asked on 02 Feb 2011, 11:02 PM
See the attached project and image file.
The project I have set up has 2 grids that hit the database.

When the user selects an item from the top left grid - it loads the bottom left grid (this works correctly)
When the user selects an item from the bottom left grid, it goes to the database, gets some XML and parses the data into a list.

It is this list that I bind to the top right grid, the columns of this grid are created and bound at runtime.

As you can see from the picture, the filter items are filled with the correct data - so the list is clearly loading with the correct data.
 
BUT  I cannot get the grid to actually display the data, it always shows the correct number of rows, but the cells are blank.

Please help!
Tony

3 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 03 Feb 2011, 08:11 AM

Hi Tony,

Is the project supposed to be attached to this thread? If so, could you please try to attach it again.



All the best,
Milan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Tony
Top achievements
Rank 1
answered on 03 Feb 2011, 01:57 PM
The porject file is 8 meg...probably the reason it did not work.

I have included just the 2 source files fromt he project...the viewmodel has a function called LoadData that does a Linq query to load the class.
The MainPage takes care of setting up and binding to the grid

Tony

I had to change the .zip extension to .png to upload it -- change it back to access the source files


I cannot seem to attach any type of file to this email -- the zip of the 2 files is only 3 KB and has ben renamed to a .png. Please advise as to how to get these files to you.
0
Maya
Telerik team
answered on 08 Feb 2011, 09:44 AM
Hi Tony,

In case you want to attach a sample project, you may try to open a support ticket. 

 
All the best,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Tony
Top achievements
Rank 1
Answers by
Milan
Telerik team
Tony
Top achievements
Rank 1
Maya
Telerik team
Share this question
or