#tblEmployee td { padding: 2px; background: #e8edff; border-top: 1px solid #fff; ...", "image": "https://www.c-sharpcorner.comUploadFile/MinorCatImages/043855AM.png", "author": { "@type": "Person", "name": "saifullah khan" }, "publisher": { "@type": "Organization", "name": "C# Corner", "logo": { "@type": "ImageObject", "url": "https://www.c-sharpcorner.com/App_Themes/CSharp/Images/SiteLogoNew.png" } }, "datePublished": "2013-08-16", "dateModified": "2013-08-16"} #tblEmployee td { padding: 2px; background: #e8edff; border-top: 1px solid #fff; color: #669; } #tblEmployee th { padding: 2px; color: #039; background: #b9c9fe; } function BindClientSideData() { //JSON data format var emps = [ { Name: 'John', Designation: 'Analyst', Age: 25, Department: 'IT', DataSource: 'Client' }, { Name: 'Matthew', Designation: 'Manager', Age: 38, Department: 'Accounts', DataSource: 'Client' }, { Name: 'Emma', Designation: 'Senior Manager', Age: 40, Department: 'HR', DataSource: 'Client' }, { Name: 'Sid', Designation: 'Analyst', Age: 27, Department: 'HR', DataSource: 'Client' }, { Name: 'Tom', Designation: 'Senior Analyst', Age: 35, Department: 'IT', DataSource: 'Client' } ]; BindTable(emps); } function BindServerSideData() { $.ajax({ type: 'POST', url: 'JQueryGridTemplate.aspx/GetEmployees', //pagename.aspx/WebMethodname data: '{}',// Blank data contentType: 'application/json; charset=utf-8', dataType: 'json', success: function(msg, status, metaData) { if (msg.d && msg.d.length > 0) { BindTable(msg.d); } }, error: function(ex, status) { //alert(ex.responseText); alert('error'); }, complete: function(eret, tytyt) { //alert('complete'); } }); return false; } function BindTable(data) { // removes existing rows from table except header row $('#tblEmployee tr:gt(0)').remove(); //apply tmpl plugin to