Ticket #507 (closed defect: fixed)

Opened 23 months ago

Last modified 20 months ago

TActiveListBox SelectionMode="Multiple" and Enabled="false"

Reported by: tanhs Owned by: wei
Priority: immediate Milestone: 3.1 Beta
Component: Prado Framework v3 Version: 3.1
Severity: minor Keywords:
Cc:

Description

SelectionMode?="Multiple" and Enabled="false" in TContent doesn't work either in static or dynamic in coding. Test example as follows.

<com:TContent ID="Main">

<com:TActiveListBox ID="list1" OnCallback?="list1_callback"

SelectionMode?="Multiple" --> this doesn't work Enabled="false" --> enable selection in code but

--> getSelectedValues returns Null --> enabled and disbaled dynamically doesn't solved the --> problem either.

<com:TListItem Value="value 1" Text="item 1" /> <com:TListItem Value="value 2" Text="item 2" /> <com:TListItem Value="value 3" Text="item 3" /> <com:TListItem Value="value 4" Text="item 4" /> <com:TListItem Value="value 5" Text="item 5" />

</com:TActiveListBox> <com:TActiveLabel ID="label1" Text="Label 1" />

</com:TContent>

class ActiveListBoxTest? extends XTPage {

public function onLoad($s){

--the following fixed the static declaration on the above $this->list1->SelectionMode?="Multiple";

} function list1_callback($sender, $param) {

$values = $sender->getSelectedValues(); $this->label1->setText("Selection: ".implode(', ', $values));

}

}

Change History

Changed 23 months ago by xue

  • version changed from 3.0 to 3.1
  • milestone set to 3.1 Beta

Changed 21 months ago by xue

  • owner changed from xue to wei

Changed 20 months ago by wei

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.