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?

Parents
No Data
Reply
  • 3115
    Offline posted

    Hi ssd,

    If I understand you right, you have readonly column A and Column B, which is dependable on the column A value. So once the data is loaded in the Grid, no matter what I choose from the drop down, the values in the drop down won't be changed? then why you will load them on every selection changesd of the drop down??

    Maybe I don't understand you right, but can you send us a sample, with code to acquire better vision of your problem

    Thanks,

     

Children