Bug: bind rule function is ignored

If the documentation for template bind is correct, then a “rule” function should be called.

  1. When is this function called? Once? How do we call it every time the selected item changes in the master?

  2. It appears the rule function is never called - http://webix.com/snippet/ba939326

  3. How does this actually work? Can you please add some documentation? If I debug http://docs.webix.com/samples/15_datatable/15_api/02_link_grid.html and add a breakpoint in the rule function there, it’s called about 50 times when I change selection. That’s about the number of cells in the two grids combined. What exactly does this function do? Is it the right place to load data dynamically from the server into the slave?

A binding rule can be applied to filter the data in a slave control on the base of a selected item in the master control. It is called only when slave is based on Datastore ot Treestore.

Simply put, you can apply a binding rule to all data management components while template is not the one.

The bind rule function is called once for each data item of the slave control - it acts as filter for this control.

The documentation was updated to reflect these issues: http://docs.webix.com/desktop__binding_details.html#bindingrules