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

Problem with Asterick Width for Grid Column

1 Answer 27 Views
GridView
This is a migrated thread and some comments may be shown as answers.
StevenDale
Top achievements
Rank 2
StevenDale asked on 16 Dec 2009, 06:23 PM
I just upgraded to Q3 SP1 and have a problem with the Asterick width for Grid Column Width. Whenever this is used it causes the screen to resize out of control. I have the following example within a window which illustrates the problem even though I am using it on a usercontrol.

Here is the XAML:
<Window x:Class="TelerikTestProject.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="Window1"  
    xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
        > 
    <Grid> 
        <telerik:RadGridView AutoGenerateColumns="False" ItemsSource="{Binding PatientDiagnoses}"
            <telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn Width="*"  Header="Code"  DataMemberBinding="{Binding Path=Code}" />  
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 
    </Grid> 
</Window> 

Thanks,

Billy Jacobs

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Dec 2009, 07:44 AM
Hello Billy Jacobs,

I've just tried this however didn't get such problems. Please check the attached project for reference. You may get such behavior if the grid is measured with infinity width however in such cases you will need to specify MaxWidth.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
StevenDale
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Share this question
or