How do I get my column widths to auto size, when the column header is resizeable?
e.g. I have a simple grid with a TextBox headers. As the user types into the box, the width increases. If text is removed from the box, the TextBox width decreases but the columns width remains the same.
In this example if you delete the long text, the width will not change.
I had also tried changing the HeaderCellStyle to change its alignment/content alignment to left. This did not achieve the desired result of wanting the Star column to fill up the remaining space.
The overall goal I am trying to achieve is to the standard headers with text boxes to allow for complex (server side) searching; this can not be achieved by filter row, custom filters only control the pop up which does not deliver an optimal user experience, foot search rows is also not optimal.
e.g. I have a simple grid with a TextBox headers. As the user types into the box, the width increases. If text is removed from the box, the TextBox width decreases but the columns width remains the same.
<telerik:RadGridView >
<telerik:RadGridView.Columns>
<telerik:GridViewColumn >
<telerik:GridViewColumn.Header>
<TextBox Text=
"Long texttttttttt"
HorizontalAlignment=
"Left"
/>
</telerik:GridViewColumn.Header>
</telerik:GridViewColumn>
<telerik:GridViewColumn Header=
"Star"
Width=
"*"
/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
In this example if you delete the long text, the width will not change.
I had also tried changing the HeaderCellStyle to change its alignment/content alignment to left. This did not achieve the desired result of wanting the Star column to fill up the remaining space.
The overall goal I am trying to achieve is to the standard headers with text boxes to allow for complex (server side) searching; this can not be achieved by filter row, custom filters only control the pop up which does not deliver an optimal user experience, foot search rows is also not optimal.