Constraining the display size of a cell
-
This is not a bug, but a problem.
We have a database where the description column can vary in size from empty to over 10,000 characters long. We want to make this available for column search/filter but then displaying these VERY long fields is a problem.We are using server side processing
We currently overcome the display problem by displaying with a VIRTUAL field as follows
short_description varchar(255) GENERATED ALWAYS AS ( ( case when isnull(description) then 'N/A' when (char_length(TRIM(description)) = 0) then 'N/A' when (char_length(description) < 255) then description else concat(substr(description, 1, 238), '...See details') end ) ) VIRTUAL,
But this doesn’t solve the search/filter problem as search of full text at column is not possible.
I searched datatables forums but could find a solution. What I think is needed is a browser level solution, either css to limit display size of JS code the do similar to the MySQL code.
Any suggestions.
Thanks in advance
The page I need help with: [log in to see the link]
- The topic ‘Constraining the display size of a cell’ is closed to new replies.