开发者

ExtJS View loading

开发者 https://www.devze.com 2023-02-27 08:22 出处:网络
I am using this for load views in ExtJs window: autoLoad: { url: \'@Url.Content(\"~/Admin/AddEditAssetTypes/\")\',

I am using this for load views in ExtJs window:

autoLoad: { url: '@Url.Content("~/Admin/AddEditAssetTypes/")', 
    scripts: true, 
开发者_JS百科    nocache: true }

But it is not loading views.


You're trying to load data using a path and not a url.

A url is a web address (can be relative) where as a path is a physical file path on the server.

Your code snippet should be something like

autoLoad: { 
    url: '/Admin/AddEditAssetTypes/filename.html', 
    scripts: true, 
    nocache: true
}

Basically, you should be able to navigate to the url config option in your browser. If you can't view it then Ext isn't going to be able to display it in a Panel.

0

精彩评论

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