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

[Solved] Partial View and Paging issue

1 Answer 37 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.
Kris
Top achievements
Rank 1
Kris asked on 17 Oct 2011, 08:20 PM
When displaying gird in a partial view (loaded using jQuery) the paging does not work.  I’ve tried the suggested article:
http://www.telerik.com/help/aspnet-mvc/using-with-partial-views-loaded-via-ajax.html

but when I try to include the scripts in the partial view using:
@Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.DefaultPath("~/Scripts/TelerikScripts")).jQuery(false)

I get “Specified file does not exist: “~/Scripts/jquery-1.5.1.js”.  I’m using jquery-1.6.3.

The only way around it is to pre-load all grids with no data, and then reload as needed, but I have about 20 grids in my app so it is not a practical solution, they need to be loaded on demand.

Are there any workable solutions for this issue?

Thanks,

1 Answer, 1 is accepted

Sort by
0
Kris
Top achievements
Rank 1
answered on 19 Oct 2011, 12:41 PM
I’ve re-read the article linked above and it says that manual JavaScript registration is no longer required for versions after Q2 2011 which is the version I am using.  It lead me to play with the grid some more and I finally got it to an almost workable state where only the very first paging request does not work but the subsequent ones do.

Did anyone run into a similar issue?

Thanks,
Tags
Grid
Asked by
Kris
Top achievements
Rank 1
Answers by
Kris
Top achievements
Rank 1
Share this question
or