Positioning with sDom

Positioning with sDom

spideespidee Posts: 4Questions: 0Answers: 0
edited November 2009 in General
Hi there,

Firstly thank you for a great plugin. Integration with Jquery UI is brilliant too. Hope you can help me out with a problem.
I have server side pagination (using SQL_CALC_ROWS) as we can bring back thousands of rows and it takes too long to render, however I would like the filter in a very specific location but cannot seem to do it using sDOM. Is there any way I can add the search filter to my div that holds all the pagination info. Alternatively is there anyway i can add custom html to the container divs that hold the filter info?

Thanks again....
Spiro

Replies

  • izzy6150izzy6150 Posts: 49Questions: 0Answers: 0
    Hi spidee,

    Can you show us what you are doing here. It might help to shed some light on what you are trying to achieve.

    Have you tryed the following for sDom? :
    [code]
    "sDom": '<"top"ir>t<"bottom"lpf><"clear">'
    [/code]

    Regards,
    Izzy
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Just to add what Izzy has said, if you want a filter outside the scope of the DataTables sDom control, you can use any old text input element with fnFilter() called as required in it's event handler.

    Regards,
    Allan
  • spideespidee Posts: 4Questions: 0Answers: 0
    Hi there thanks for the reply.Think it will work with the fnFilter trick.

    Cheers !
This discussion has been closed.