在javascript中限制Gridview类别中的项目 [英] Limiting items in Gridview categories in javascript

查看:52
本文介绍了在javascript中限制Gridview类别中的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过其他一些帖子,但我正在努力学习java脚本并实施此功能


在根网格视图页面上,我想限制每个项目下的项目数量;类别 到4,


根据我的理解,使用java脚本执行此操作的唯一方法是创建  a 单独的数据数组


将我的  gridview指向单独且有限的数据数组(每个类别下只有4个项目


比我的按钮链接回到我的原始数据数组200加商品




如果有人可以使用此类代码上传该示例的版本并且能够向我解释它是如何工作的,将是一个真正的救星,任何评论/帮助都非常值得赞赏。{我已经想出如何使用c#限制组
详细信息页面中的数字但是我通过尝试为团体实施此操作而疲惫不堪}

决方案
我可以将凸块:) 

I have seen some other threads but am struggling with java script and implementing this feature

On the root gridview page I want to limit the number of items under each category to 4,

From my understanding the only way to do this with the java script is to create a separate data array

Pointing my gridview to the separate and limited data array (which would only have 4 items under each catagory

Than having my button link back to my original data array with the 200 plus items

If someone could upload a version of the example with such code and be able to explain to me how it works, would be a true lifesaver, Any comments/help is greatly appreciated. {I have figured out how to limit the number in the group details page with c# but I am worn down by trying to implement this for groups}

解决方案

Am I allowed to bump :) 


这篇关于在javascript中限制Gridview类别中的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆