Single editor instance for multiple datatables
Single editor instance for multiple datatables
Hello,
I am using jquery ui tabs in my project. There are multiple number of tabs and on click of each tab generates a datatable. Each datatable has same structure but the data differs based on the tab id. I want to add, edit and delete rows on each table. I have created an editor instance and i want to use the same editor to edit multiple datatables. Is that possible to do? Can some one help me how to use the same editor for editing different datatables that gets generated on click of a tab.
Answers
Adding to the above question. Each datatable under each tab has a different id and that id must be passed to editor so the editor works for that particular table instance. For example, If i have tabs A & B. On click of tab A, datatable with id="tableA" gets generated. Now, i need to pass this table id= "tableA" to my editor so that it works on the table with id="tableA" and it should repeat for each tab click.