Bash
JQuery Grid Template Demo</title>
</script>
</script>
#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 <script> and append result to table
$("#employeeTemplate").tmpl(data).appendTo("#tblEmployee");
}
${Name}
${Designation}
{{if Age>30}}
Middle-aged
{{else}}
Still young
{{/if}}
${Department}
${DataSource}
Name
Designation
Age
Department
Data Source
Data Source
Select
View Report
Submiti want to put a link button at the last colm each row. please tell me how to do it.
Thanks in advance

Iftikar HussainRank #423 · 5.9K reputationPosted Aug 15, 2013, 8:53 PM EDT
Try like this
Regards,
Iftikar