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

Q2 2007 GridView Sorting Issue

3 Answers 156 Views
GridView
This is a migrated thread and some comments may be shown as answers.
maydaytx
Top achievements
Rank 1
maydaytx asked on 20 Sep 2007, 01:37 PM
I am having trouble sorting the new GridView when I have the Column DataField set to Property.Property.

For example, if the DataField = Name then the column sorts properly, but if the DataField = Person.Name then the column does not sort.

~DuckLeg
 |
 |
/|\

3 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 20 Sep 2007, 03:28 PM
Hi Brandon,

Thank you for reporting this issue. The dot syntax is used to reference sub-objects. Is that what you mean by using "Property.Property" syntax? Can you, please, give us more information about the data source, data fields and expressions you use?

 
Sincerely yours,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
maydaytx
Top achievements
Rank 1
answered on 20 Sep 2007, 03:42 PM
For example I would have Person object with a property on it of type Name.  Name is also an object that has two properties First, and Last.  So on our GridView we would have two columns, one for First name and one for Last name.  If the GridView Datasource is bound to the Person object we would display the First and Last name by binding the columns DataField to Name.First and Name.Last.  In this case, sorting does not work.

If we were to display PhoneNumber, which in this case would not be it's own object but just a text property of Person, then the GridView sorts correctly.

By the way, the GridView in Q1 2007 sorted correctly in both cases.

~DuckLeg
 |
 |
/|\

0
Dwight
Telerik team
answered on 21 Sep 2007, 01:44 PM
Hi Brandon,

We are sorry for the inconvenience, the problem is located and will soon be removed. Expect the fix in the next Service Pack.

Thank you very much for reporting this issue. Your Telerik points have been updated.

Regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
maydaytx
Top achievements
Rank 1
Answers by
Dwight
Telerik team
maydaytx
Top achievements
Rank 1
Share this question
or