如何懒惰加载嵌套中继器 [英] How to Lazy Load Nested Repeater

查看:111
本文介绍了如何懒惰加载嵌套中继器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个嵌套的转发器,(类似于facebook的帖子和评论)我通过代码隐藏加载父转发器的前10行及其子转发器。然后使用Jquery appent方法加载父转发器的其余行,并向下滚动web方法。我的问题是如何使用jquery加载父转发器及其子转发器?

是否有任何关于延迟加载的教程等使用嵌套转发器?

这就是我的意思一直在使用..

点击这里 [ ^ ]

I have a nested repeater, ( something similar to facebook posts and comments) I am loading first 10 rows of the parent repeater along with its childrepeaters through codebehind. And then loading rest of the rows of the parent repeater using Jquery appent method, and a web method on scroll down. My question is how can i load parent repeater along with its child repeaters using jquery?
Is there any tutorial etc on lazy loading which uses nested repeater?
this is what i have been using ..
CLICK HERE[^]

推荐答案

你可以试试数据表:只是google它,也许你需要添加一些事件来按需提供的细胞

http://datatables.net/release-datatables/examples/advanced_init/dom_multiple_elements.html





http://datatables.net/examples/
you can try datatable: just google it ,maybe you need add some events to cells on demand
http://datatables.net/release-datatables/examples/advanced_init/dom_multiple_elements.html


http://datatables.net/examples/


在您的方案中,从UI角度来看,这是一个链接到父表每行的子表。

如果你想使用ajax将数据提取到front-en然后渲染,我建议你用另一个UI控件替换中继器,然后你将熟悉结构,并将相应的事件添加到tds ot trs。

ps:数据应该是Json格式: {父信息{儿童信息}}。然后用js渲染。
In your scenario, from UI perspective, this is a child table linked to each row of parent table.
If you wanna use ajax to pull data to front-end then render, i suggest you replace repeater with another UI control, then you will be familar with the structure,and add corresponding event to tds ot trs.
ps: the data should be in Json format:{ parent information {child information}}. then use js to render.


这篇关于如何懒惰加载嵌套中继器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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