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

TextBox width of the grid view cell in edit mode

3 Answers 173 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nitin
Top achievements
Rank 1
Nitin asked on 30 Apr 2013, 10:38 AM
HI,

I have a grid inherited from RAd grid and in my editable column i have set the textblock.textwrapping to NoWrap. While editing i can enter n number of characters but i cant see them after the textbox width increases the column width.Cant the text can auto scroll in the cell so that he can see whatever he is typing.

I have the following style attached to the  column

<Style
        x:Key="EditStyle"
        TargetType="{x:Type telerik:GridViewCell}">
        <Setter
            Property="TextBlock.TextWrapping"
            Value="NoWrap" />
        <Setter
            Property="Padding"
            Value="5,3,5,2" />
        <Setter
            Property="ToolTip"
            Value="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Value,Mode=TwoWay,UpdateSourceTrigger= PropertyChanged}" />
        <Setter
            Property="Height"
            Value="24" />
</Style>

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 30 Apr 2013, 10:51 AM
Hello,

In fact, this does not depend on RadGridView in any way. Unfortunately, the stock WPF TextBox does not offer such a feature.

All the best,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Nitin
Top achievements
Rank 1
answered on 30 Apr 2013, 11:14 AM
Hi Rossen,


I understand that, but the problem is he row height is fixed the column width can be expanded by the user and after editing the cell we are also showing a tooltip. Can in any way while editing we can see watever we are typing after the column with is exceeded the textblock. Any suggestion will help.

Thanks,

Regards,
 Nitin
0
Rossen Hristov
Telerik team
answered on 30 Apr 2013, 11:16 AM
Hello,

We are not aware of any way to achieve your requirement.

All the best,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Nitin
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Nitin
Top achievements
Rank 1
Share this question
or