• Resolved morts81

    (@morts81)


    I know the DataTables ColumnFilterWidgets allows the user to add pull down menu filters to refine the contents of a table. For example, the table shown below would show on the page then it could be further refined by the Person column by selecting the number/s of the Person required.

    Person Name Age
    1 Dan 20
    2 Mark 19
    3 Jeff 46
    4 Paul 86

    However is it possible to have the table only show on page load the first line, ie Person 1, Name Dan and Age 20. But give a pull down menu to be able to change the selection to 2, 3 or 4. The table should only ever show one selection though and not be possible to select more than 1 Person?

    In my mind, this is something more like a dynamic Row Filtering?

    Cheers

    Morts81

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    If I understand correctly, all that should be necessary is to set the number of rows in the pagination (in the corresponding input field on the table’s “Edit” screen) to 1.
    Can you please try that?

    Regards,
    Tobias

    Thread Starter morts81

    (@morts81)

    Hi

    The example table above is very basic. In actual fact I would likely have a table of maybe 1000 rows, and when a selection is made, there could be anywhere from 1 to 17 rows matching that criteria.

    I was hoping to be able to limit selections to 1 and not allow anymore selections. And have only 1 selection load on page load. I guess more for aesthetics than anything.

    Cheers
    Morts81

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, thanks for the explanation. Unfortunately, I can’t think of an easy or existing solution for that, sorry ??

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Table with Selector’ is closed to new replies.