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

RadGridView Group Panel not resize after remove all group panel items

5 Answers 86 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Per
Top achievements
Rank 1
Per asked on 29 Jan 2015, 07:39 AM
I'm using version v.2014.1.331.45.
I'm use RadGridView with dynamic row item.

<telerik:RadGridView Name="RadgridHoover"
                                     DockPanel.Dock="Top"
                                     BorderThickness="1,0,0,0"
                                     BorderBrush="LightGray"
                                     CanUserDeleteRows="True"
                                     CanUserInsertRows="True"
                                     ShowColumnHeaders="True"
                                     ShowGroupPanel="{Binding IsShowGroupPanel, Mode=TwoWay}"
                                     AlternateRowBackground="WhiteSmoke"
                                     AlternationCount="2"
                                     AutoGenerateColumns="False"
                                     SelectionMode="Multiple"
                                     IsReadOnly="True" 
                                     IsFilteringAllowed="True"
                                     EditTriggers="CurrentCellClick"
                                     SelectionUnit="FullRow"
                                     EnableColumnVirtualization="False"
                                     EnableRowVirtualization="True"
                                     RowIndicatorVisibility="Collapsed"
                                     GridLinesVisibility="Both"
                                     behaviors:GridColumnsBindingBehavior.Columns="{Binding Columns, Mode=TwoWay}"
                                     ItemsSource="{Binding MembersTable, Mode=TwoWay}"
                                     SelectedItem="{Binding SelectedItem}"
                                     caliburn:Message.Attach="[Event SelectionChanged] = [Action MembersGridSelectionChanged($executionContext)];[Event DataLoaded] = [Action GridDataLoaded($executionContext)];[Event LoadingRowDetails] = [Action LoadingRowDetails($executionContext)]"
                                     DataLoadMode="Asynchronous"
                                     >
            </telerik:RadGridView>

The issue is when i group by a column, then i remove item in group panel, the size of group panel is not resize correctly.

See the image is attached.

Please help me review and give me your ideas.

5 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 02 Feb 2015, 03:00 PM
Hi,

I've tried to reproduce the problem you report, but to no avail. You can check the attached sample project which illustrates my attempt. Please note that, I am using your version - 2014.1.0331.45. May I ask you to test with our latest version and let me know about the result? If the problem persists, I would ask you to send us a sample project that we can debug on our side, so that we would be able to identify the source.

Regards,
Yoan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Per
Top achievements
Rank 1
answered on 10 Feb 2015, 07:08 AM
Hi Yoan,

Thank you for helping me. I'm sorry about answer too late. Now i can not get the latest version of Telerik WPF but i have a project sample you. I cannot attach the sample in this reply. Could you please get the sample project in here : https://docs.google.com/file/d/0B0HCyUKIji79LXFoYjM1anc4V2c/edit and help me ?

Regards,
Thinh
0
Per
Top achievements
Rank 1
answered on 10 Feb 2015, 07:12 AM
0
Boris
Telerik team
answered on 12 Feb 2015, 04:38 PM
Hello Thinh,

Thanks to the provided sample project we were able to reproduce the issue. However, we will need a little more time to further investigate the matter.

We will contact you as soon as we are done.


Regards,
Boris
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Yoan
Telerik team
answered on 01 May 2015, 11:11 AM
Hello,

We had investigated this in greater details. Here are our findings:

As it turns out this is not a bug but an expected behavior. Basically, when you group the grid, a GroupIndicator is shown and the grid become wider. After that, when you remove the group from the GroupPanel, the group indicator is hidden but this will not affect the RadGridView's width any more. What we can suggest you is to set a fixed width for your grid (setting the MaxWidth is the other option), then you can set Width="*" for some of your columns. In this way you will get the desired behavior.

Regards,
Yoan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
GridView
Asked by
Per
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Per
Top achievements
Rank 1
Boris
Telerik team
Share this question
or