RadGridView Group Panel not resize after remove all group panel items

6 posts, 0 answers
  1. Per
    Per avatar
    3 posts
    Member since:
    Aug 2014

    Posted 29 Jan 2015 Link to this post

    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.
  2. Yoan
    Admin
    Yoan avatar
    1182 posts

    Posted 02 Feb 2015 Link to this post

    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.

     
  3. Per
    Per avatar
    3 posts
    Member since:
    Aug 2014

    Posted 10 Feb 2015 Link to this post

    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
  4. Per
    Per avatar
    3 posts
    Member since:
    Aug 2014

    Posted 10 Feb 2015 in reply to Per Link to this post

  5. Boris
    Admin
    Boris avatar
    276 posts

    Posted 12 Feb 2015 Link to this post

    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.

     
  6. Yoan
    Admin
    Yoan avatar
    1182 posts

    Posted 01 May 2015 Link to this post

    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.

     
Back to Top