How I search only first column?

How I search only first column?

toplisektoplisek Posts: 24Questions: 4Answers: 0
edited February 2011 in KeyTable
How I search only first column?
Is this possible to set?

Replies

  • GerardoGerardo Posts: 66Questions: 0Answers: 0
    Use bSearchable true on the first column, false in the others.

    hth,
    Gerardo
  • toplisektoplisek Posts: 24Questions: 4Answers: 0
    I have checked. I'm new to this.
    How to set line?
    I have seen "bSearchable": true,
    How to set correct coloumn?
  • 28.vivek.s28.vivek.s Posts: 69Questions: 0Answers: 0
    edited February 2011
    while configuring your table do like this....

    [code]$('#tableId').dataTable("aoColumns": [ {"bSearchable": true}, {"bSearchable": false}, {"bSearchable": false},.../*do false for other columns.*/]);[/code]

    Thanks,
    vivek
  • toplisektoplisek Posts: 24Questions: 4Answers: 0
    should I keep "bSearchable": true,

    and in which line to put:
    $('#tableId').dataTable("aoColumns": [ {"bSearchable": true}, {"bSearchable": false}, {"bSearchable": false}]);
  • 28.vivek.s28.vivek.s Posts: 69Questions: 0Answers: 0
    edited February 2011
    yes, make it true for searchable columns and false for non searchable.
    you just put this code in your js and make sure use this parameter not greater than your column no..means if you have 3 column then use this code like this..
    [code]$('#tableId').dataTable("aoColumns": [ {"bSearchable": true}, {"bSearchable": false}, {"bSearchable": false}]); [/code]
    first bSearchable": true means first column is searchable not others.

    FOR FURTHURE INFORMATION VISIT THIS PAGE... http://datatables.net/usage/server-side

    Thanks,
    Vivek
This discussion has been closed.