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
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?
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.