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

[Solved] Grouping disappears

5 Answers 164 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 31 Jan 2010, 12:57 PM
Hello,

I've a problem that the grouping disappears after the data are loaded and the grid is filled. During initialization I can see the grouping column in the group panel but when the grid is filled the grouping is gone.

Below you can see the code I've used. What I want to have is that the grid is automatically grouped by CompanyName.
  <Grid x:Name="LayoutRoot">  
    <dds:DomainDataSource x:Name="ddsNwndCust" QueryName="GetCustomers"   
                          AutoLoad="True">  
        <dds:DomainDataSource.DomainContext> 
            <domain:NwndCustomerDomainContext/> 
        </dds:DomainDataSource.DomainContext> 
    </dds:DomainDataSource> 
      
    <telGrid:RadGridView ItemsSource="{Binding Data, ElementName=ddsNwndCust}">  
        <telGrid:RadGridView.GroupDescriptors> 
            <telData:GroupDescriptor Member="CompanyName" DisplayContent="Company">  
            </telData:GroupDescriptor> 
        </telGrid:RadGridView.GroupDescriptors> 
    </telGrid:RadGridView> 
  </Grid> 
 

Thanks for your support

Uwe

5 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 01 Feb 2010, 09:50 AM
Hi uku,

Please check the attached project. It demonstrates how to add group descriptor to RadGridView that consumes data from domain data source.

If this does not solve your problem please send us a sample demonstrating the problem you are facing.
(To attach file you need to open support ticket).

Kind regards,
Tsvyatko
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 01 Feb 2010, 03:19 PM
Hello Tsvyatko,

thanks for your demo project. Within your project the functionality works as expexted but you use a different version of the Telerik components. The version no of the Telerik components in your project is 2009.3.1219.103 and the version no of the components I've used is 2009.3.1314.1030 which I thought is the latest service pack.

When you replace the Telerik components with the version I've used, than the problem occurs in your demo project exactly in the same way.

Please tell me if I'm using a wrong version or if the latest version has a problem concerning grouping and if there is a problem hopefully you can help me with a work around.

Thanks

Uwe

0
Tsvyatko
Telerik team
answered on 03 Feb 2010, 12:02 PM
Hi uku,

First, please excuse us for misunderstanding about  the version used.

Since 2009.3.1314.1030 we have added extended support for domain data source. Now RadGridView derives all data for grouping and sorting from domain data source and allows performing these operations on the server. This means that if RadGridView has group descriptors defined before setting domain data source as item source, it will take in mind only the descriptors defined in domain data source. Thus to achieve the desired behavior you need to define the group descriptors in the domain data source.

Please check the attached project for reference how this can be achieved.

Regards,
Tsvyatko
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
uku
Top achievements
Rank 1
answered on 03 Feb 2010, 02:11 PM
Hello Tsvyatko,

thanks for the project. This nearly solved my problem. I have one additional question. When I define the group descriptor in the domain data source, I can just specify the PropertyPath but not the DisplayMember as I can do it within the GridView definition.

Can you please tell me how I can show my own text instead of the PropertyPath.

Thanks

Uwe
0
Accepted
Tsvyatko
Telerik team
answered on 05 Feb 2010, 11:18 AM
Hi uku,

Please check the attached project. It demonstrates how you can  define specific Display member in group descriptor using domain data source.

If you have any other questions or issues, do not hesitate to contact us.

Regards,
Tsvyatko
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
GridView
Asked by
uku
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
uku
Top achievements
Rank 1
Share this question
or