how to get the real data from the datasource?
how to get the real data from the datasource?
dj_sumaoy14
Posts: 9Questions: 0Answers: 0
i use fnRender in one column of my grid
ex. i convert one data to a checkbox and setting the data as the value of checkbox
so when i use fnGetData(tr)
the return object or data was the checkbox and not the real data
any workaround?
ex. i convert one data to a checkbox and setting the data as the value of checkbox
so when i use fnGetData(tr)
the return object or data was the checkbox and not the real data
any workaround?
This discussion has been closed.
Replies
Allan
i tried to use mDataProp and it work's fine but another problem is when i try to sort the column it results to an error because the param mDataProp_0 pass the word "function"
this is the code in my config for one of the columns
mDataProp: function(s, t, v) {
return t === "display" ? (s.status === "A" ? "Active" : "Ceased") : s.status;
},
any workaround?
> mDataProp_0
I'm going to presume that you are using server-side processing. Is that correct?
If so, then bUseRendered has no effect since filtering and sorting are done on the server... mDataProp_{i} is given as 'function' if you have it as a function in server-side processing since the Javascript function is fairly useless at the server.
Allan
I want to display a marked up value in the table (just adding a link to another page). But I also need to send the "main" field name for that column in mDataProp_0 so I can sort properly.
Is there a workaround for this?