Have to call "render" after first initialization

Have to call "render" after first initialization

ankur20usankur20us Posts: 2Questions: 0Answers: 0
edited February 2013 in General
I am working in Datatable and fund that its one of the greatest plugins I have ever seen in my life.

I am making a table in JSP as :

[code]



Name
Age
Send To




<%


for(blah blah){
%>


<%=name%><!--name is server side variable-->
<%=age%><!--age is server side variable-->
<%=urltocall%><!--urltocall is server side variable-->


<%}
%>


[/code]

I used live update plugin that pushes the data from the server peiodically:

Now I used plugin as

[code]
var table = $('#table');

table.dataTable({
"bJQueryUI" : true,
"sDom" : 'R<"H"lfr>t<"F"ip>',
"aoColumns": [
null,
null,
{ // third column (Edit link)
"sName": "SendTo",
"bSearchable": false,
"bSortable": false,
"bUseRendered" :false,
"fnRender": function (oObj){
return "Click " + oObj.aData[2] + "";
}
}
]
});

var dt = table.dataTable();
//and for adding additional field I do like this
dt.dataTable().fnAddData([
"" , //name is js variable
"",//age is js variable
i++
]);

[/code]

Now what happens fnRender calls from starting and adds the link and button simultaneously but I want that the link will be when I click on some button.
This discussion has been closed.