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

Sorting and data change

9 Answers 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 26 Sep 2012, 03:47 PM
Hello,
if a have a GridView with a name column that contains: A, B and C and the grid view is sorted by this column, when I change the name of the second row to Z, the grid view displays A, Z, C.
Why the data is not moved to the last row in this case?
Patrick

9 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 27 Sep 2012, 05:32 AM
Hi,

 Can you point us on some of our demos where this can be reproduced? I've tried to reproduce such behavior on this demo however everything worked as expected. 

Greetings,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 27 Sep 2012, 06:43 AM
Hi Vlad,
on the demo:
1. Sort the grid view by Company Name.
2. Select Berglunds on the grid view.
3. On the left, add a Z in front of the company name.
4. Press Tab to change the focus and commit the change.
The name on the grid view in now ZBerglunds, but its position has not changed: the order is not correct now.
Patrick
0
Vlad
Telerik team
answered on 27 Sep 2012, 06:48 AM
Hello Patrick,

 Tab will not commit the change - Enter will. 

All the best,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 27 Sep 2012, 06:57 AM
Vlad,
if I press Enter after the change of the name, the name is not updated in the grid view.
Patrick
0
Vlad
Telerik team
answered on 27 Sep 2012, 07:18 AM
Hi,

 Please check this screencast for more info:
http://screencast.com/t/rW5ZlLqM3X

All the best,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 27 Sep 2012, 07:30 AM
Vlad,
I'm not changing the value on the grid view, but on the data displayed at the left.
Patrick
0
Vlad
Telerik team
answered on 27 Sep 2012, 07:40 AM
Hi Patrick,

 When you change your data outside of the grid the grid will reapply grouping, sorting, filtering, etc. only on CollectionChanged not on PropertyChanged.

All the best,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 27 Sep 2012, 07:50 AM
Vlad,
it's really annoying because, in my application, edition is not made at the grid view level, but the grid view remains in a tab and another tab is opened for edition.
It is not possible to edit directly in the grid view, because some data are very big (more than 100 of properties) and contains data that can't be edited in a grid view (documents, photos, ...). In addition, there can be, in some cases, more than one list of items to update.
It would be much more simpler if the grid view correctly manages the changes in the properties of a data item.
Patrick
0
Accepted
Vlad
Telerik team
answered on 27 Sep 2012, 07:54 AM
Hello,

 I believe you should check this demo to know more how to force the grid to update sorting on a property value change outside of RadGridView. 

Greetings,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
GridView
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vlad
Telerik team
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or