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

Fixed Size Tile by Position

1 Answer 106 Views
TileLayout
This is a migrated thread and some comments may be shown as answers.
Walter
Top achievements
Rank 1
Iron
Walter asked on 30 Oct 2020, 02:51 PM
     Is there a way to fix the size of the tile based on it's position in the tilelayout component?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 31 Oct 2020, 08:18 AM

Hello Walter,

How would you expect such a feature to be exposed? For example, if in OnResized, you could:

  1. use .GetState() to see what tile is in what position (at the moment you can get the state already, identifiers for tiles will likely be implemented here, feel free to join the discussion)
  2. find the tile at the position you want to change and set its ColSpan and RowSpan in the state object you got with the desried values and business logic you have
  3. use .SetState() to set that new state to the tile layout - that's the thing that can't work right now, the tile layout does not re-render in that event, it's purely informational for the developer so you can save the state (see the notes here)

So, if you could perform step 3, would that suffice for you?

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
TileLayout
Asked by
Walter
Top achievements
Rank 1
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or