Select which data will enter the table?

Select which data will enter the table?

ZaguriZaguri Posts: 2Questions: 1Answers: 0

Hi, how can i select which data will insert to table.

for example i have a defualt in my table
! [] (https://datatables.net/forums/uploads/editor/jb/74h6puzo6zk9.png "")
but i am want just them are start in "c" like the second row. insert to table.

it's posiable?

thank to the helpers.

Answers

  • ZaguriZaguri Posts: 2Questions: 1Answers: 0

    Hi,

    Data table takes a row from my API, I do not want this row.

    Is there a way around it?

    Example

    I do not want the first row in the table only those that start with the letter "c"

    ![](! [] (https://datatables.net/forums/uploads/editor/jb/74h6puzo6zk9.png "") "")

    thank to the helpers.

  • kthorngrenkthorngren Posts: 20,425Questions: 26Answers: 4,794

    Data table takes a row from my API, I do not want this row.

    Here are some options:

    1. Have the API return only the rows you want. Might not be possible if you don't have control over the API.
    2. If you are using ajax you can use ajax.dataSrc as a function to remove the rows you don't want.

    If you still need help then please provide us with more information about your environment. Maybe a link to your. page or a test case replicating the issue so we can get a better understanding of what you have.

    Kevin

Sign In or Register to comment.