different white-space behavior
different white-space behavior
robertbrower
Posts: 158Questions: 1Answers: 0
I have page with 2 data tables. One gets it's data from a web service via server side paging query. The query returns some column data that contains trailing white spaces. This is good, because I need them. The datatable shows the trailing whitespace.
The other datatable is populated when the page loads in my asp.net aspx file. It's white space gets trimmed, I presume when the datatable gets created. How can I prevent this? I need those trailing white spaces as these values are used as filters in my query.
Having to convert spaces to and from is a real pain.
Thanks.
Robert
The other datatable is populated when the page loads in my asp.net aspx file. It's white space gets trimmed, I presume when the datatable gets created. How can I prevent this? I need those trailing white spaces as these values are used as filters in my query.
Having to convert spaces to and from is a real pain.
Thanks.
Robert
This discussion has been closed.
Replies
I think I'd need to see a test case to be able to say much more than that.
Allan
Understood. How can I prevent the trimming of data that the datatable plugin does when it reads from the HTML?
Thanks.
Robert
Its a hardcoded operation - you'd need to modify DataTables I'm afraid. Search for `$.trim` - its the only thing the trim is used for I think.
Interesting - I think this is the first time I've been asked how to turn that off! I put it in in the first place to try and make filtering simpler...
Good to hear you have a workaround though.
Allan