Custom values feed and server-side data post-process
Custom values feed and server-side data post-process
Hello
Thank you again for you great work!
This time I'm trying to rearrange my scripts so table data is processed server-side, it is growing hard and client processing becomes slow
Now I'm stuck with the following:
http://oi68.tinypic.com/28sbfvk.jpg
This is how my table looked. It's been generated on the server, got styles classes, ids and other attributes there. On the other hand some of the data shown is not the same as it is stored in the database. it's converted, calculated (several database table's fields are added together), replaced with fa icons etc.
http://oi64.tinypic.com/2a5i3w5.jpg
This is how the table looks after I used your server-side solution. You see it has no colors, no icons, no attributes I need. I can't get summary of several database fields.
So the question is simple - how can I get custom calculated data out of multiple database fields on server-side and how do i post-process rows and cells depending on received data.
Hope my English is understandable:)
Thanks in advance
Replies
I suspect you need to use
createdRow
to add suitable classes to the rows based on the data in the row.Allan
Thanks a lot Allan!
But is there any way I can calculate custom values server-side and pass them into table instead of passing database field directly?
Yes, use
DT_RowClass
. See the documentation here.Allan
Thank you for your time! I guess I know now "how to":)