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

Sorting in telerik grid navigates to diffrent to different page of the grid

3 Answers 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sudhanshu
Top achievements
Rank 1
Sudhanshu asked on 10 Aug 2010, 04:27 AM
Steps:

I have a Rad grid with paging enabled( Say ihave grid with 4pages into it)
Now I select first row in the page 1 then click the sortable coulmn;the grid automatically navigates to page x with the sameselected value.Say it redirects me to page 2 with the same selected row.I dont want the grid to work like this in the above scenario.

My desired output should be something like:
If I select a first row and then click sortable column,the grid should not navigate to different page,rather it should remain on the same page.
Say If I selected row is on page 2 of grid and i click the sortable coulmn.I should be on the page 2 itself and 1st row should remian as selected (may be with different value of sorting is applied).

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 11 Aug 2010, 12:51 PM
Hello Sudhanshu,

We tested the case, but we could not replicate the described issue locally. Here is the online demo we used for our tests:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectrowwithcheckbox/defaultcs.aspx

Please, give it a try and let us know what is the difference  in your scenario.

Kind regards,
Pavlina
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
0
Sudhanshu
Top achievements
Rank 1
answered on 12 Aug 2010, 10:38 AM
Thanks for replying!

However,I have different scenario.But I will try to explain my scenario through your solution.
As per the snapshot attached :
The selected row is "AROUT".Now if you try to sort it, the current page selected i.e page 1 wont be any more the current page it can navigate to page 4,5, or whatever no depending on the sorted value.

Note: I dont have select or deselect button to select the row.If I click on row that is selected in my case.

Please let me know if you need any further information on it.
0
Pavlina
Telerik team
answered on 12 Aug 2010, 04:51 PM
Hello Sudhanshu,

I followed your scenario in order to replicate the issue you are facing, but to no avail. However, attached to this message is a simple test project that is working as expected. Also, please have in mind that RadGrid loses its current selection when the data is sorted, a new group or filter is added, or when the current page changes. If you want the client-side selection to persist across these events, refer to this help article:
http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html

Greetings,
Pavlina
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
Grid
Asked by
Sudhanshu
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Sudhanshu
Top achievements
Rank 1
Share this question
or