开发者

Obout Grid Style and Javascript not loading

i set up my obout grid with styles and scripts and everything worked fine.

now i wanted to put the grid into a seperate aspx file (including scripts, datasources, etc) and load the grid page into the default page with jQuerys load method.

        $(document).ready(function () {
            $('#divGrid').load("Grid.aspx #result", function () {
                $('#loader').hide('slow');
            });
        });

the script tag is included in the result div.

the grid page itself works, but the loaded grid in the default page is not loaded correctly. the scripts and styles are missing.

i tried to set up the folderstyle to "~/styles/bl开发者_StackOverflow社区ack_glass" but that doesn't work too.

any idea how to solve this problem?


ok now i see what the problem is.

that gridview generated some WebResource.axd and ScriptResource.axd includes for the resources in the grid page, which were not loaded via the jquery load call. if i remove the element selector in the load method, it works. this is not nice in this case, but thats a different thing to deal with.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜