Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
Different DropDownProvider data items for each grid row?
posted

I have a WebDataGrid with 2 columns, A & B.

Column A is readonly.

Column B has a DropDownProvider to pick the value.

I want the data items in B to be dependent on the value in A. So for example:
If A = 1, then B = {red, pink, salmon}
If A = 2, then B = {blue, cyan, turquoise}
etc.

I have gotten the behavior I want using Load-on-Demand on column B, i.e: loadItems(A.value, false).
However, this forces me to Load-on-Demand each time I open the drop down which makes the UI a bit slow.

Is there a better way to do this? Maybe use Load-on-Demand, but somehow cache the results on the client side? Any ideas?