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

exception when clear groupdescriptors?

8 Answers 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ulrich Fiege
Top achievements
Rank 1
Ulrich Fiege asked on 19 Jan 2010, 08:52 AM
hello i want to programaticly add and remove a 

groupDescriptor. When i add the groupDescriptor all is fine and the data is grouped but
when i use the clear method or removeat then i get a exception.
what is wrong? thanks ...

here is a sample code:

 

Private Sub grcars_Sorting(ByVal sender As Object, ByVal e As Telerik.Windows.Controls.GridViewSortingEventArgs) Handles grcars.Sorting

        If e.Column.Header.ToString = "Gruppe" Then
            e.Cancel = True
            If grcars.GroupDescriptors.Count = 0 Then
                Dim cf As New CountFunction(), groupDescriptor As New GroupDescriptor()
                cf.Caption = "Fahrzeuge: "
                With groupDescriptor
                    .Member = "groupDescription"
                    .SortDirection = ComponentModel.ListSortDirection.Ascending
                    .AggregateFunctions.Add(cf)
                End With
                grcars.GroupDescriptors.Add(groupDescriptor)
                Exit Sub
            Else
                grcars.GroupDescriptors.Clear() <----- ERROR !
            End If
        End If

    End Sub

 

 

 

 

8 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 19 Jan 2010, 08:56 AM
Hello,

Can you post more info about the exception? Stack-trace will be fine.

All the best,
Vlad
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
Ulrich Fiege
Top achievements
Rank 1
answered on 19 Jan 2010, 11:08 AM
I can't make a copy to clipboard so i have made some screenshots from the alertbox.
It seems that this occurs only in IE but not in Firefox.

0
Vlad
Telerik team
answered on 19 Jan 2010, 11:22 AM
Hi,

Can you post more info about the grid version?

Regards,
Vlad
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
Ulrich Fiege
Top achievements
Rank 1
answered on 19 Jan 2010, 01:11 PM
we have the latest SP2 Q3 Version from RadGridView.
0
Ulrich Fiege
Top achievements
Rank 1
answered on 21 Jan 2010, 02:52 PM
Are there any news to this issue?
greetings ...
0
Pavel Pavlov
Telerik team
answered on 21 Jan 2010, 04:11 PM
Hi Ulrich ,

Unfortunately all attempts to reproduce the problem here failed. Can you please send us a small project that reproduces the error .  To be able to attach it you will need to open a support ticket.

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
Tony
Top achievements
Rank 1
answered on 02 Apr 2010, 07:29 PM
I'm experiencing the same issue.  Here is what is strange. This condition only happens when certain rows are selected in the grid prior to calling GroupDescriptors.Clear().  We've isolated the problem to rows containing data elements which contain cell's having multiple lines of text. IE: TextBlock with multiple lines containing line breaks. 
0
Yordanka
Telerik team
answered on 06 Apr 2010, 10:12 AM
Hello Tony,

I tried to reproduce the problem using your scenario but unfortunately without success. Could you please send us a sample project where the problem can be seen? Thank you in advance!

Best wishes,
Yordanka
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Ulrich Fiege
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ulrich Fiege
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Tony
Top achievements
Rank 1
Yordanka
Telerik team
Share this question
or