Unplanned
Last Updated: 31 Jan 2022 09:16 by ADMIN
Matt
Created on: 24 Jan 2022 21:22
Category: TileLayout
Type: Feature Request
0
TileLayoutItem Width/ColSpan on resize

I am trying to resize a TextBox inside of a TileLayoutItem on resize of the tile. I have the resize handler implemented, and is accurately firing. However, I am not seeing the ColSpan actually change on the item, which would give me a point of reference to resize the textbox.


void OnResizeHandler(TileLayoutResizeEventArgs args)
    {
        if (args.Id == "commentTile")
        {
            if (CommentLI.ColSpan==1)
            {
                CommentWidth = "270px";
            }
            else
            {
                CommentWidth = (270 + (300 * (CommentLI.ColSpan - 1))).ToString() + "px";
            }
        }
    }

1 comment
ADMIN
Dimo
Posted on: 31 Jan 2022 09:16

Hello Matt,

Currently, the TileLayout component does not support two-way binding for the ColSpan and RowSpan attribute values. However, this is a valid feature request, so I am adding it to our backlog for future prioritization.

In the meantime, you can use the TileLayout State to check the ColSpan values in OnResize.

On the other hand, it is possible to set CommentWidth in percent or via calc(), so that manual adjustments are not needed. Maybe you are aware of this, but I am mentioning it just in case.

Regards,
Dimo
Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!