[SOLVED] aoSearchCols and bRegex parameter

[SOLVED] aoSearchCols and bRegex parameter

djpabledjpable Posts: 7Questions: 0Answers: 0
edited December 2010 in General
I'm using search inputs in every column and i'd like to set the bRegex client-server parameter of every column.

I succesful set it when i press a key and call fnFilter() with bRegex parameter true.

But, when i want a datatable to be initialized already filtered, i can't set bRegex parameters of single columns.

For example i want for the first column to "submit" bRegex_0 = true and for the second bRegex_1 = false.

Initializing the object aoSearchCols is not possible :-(

Please help me

Replies

  • djpabledjpable Posts: 7Questions: 0Answers: 0
    edited January 2011
    SOLVED

    After some hacking i did:

    [code]
    ...
    $(...searchInputs...).each(function(i) {
    datatable.fnSettings().aoPreSearchCols[i].sSearch = '';
    this.reset();
    });
    datatable.fnDraw();
    ...
    [/code]

    I cycled all inputs clearing aoPreSearchCols[i].sSearch value in DataTables settings.

    If it helps you, contact me and write me something.
    I'm happy to help...

    CU
This discussion has been closed.