TelerikGridLayout Columnspan does not work with TelerikFloatingLabel

1 Answer 106 Views
FloatingLabel GridLayout
Diego Modolo
Top achievements
Rank 1
Iron
Iron
Diego Modolo asked on 28 Feb 2024, 05:05 PM

When I use the ColumnSpan property on a floating label, the label itself will grow to the number of columns, but the content of the label will always get the size of the column the floating label is int.

Below is the code I've used:


@page "/gridLayout"

<TelerikGridLayout>
    <GridLayoutColumns>
        <GridLayoutColumn Width="200"/>
        <GridLayoutColumn Width="200"/>
        <GridLayoutColumn Width="200"/>
        <GridLayoutColumn Width="200"/>
    </GridLayoutColumns>

    <GridLayoutItems>
        <GridLayoutItem Column="1"
                        Row="1"
                        ColumnSpan="3">
            <TelerikTextBox Title="Filial" />
        </GridLayoutItem>
        <GridLayoutItem Column="1"
                        Row="2"
                        ColumnSpan="3">
            <TelerikFloatingLabel Text="Pessoa">
                <TelerikTextBox />
            </TelerikFloatingLabel>
        </GridLayoutItem>
    </GridLayoutItems>
</TelerikGridLayout>

This is how it's rendered:

 

1 Answer, 1 is accepted

Sort by
0
Diego Modolo
Top achievements
Rank 1
Iron
Iron
answered on 08 Mar 2024, 12:52 PM

I was able to fix it by adding the following to my site.css file:

/* Telerik floating label */

.k-floating-label-container {
width: 100%;
}
Tags
FloatingLabel GridLayout
Asked by
Diego Modolo
Top achievements
Rank 1
Iron
Iron
Answers by
Diego Modolo
Top achievements
Rank 1
Iron
Iron
Share this question
or