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

Fill Grid by RadGridView

1 Answer 143 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Marcin asked on 19 May 2011, 08:56 AM
i have radgridview inside grid column. The problem is that if i have to much text in some cell my grid will go outside screen.
The problem is that i dont want to have horizontal scrolls just i want  to fill grid by this radgridview and set column width in percentage.
So if user has other resolution or change app size radgridview will automaticaly change his column width. Please help me

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 20 May 2011, 10:18 AM
Hello Marcin,

 You could set the column width of both the Grid columns and the RadGridView columns in percentage using the "*" like:

<Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Width="2*"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Number}" Width="*"/>

I am attaching a sample project showing how the percentage is applied. Could you please review it and check if this is your desired behavior?

Best wishes,
Didie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Marcin
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or