如果我的应用程序在组中有一个组,我该怎么办?

编程入门 行业动态 更新时间:2024-10-27 20:30:59
本文介绍了如果我的应用程序在组中有一个组,我该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

例如:网格应用程序。他们有 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

更多推荐

如果我的应用程序在组中有一个组,我该怎么办?

本文发布于:2023-11-06 09:36:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1563328.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:我该   应用程序   有一个   组中

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!