例如:网格应用程序。他们有 SampleGroup = [{key:..}];然后 ItemGroup = [ SampleGroup [0] ,分组:...];
For ex : grid application . They have SampleGroup = [ { key: .. } ]; and then ItemGroup = [ SampleGroup[0], group:... ];
如果我希望ItemGroup成为一个组,并创建另一个Array来推送其中的项目。对于Ex:NewGroup = [ ItemGroup [0] ,...]; $ 我知道我们指定按键和组密钥在每个组中的数据。那我该怎么办? item.group1.group.key? 更多carify:SampleGroup(group)> ItemGroup(group)> NewGroup(Item)。
If I want ItemGroup to be a group and create another Array to push item in it. For Ex: NewGroup = [ ItemGroup[0],...]; I knew that we specify data in each group by Key and Groupkey. Then what should I do ? item.group1.group.key ? more carify : SampleGroup(group) > ItemGroup(group) > NewGroup(Item) .
对不起我的英文,希望你明白我想解释的内容。谢谢。
Sorry for my english , hope you understand what I'm trying to explain . Thanks.
推荐答案
你好F,
gridview不支持嵌套组。您将必须设计自己的接口来处理以这种方式排列的数据。
The gridview does not support nested groups. You will have to design your own interface to handle data arranged this way.
如果您只是拥有一个具有顶级组名称的数据源然后嵌套组是数据&NBSP?;然后,当您在子组中并且有人单击子组名称时,您可以转到另一个页面以在最后一个gridview中显示组项。
What if you simply have a data source that has the names of the top level groups and then the nested groups is the data? Then when you are in the sub group and someone clicks on the sub group name you can go to another page to display the group items in the last gridview.
-Jeff
更多推荐
如果我的应用程序在组中有一个组,我该怎么办?
发布评论