Page 1 of 1

Item Disabled not working

PostPosted: 07 Nov 2017 09:14
by zsleo
Most likely something I am missing but you help will be appreciated.

My dropdown has a ListDataSource but not a DataSource.

The list is populating correctly BUT after I iterate through the items setting each Item[n].Disabled := True, the items still list as Enabled.

Also, I when I set iwcgjqdrpdwn6.SelectedList.CommaText := gv_OrgProviders; the selected items do not display.

However, if I populate the list at design time and set iwcgjqdrpdwn6.SelectedList.CommaText := gv_OrgProviders; at run time the selected items do display.

Finally, I have ReadOnlyPreselected = true and I have Multiple = true.

TIA

Re: Item Disabled not working

PostPosted: 10 Nov 2017 18:10
by zsleo
Any update on this?

TIA

Re: Item Disabled not working

PostPosted: 11 Nov 2017 12:51
by Jorge Sousa
Hi

Both

Item[n].Disabled := True

and

iwcgjqdrpdwn6.SelectedList.CommaText := gv_OrgProviders

re not ajax ready

you will have to call .AjaxReRender after

Re: Item Disabled not working

PostPosted: 12 Nov 2017 20:18
by zsleo
Thanks Jorge.

I could not get this working correctly. I have redeigned my user interface from the outcome I was looking for.