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

[Solved] Grid not respecting URL hash when server binding

1 Answer 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matt Hidinger
Top achievements
Rank 1
Matt Hidinger asked on 23 Mar 2010, 04:44 PM
Hi,

I am using multiple Telerik Grids on a page with jQuery UI Tabs. Each Tab on the page has its own Telerik Grid control.
The tabs are configured to update the URL Location Hash with the currently selected tab, so that when I reload the page (or a user wants to bookmark it) it will load the page with the requested tab selected.

The problem occurs when I perform an action on the grid, like sorting, page, etc. It reloads the page, but discards the URL hash that was in there.

For example, the URL before taking a grid action was:

http://localhost:1381/referrals#company-Wide

And after clicking a Sort header :
http://localhost:1381/referrals?Referrals_CompanyWide-orderBy=ReferralTypeName-asc

So when the page re-loads, the user is on the first tab on the page -- not the grid they were on before sorting.


It would work perfectly if the sort URL were including the hash, but currently it is not:
http://localhost:1381/referrals#company-Wide?Referrals_CompanyWide-orderBy=ReferralTypeName-asc



Are there any known workarounds to this problem? I tried using the Telerik TabStrip control as well and it didn't seem to help either.

Thanks,
-Matt

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 24 Mar 2010, 11:15 AM
Hello Matt Hidinger,

Since the hash is not submitted to the server as part of the URL we cannot add it when generating grid urls. You can check this stackoverflow post for additional info. As a workaround you can use grid ajax binding.

Regards,
Atanas Korchev
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
Matt Hidinger
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or