Populate grid from databidning?

4 posts, 0 answers
  1. Richard
    Richard avatar
    2 posts
    Member since:
    Jan 2011

    Posted 05 Feb 2011 Link to this post

    Hi,

    How can i poplulate the uniform grid via databinding?

    Thanks
    /Richard
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 07 Feb 2011 Link to this post

    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>>
  3. DevCraft banner
  4. Richard
    Richard avatar
    2 posts
    Member since:
    Jan 2011

    Posted 07 Feb 2011 Link to this post

    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>
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 07 Feb 2011 Link to this post

    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>>
Back to Top