Searchbuilder adds spaces to column data

Searchbuilder adds spaces to column data

kwapsterkwapster Posts: 6Questions: 4Answers: 0

I'm using searchbuilder on a table and it seems to do something strange with** column A**

I am not able to change how column A is formatted unfortunately. That would be the easy solution.

It adds a bunch of spaces to the data, because of this i cannot use it in predefined.

You may find a test case here http://live.datatables.net/tiyomeda/1/edit

To replicate the behaviour you may do a search for "Column A equals abc "

then call getDetails() on the table. You will notice a lot of spaces get added to the value

Answers

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin

    It is because of the whitespace in your HTML:

                            <td class=" text-left">
                                <label title="abc">
    
                                    <button class="btn btn-link best-order-btn" data-symbolcode="abc" data-market="4">abc</button>
    
                                </label>
                            </td>
    

    If you change it to be:

    <td class=" text-left"><label title="abc"><button class="btn btn-link best-order-btn" data-symbolcode="abc" data-market="4">abc</button></label></td>
    

    Then it will operate as you are looking for: http://live.datatables.net/tiyomeda/2/edit .

    Allan

Sign In or Register to comment.