Skip to content

Validation between elements of BusinessBindingListBase #1829

Discussion options

You must be logged in to vote

There are two scenarios:

  1. You have a BusinessBase parent for the list
  2. The list is the root of the graph

For option 1 the easiest thing is to implement a rule that checks the list for conflicts, then trigger that rule in the BusinessBase parent by handling the OnChildChanged or ChildChanged event.

For option 2 there's no rules engine in list objects, but you can handle the OnChildChanged/ChildChanged event and implement logic to check the list for conflicts. The trick here, is that only the child objects can have any visual aspect (the list itself isn't "visible" via data bnding). So the logic in your list class will need to call something in one or more child objects so those child objec…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pszittyay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants