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"; } } }
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