PDA

View Full Version : [CLOSED] MultiSelect list box ReadOnly property not working



PriceRightHTML5team
Aug 04, 2014, 9:45 AM
Hi,

I have a simple MultiSelect list box which is used to display country list, for some scenario's i want to make it read only so that user cannot select and deselect the countries, but should be able to scroll and check the countries.

I have tried by setting ReadOnly property to true but not working.

Can you please provide the solution for it?


Thanks

Vladimir
Aug 04, 2014, 9:58 AM
Hi

MultiSelect doesn't support ReadOnly functionality, only Disabled property is supported
You can try to add the following code to MultiSelect


<ListConfig>
<Listeners>
<BeforeItemClick Handler="return false;" />
<BeforeItemMouseEnter Handler="return false;" />
</Listeners>
</ListConfig>

PriceRightHTML5team
Aug 04, 2014, 10:34 AM
Thanks Vladimir, it is working...

PriceRightHTML5team
Aug 04, 2014, 11:47 AM
Hi,

There is one more scenario, if read only Multiselect list box contains only 2-3 selected items and user clicks on blank area of Muliselect box, the selected items get deselected.

Below snapshot will give you better idea.
13951

Can you please provide the events to handle the above scenario?

Thanks

Vladimir
Aug 04, 2014, 11:50 AM
Try to return false from BeforeContainerClick handler

PriceRightHTML5team
Aug 04, 2014, 12:28 PM
Thanks Vladimir, now it is working perfectly..!!