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

[Solved] get gridview width during runtime

2 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
uku
Top achievements
Rank 1
uku asked on 26 Jan 2010, 03:49 PM
Hello,

I hope someone could give me a hint which property to use to get the current grid width.
In certain situations I want to partly overlap the grid (I'm using a drop down button for this) and therefore I have to know the width of the grid. As long as I'm setting the grid width to a fix value in xaml, then I can use the width property to get the current width.
But if I don't use a fix grid width then the width property doesn't deliver a value.

So probably I've overlooked something but I can't figure out how to detect the width of a dynamic grid during runtime.

Thanks for your help

Uwe

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 26 Jan 2010, 04:02 PM
Hello uku,

Have you tried the ActualWidth property ?

Sincerely yours,
Pavel Pavlov
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.
0
uku
Top achievements
Rank 1
answered on 26 Jan 2010, 05:11 PM
Hello Pavel,

I knew it must be something very simple, but I simply overlooked it.
Thanks for your very fast response

Cheers

Uwe
Tags
GridView
Asked by
uku
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
uku
Top achievements
Rank 1
Share this question
or