PDA

View Full Version : [FIXED] [V0.8.0] MultiSelect and setValueByIndex



tdracz
Jan 30, 2009, 4:23 AM
Hi,

Is setValueByIndex() method supported? When I use it (and SubmitText is true), in an Ajax call on the server side the Value property of selected items contains the text value and the Text property is empty. You can observe this in the example below when you click the 'Submit With setValueByIndex' button. This is a modified part of your 'Examples/Form/MultiSelect/Overview/Default.aspx' example.


<ext:Cell>
<ext:Panel runat="server" Border="false" BodyStyle="height: 280px;">
<Body>
<ext:MultiSelect ID="MultiSelect4" runat="server" Width="300" Height="250" SubmitText="true" >
<Items>
<ext:ListItem Text="Item 6" Value="6" />
<ext:ListItem Text="Item 7" Value="7" />
<ext:ListItem Text="Item 8" Value="8" />
<ext:ListItem Text="Item 9" Value="9" />
<ext:ListItem Text="Item 10" Value="10" />
</Items>
<BottomBar>
<ext:Toolbar runat="server">
<Items>
<ext:ToolbarFill />
<ext:ToolbarButton runat="server" Text="Submit With setValueByIndex">
<AjaxEvents>
<Click OnEvent="SubmitSelection2"></Click>
</AjaxEvents>
<Listeners>
<Click Handler="#{MultiSelect4}.setValueByIndex([0,1,2,3,4],false,false)" />
</Listeners>
</ext:ToolbarButton>
</Items>
</ext:Toolbar>
</BottomBar>
</ext:MultiSelect>
</Body>
</ext:Panel>

Thanks,
Tadeusz

Vladimir
Jan 30, 2009, 7:31 AM
Hi Tadeusz,

Fixed. Please update