Adding new rows after selected row
Adding new rows after selected row
Hello,
I wanted to know how do I go about adding rows after a particular row in my datatable.
I can pass the row Index. that I need to insert the row to my javascript function, as follows:
function addNewContact(rCount){
iTable.fnAddData([
'',
'',
..
]);
}
And my HTML code is:
Also, to the newly added rows, I wanted the first 3 columns to not contain anything...How would I include this in the fnAddData() part ?
Thanks,
Pritish.
I wanted to know how do I go about adding rows after a particular row in my datatable.
I can pass the row Index. that I need to insert the row to my javascript function, as follows:
function addNewContact(rCount){
iTable.fnAddData([
'',
'',
..
]);
}
And my HTML code is:
Also, to the newly added rows, I wanted the first 3 columns to not contain anything...How would I include this in the fnAddData() part ?
Thanks,
Pritish.
This discussion has been closed.
Replies
> I wanted the first 3 columns to not contain anything...How would I include this in the fnAddData() part ?
Just give the fnAddData array three empty strings for the first 3 columns.
Allan