Datatable js is not working in asp.net master page where as it is working in without masterpage

Datatable js is not working in asp.net master page where as it is working in without masterpage

mantukarmantukar Posts: 0Questions: 0Answers: 0
edited June 2012 in DataTables 1.8
timeout = window.setTimeout(check, 0);
when i am debuging it is coming this type of error.

my code --


<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserMasterlist.aspx.cs" Inherits="ECommerceNew.UI.UserMasterlist" %>












//without passing class names.
$("#GridViewExample").GridviewFix().dataTable();
//Passing class names
//$("#GridViewExample").GridviewFix({header:"headerStyle",row:"rowStyle",footer:"footerStyle"}).dataTable();











<%-- Mandatory--%>

<%-- Mandatory--%>

<%-- optional--%>







cs---



public partial class UserMasterlist : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
clsEmp emp = new clsEmp();
GridViewExample.DataSource = emp.GetEmployeeList;
GridViewExample.DataBind();
GridViewExample.UseAccessibleHeader = true;
GridViewExample.HeaderRow.TableSection = TableRowSection.TableHeader;
}
}
}
public class clsEmp
{
public string Name { get; set; }
public string Town { get; set; }
public string Age { get; set; }
public string Id { get; set; }
public string Skills { get; set; }
public List GetEmployeeList
{
get
{
List data = new List(){
new clsEmp{ Name="Rupesh" , Age ="29" , Id="114230" , Skills="c sharp, jquery", Town="Louisville"},
new clsEmp{ Name="Dewang Mehta" , Age ="35" , Id="012530" , Skills="c sharp, project manager", Town="Louisville"},
new clsEmp{ Name="Ravindra Ravouri" , Age ="32" , Id="012230" , Skills="c sharp, dot net", Town="Amherst"},
new clsEmp{ Name="Laxmikanth Vardhanapu" , Age ="31" , Id="154587" , Skills="BA", Town="Louisville"},
new clsEmp{ Name="Rajeswar" , Age ="30" , Id="116230" , Skills="c sharp, dot net", Town="Louisville"},
new clsEmp{ Name="Monika" , Age ="10" , Id="154230" , Skills="c sharp", Town="Louisville"},
new clsEmp{ Name="Mandar" , Age ="37" , Id="234230" , Skills="Account Leader", Town="Amherst"},

new clsEmp{ Name="Harshal" , Age ="31" , Id="244587" , Skills="Project Lead, dot net", Town="Mumbai"},
new clsEmp{ Name="Lalit" , Age ="26" , Id="126230" , Skills="c sharp, dot net", Town="Ulhas nagar"},
new clsEmp{ Name="Arun" , Age ="29" , Id="125230" , Skills="c sharp", Town="Mulund"},
new clsEmp{ Name="Ankita" , Age ="12" , Id="144230" , Skills="c sharp", Town="Andheri"}
};
return data;
}
}
public List GetEmployeeByName(string name)
{
return this.GetEmployeeList.FindAll(emp => emp.Name == name);
}
}
pls help--

Replies

  • donzanuranodonzanurano Posts: 3Questions: 0Answers: 0
    use this script


    $(document).ready(function () {
    $('#GridViewExample').GridviewFix().dataTable({
    "sScrollY": 500,
    "bJQueryUI": true,
    "sPaginationType": "full_numbers"
    });
    });


    hope this help you...
    Salam...
  • donzanuranodonzanurano Posts: 3Questions: 0Answers: 0
    use this script


    $(document).ready(function () {
    $('#GridViewExample').GridviewFix().dataTable({
    "sScrollY": 200,
    "bJQueryUI": true,
    "sPaginationType": "full_numbers"
    });
    });


    hope this help you...
    Salam...
  • varaprasadreddyvaraprasadreddy Posts: 8Questions: 0Answers: 0
    Hi please look for ASP.Net GridView

    http://www.reddyinfosoft.blogspot.in/2012/12/jquery-datatable-plugin-in-aspnet-using_15.html

    and For ASP.Net Repeater

    http://www.reddyinfosoft.blogspot.in/2012/12/jquery-datatable-plugin-in-aspnet-using.html
This discussion has been closed.