过滤中继器数据 [英] Filter Repeater data

查看:100
本文介绍了过滤中继器数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在进行库存项目,因为我有一个中继器来显示库存项目,并且上面有库存项目组的复选框.

每个库存项目都有一个组.

我想根据客户端上复选框的选择过滤转发器数据(库存项目)(使用javascript)

如何在javascript中绑定转发器?

谢谢.

Hi all,

I am working on inventory project in that i have one repeater which shows stock items and above that there are check boxes of stock items group.

Each Stock items has group.

I want to filter the repeater data (Stock items) depending upon selection of check box on client side(using javascript)

how to bind repeater in javascript?

Thanks.

推荐答案

如何在javascript中绑定转发器?
您有两种选择:
1.根据JavaScript中的过滤器隐藏行或
2.与服务器对话并为中继器取回新的数据源

对于1,您需要访问中继器,然后遍历选项以查看是否必须删除任何内容.
对于2,您将需要使用AJAX或Callback类功能从Javascript代码与服务器对话.与服务器对话并获取过滤后的数据以在转发器中显示.

立即尝试并发布面临的特定问题.
how to bind repeater in javascript?
You have two options:
1. Hide the rows based on the filter in Javascript OR
2. Talk to server and get back the new datasource for your repeater

For 1, you would need to access your repeater and then loop through the options to see if anything has to be removed.
For 2, you would need to use AJAX or Callback kind of feature to talk to server from Javascript code. Talk to server and get back the filtered data to show in repeater.

Try now and post specific issue faced.


这篇关于过滤中继器数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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