Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SelectItem with optionDataSource and multiple set to true

    Hi,

    When using a select item with optionDataSource and multiple items, i get some weird behavior as items are randomly selected.

    Is this because of the note in http://smartclient.com/docs/8.3/a/b/c/go.html#attr..SelectItem.multiple ?

    Any alternative solution? I'm also using pickListFields.

    #2
    Hmm. In SmartClient 8.0 I found a bug that it appeared as if the first item was selected, while in the underlying item there actually was nothing selected. Adding this property to a SelectItem was a workaround:

    Code:
    dataArrived : function(startRow, endRow, data) {
    	if (this.pickList && this.value == null) {
    		this.pickList.deselectAllRecords();
    	}
    }
    maybe that helps?

    Comment


      #3
      Thanks for your reply but even with your code it still happens.

      I can easily reproduce it. Eg.: As soon as i try to filter something it will select the first row.

      Comment

      Working...
      X