3
Answers

How To Use JQuery DataTables inside a Content Page using C#

Jes Sie

Jes Sie

3y
476
1

hello everyone, I am trying to implement a JQuery DataTables to my grid view inside a content page. Unfortunately, this is what I get

It treats the radio button as the target table

Below is my script

$(document).ready(function () {
            $("#ContentPlaceHolder1_gvList").prepend($("").append($(this).find("tr:first"))).DataTable();
        });

I tried to use below script but nothing happens:

$(document).ready(function () {
            $('#<%=gvList.ClientID%>').DataTable();

 

Hope someone can help me.

Answers (3)