Set Row and column span from code behind

2 posts, 1 answers
  1. Ricardo
    Ricardo avatar
    44 posts
    Member since:
    May 2018

    Posted 06 Aug 2018 Link to this post

    Hi,

    I'm following the example provided by telerik in order to develop an application with a radtileview. However, i need to make the items dynamically form the code behind, so my question is how do i define the row and column for each item in the code behind, i.e., similar to what is done in the following example:

         <telerik:RadTileView x:Name="Form" MinimizedItemsPosition="Bottom"
                                 MaximizeMode="Zero"
                                 DragMode="Swap" PreservePositionWhenMaximized="True" Width="700"
                                 RowsCount="{Binding Rows,Mode=TwoWay}"
                                 ColumnsCount="{Binding Columns,Mode=TwoWay}">
                    <telerik:RadTileView.ItemsPanel>
                        <ItemsPanelTemplate>
                            <local:TemplateForm RowsCount="10" ColumnsCount="4" />
                        </ItemsPanelTemplate>
                    </telerik:RadTileView.ItemsPanel>
                   <telerik:RadTileViewItem MinWidth="175" MinHeight="45"
                                             local:TileViewProperties.Row="0"
                                             local:TileViewProperties.Column="0"/>

    </telerik:RadTileViewItem>

    </telerik:RadTileView>

     

    Can anyone help me?

     

    Thanks

  2. Answer
    Dinko
    Admin
    Dinko avatar
    951 posts

    Posted 09 Aug 2018 Link to this post

    Hi Ricardo,

    This thread seems to be a duplicate of this one Set Row and column span from code behind. I already answered your question in the other forum thread. In order to avoid duplication, let's continue in the other thread.

    Regards,
    Dinko
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top