[CLOSED] MultiSelect list box ReadOnly property not working

  1. #1

    [CLOSED] MultiSelect list box ReadOnly property not working

    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
  2. #2
    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>
  3. #3
    Thanks Vladimir, it is working...
  4. #4
    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.
    Click image for larger version. 

Name:	Untitled.png 
Views:	17 
Size:	6.6 KB 
ID:	13951

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

    Thanks
  5. #5
    Try to return false from BeforeContainerClick handler
  6. #6
    Thanks Vladimir, now it is working perfectly..!!

Similar Threads

  1. [CLOSED] Add items to a MultiSelect list in a AjaxEvent?
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 30, 2009, 7:24 AM
  2. [CLOSED] MultiSelect readonly still editable
    By methode in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 20, 2009, 2:37 PM
  3. Replies: 2
    Last Post: Jun 17, 2009, 12:48 PM
  4. [CLOSED] ReadOnly property in HtmlEditor
    By methode in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Apr 01, 2009, 8:29 AM
  5. [CLOSED] Textfield Readonly Property
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 24, 2009, 11:52 AM

Posting Permissions