search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Filter in columns

Asked by Ardus
9 years ago.

How to filter on a value in column with onRowFilter?

Thnxs

Answer posted by Dan Letecky [DayPilot]
9 years ago.

Since build 8.0.1545 it's now possible to specify custom row data (tags) and use them in onRowFilter:

Specifying custom row data (tags):
dp.resources = [
   { name: "Room A", id: "A"},
   // ...
   { name: "Room J", id: "J" },
   { name: "Room K", id: "K", tags: {alwaysVisible: true} }
  ];

Using tags during filtering

dp.onRowFilter = function(args) {
  if (args.row.name.toUpperCase().indexOf(args.filter.toUpperCase()) === -1) {
    args.visible = false || (args.row.tags && args.row.tags.alwaysVisible);
  }
};

See also:
http://doc.daypilot.org/scheduler/row-filtering/
Comment posted by Ardus
9 years ago.

I am using the javascript trial version. Where can I download build 8.0.1545?

Comment posted by Dan Letecky [DayPilot]
9 years ago.

You can download it in the sandbox:

http://javascript.daypilot.org/sandbox/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.