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

Gettting extra column in Radgridview(but no column width is set)

1 Answer 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Karthik Reddy
Top achievements
Rank 1
Karthik Reddy asked on 24 Jul 2015, 06:34 PM
Hi,
I am binding a RadGridView to a dynamic data source that can contain multiple numbers of columns. A blank column is always being displayed to the right of the grid and this column can not be selected. I am not adding this column in code and cannot see this column in the columns collection of the grid. I have googled and found a solution as adding column width as "*". But if i do so my window is going to infinite size as i have not defined max width(Reason for not defining max width is they are using at multiple places in the project).

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 27 Jul 2015, 07:31 AM
Hello,

It seems RadGridView is measured with infinity in this scenario. Generally, I would not recommend you defining RadGridView (or any virtualized control) in panels like ScrollViewer,DockPanelStackPanel or Grid with Row.Height=Auto as they measure its content with infinity and the UI virtualization of the grid will be broken. Consequently, there will be also performance degradation. 

You can place RadGridView in a Grid with Row.Height="*" instead.  You can also refer to the online documentation explaining how the UI virtualization works. 

Regards,
Dimitrina
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Karthik Reddy
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or