Asp.net Gridvew与Jquery Datatables集成 [英] Asp.net Gridvew integration with Jquery Datatables
问题描述
Hello Code Project伙伴们,
我正在敲打我的头,将这个jquery数据表集成到我的asp.net gridview中。它看起来不可能。但在投降之前我只想问问这里的人是否有可能。
链接Jquery数据表
http://www.datatables.net/usage/ [ ^ ]
我最大的障碍是这个
Hello Code Project guys,
I am banging my head integrating this jquery datatables to my asp.net gridview. it looks like it is not possible. But before i surrender i just want to ask people here if this stuff is possible.
Link for Jquery Datatables
http://www.datatables.net/usage/[^]
My greatest roadblock is this
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('.myclass').dataTable(); --> i have tried the id of the gridview and also tried the client id $('#<%= GridView2.ClientID %>').dataTable(); but that doesn't solve the issue.
});
</script>
我已经尝试过在html表上工作但在asp.net控件上没有。它适用于asp.net转发器,因为存在html表。但不是网格视图。
任何想法的人?
谢谢
I have tried it work on html tables but not on asp.net controls. it works in asp.net repeater because html table is present. but not with the gridview.
any thoughts guys?
Thanks
推荐答案
( document )。ready( function (){
(document).ready(function() {
(' .myclass')。dataTable(); - >我已经尝试了gridview的id并尝试了客户端ID
('.myclass').dataTable(); --> i have tried the id of the gridview and also tried the client id
(' #<%= GridView2.ClientID%>')。dataTable();但是没有' 解决问题。
});
< / script>
('#<%= GridView2.ClientID %>').dataTable(); but that doesn't solve the issue. }); </script>
我已经尝试过在html表上工作但在asp.net控件上没有。它适用于asp.net转发器,因为存在html表。但不是网格视图。
任何想法的家伙?
谢谢
I have tried it work on html tables but not on asp.net controls. it works in asp.net repeater because html table is present. but not with the gridview.
any thoughts guys?
Thanks
>
这篇关于Asp.net Gridvew与Jquery Datatables集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!