Common utility method for creating a datatable
Common utility method for creating a datatable
sudheer6291
Posts: 5Questions: 1Answers: 0
Hi Allan,
We have nearly 30 datatables in our application.We need to write the the datatable code snippet every where so we thought of writing a common function which will help every time when calling the datatable. I want unable to loop inside aoColumns to set the column related values i am able to set all other parameters.Can you please help me out allan regarding this issue.
Hoping a quick response.
Thanks in Advance
This discussion has been closed.
Replies
Please post your code and a link to a test case. Also, I'm delighted to help write code if you require, with the DataTables support options.
Allan
This is the function what i'm trying to write for creating the datatables. by calling this method. By specifying all the parameters required in the method call.
Please help me out whether my approach is fine.
Will I be able to perform operations on datatables created of this sort.
Thanks in advance
Looks okay to me. Personally I'd pass in an object as it is far more extensible (in the same way that DataTables uses an object, rather than 100+ parameters).
Allan
yeah that's a great idea i would do that TQ.
But can we perform operations on datatables created in this way?
Row selection with out using table tools etc...
Thanks for the Reply
Sudheer
I don't see why you wouldn't be able to.
Allan