change row backgroundcolor and search box

change row backgroundcolor and search box

ktumucinktumucin Posts: 4Questions: 0Answers: 0
edited July 2013 in General
Hi, I have started to use jquery datatable nearly for 2 days. I have some questions. please help.
1) How can I change row background color of my datatable. for example, first row is gray, second row is white, third one is gray, fourth one is white, etc.
2) I want to use search box. after seeing search result on datatable, ı want to use those search results. How can I retrieve these data(search results.).
thanks in advance

Replies

  • ktumucinktumucin Posts: 4Questions: 0Answers: 0
    I solved row background color of my datatable, but I could not solve another problem. What I want is that:
    a lot of records(people records) are shown in the datatable. After searching by using search box, I want to take the values of the remaining rows. and so I can send an email to those people who are now shown on datatable. I need the first column of the remaining rows.
    Please help,
    Thanks in advance
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    > I need the first column of the remaining rows.

    You could possibly use something like http://datatables.net/plug-ins/api#fnGetColumnData to get the data. You might need to modify it so it doesn't give you the data on the current page.

    Allan
This discussion has been closed.