在Dojo'中过滤数据;s Grid dojox.Grid.DataGrid
我试图在DojoGrid小部件中过滤数据,但是,我没有运气 下面我发布了我用来成功创建网格的javascript,但是,所有数据都显示出来了。我试过用引号括住IsBaseLevel is和false,我似乎找不到解决方法。如往常一样,任何帮助或建议都将不胜感激。如果你需要更多的信息,请告诉我 Javascript(减去从dojo.ready到a()的函数调用): JSON数据在Dojo'中过滤数据;s Grid dojox.Grid.DataGrid,dojo,dojox.grid.datagrid,Dojo,Dojox.grid.datagrid,我试图在DojoGrid小部件中过滤数据,但是,我没有运气 下面我发布了我用来成功创建网格的javascript,但是,所有数据都显示出来了。我试过用引号括住IsBaseLevel is和false,我似乎找不到解决方法。如往常一样,任何帮助或建议都将不胜感激。如果你需要更多的信息,请告诉我 Javascript(减去从dojo.ready到a()的函数调用): JSON数据 [ { "UtcCreated": "\/Date(1327877500038-0600)\/",
[
{
"UtcCreated": "\/Date(1327877500038-0600)\/",
"UtcModified": "\/Date(1327877500038-0600)\/",
"UtcDisabled": null,
"CreatedBy": null,
"ModifiedBy": null,
"DisabledBy": null,
"Id": 4,
"Name": "/Home.aspx",
"Description": "The primary user home",
"IsBaseLevel": true,
"Parent": null
},
{
"UtcCreated": "\/Date(1327877500038-0600)\/",
"UtcModified": "\/Date(1327877500038-0600)\/",
"UtcDisabled": null,
"CreatedBy": null,
"ModifiedBy": null,
"DisabledBy": null,
"Id": 5,
"Name": "Security.GetSecurityAreas",
"Description": "Provides a list of security areas",
"IsBaseLevel": true,
"Parent": null
},
{
"UtcCreated": "\/Date(1327877500038-0600)\/",
"UtcModified": "\/Date(1327877500038-0600)\/",
"UtcDisabled": null,
"CreatedBy": null,
"ModifiedBy": null,
"DisabledBy": null,
"Id": 6,
"Name": "UI.GetDomObjects",
"Description": "Gets all the DOM objects for the client",
"IsBaseLevel": true,
"Parent": null
},
{
"UtcCreated": "\/Date(1327877500038-0600)\/",
"UtcModified": "\/Date(1327877500038-0600)\/",
"UtcDisabled": null,
"CreatedBy": null,
"ModifiedBy": null,
"DisabledBy": null,
"Id": 3,
"Name": "Test Security Area",
"Description": null,
"IsBaseLevel": false,
"Parent": {
"UtcCreated": "\/Date(1327877500038-0600)\/",
"UtcModified": "\/Date(1327877500038-0600)\/",
"UtcDisabled": null,
"CreatedBy": null,
"ModifiedBy": null,
"DisabledBy": null,
"Id": 4,
"Name": "/Home.aspx",
"Description": "The primary user home",
"IsBaseLevel": true,
"Parent": null
}
}
]
我发现了我的问题。我希望在客户端(浏览器)接收到数据后,将过滤器应用于数据。然而,在检查了网络之后,我发现调用我的服务时使用了?IsBaseLevel=false querystring。因此,您的web服务将需要正确支持您将对数据应用的任何标志。当我的2天结束时,我会:x
[
{
"UtcCreated": "\/Date(1327877500038-0600)\/",
"UtcModified": "\/Date(1327877500038-0600)\/",
"UtcDisabled": null,
"CreatedBy": null,
"ModifiedBy": null,
"DisabledBy": null,
"Id": 4,
"Name": "/Home.aspx",
"Description": "The primary user home",
"IsBaseLevel": true,
"Parent": null
},
{
"UtcCreated": "\/Date(1327877500038-0600)\/",
"UtcModified": "\/Date(1327877500038-0600)\/",
"UtcDisabled": null,
"CreatedBy": null,
"ModifiedBy": null,
"DisabledBy": null,
"Id": 5,
"Name": "Security.GetSecurityAreas",
"Description": "Provides a list of security areas",
"IsBaseLevel": true,
"Parent": null
},
{
"UtcCreated": "\/Date(1327877500038-0600)\/",
"UtcModified": "\/Date(1327877500038-0600)\/",
"UtcDisabled": null,
"CreatedBy": null,
"ModifiedBy": null,
"DisabledBy": null,
"Id": 6,
"Name": "UI.GetDomObjects",
"Description": "Gets all the DOM objects for the client",
"IsBaseLevel": true,
"Parent": null
},
{
"UtcCreated": "\/Date(1327877500038-0600)\/",
"UtcModified": "\/Date(1327877500038-0600)\/",
"UtcDisabled": null,
"CreatedBy": null,
"ModifiedBy": null,
"DisabledBy": null,
"Id": 3,
"Name": "Test Security Area",
"Description": null,
"IsBaseLevel": false,
"Parent": {
"UtcCreated": "\/Date(1327877500038-0600)\/",
"UtcModified": "\/Date(1327877500038-0600)\/",
"UtcDisabled": null,
"CreatedBy": null,
"ModifiedBy": null,
"DisabledBy": null,
"Id": 4,
"Name": "/Home.aspx",
"Description": "The primary user home",
"IsBaseLevel": true,
"Parent": null
}
}
]