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

Populate grid from databidning?

3 Answers 82 Views
UniformGrid
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
Top achievements
Rank 1
Richard asked on 05 Feb 2011, 04:12 PM
Hi,

How can i poplulate the uniform grid via databinding?

Thanks
/Richard

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 07 Feb 2011, 08:41 AM
Hello Richard,

Thanks for contacting us and for your question.

In fact, the RadUniformGrid (similar to a Grid and StackPanel found in the Silverlight framework for Windows Phone) is simply a layout panel that orders its children in rows and columns. It is not a data control and thus does not support data binding.

Could you please shed some light on the scenario that you would like to implement so that we can evaluate it and consider it when planning our development for the next releases?

Thanks for your time.

Best wishes,
Deyan
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
Richard
Top achievements
Rank 1
answered on 07 Feb 2011, 11:31 AM
Hi,

I solved the problem by using an ItemsController. Thank you for the reply anyway!

<ItemsControl ItemsSource="{Binding Items}">
   
<ItemsControl.ItemsPanel>
       
<ItemsPanelTemplate>
           
<toolkit:WrapPanel Margin="5,0,0,0" Width="400"/> <!-- or RadUniformGrid -->
       
</ItemsPanelTemplate>
   
</ItemsControl.ItemsPanel>
   
<ItemsControl.ItemTemplate>
       
<DataTemplate>
           
<StackPanel Height="236" Width="182">
              <!-- biding content here -->

           
</StackPanel>
       
</DataTemplate>
   
</ItemsControl.ItemTemplate>
</ItemsControl>
0
Deyan
Telerik team
answered on 07 Feb 2011, 01:00 PM
Hi Richard,

I am happy that you have managed to find a solution.

Do not hesitate to get back to us in case of further questions.

Kind regards,
Deyan
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
UniformGrid
Asked by
Richard
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Richard
Top achievements
Rank 1
Share this question
or