[CLOSED] SelectItem not working for MultiCombo

  1. #1

    [CLOSED] SelectItem not working for MultiCombo

    I can not set an item of a MultiCombo in codebehind with SelectItem.
    This is my code:
    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="uc_event._Default" %>
    <%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="rsm01" runat="server" ScriptMode="Debug" />
         <ext:Panel ID="def_pnlwuc01" runat="server" Layout="Absolute" Title="Test" Icon="ApplicationViewDetail" Height="200">
            <Items>
                <ext:Button ID="Button1" runat="server" Text="SelectItem" X="10" Y="20">
                    <DirectEvents>
                        <Click OnEvent="Button1_Click">
                            <EventMask ShowMask="true" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
     
                <ext:MultiCombo ID="ucde01_Mcb" runat="server" X="100" Y="20" Width="240">
                    <Items>
                        <ext:ListItem Text="unknown" Value="101" />
                        <ext:ListItem Text="Metall" Value="102" />
                        <ext:ListItem Text="Trade" Value="103" />
                    </Items>
                </ext:MultiCombo>
            </Items>
         </ext:Panel>
        
        </form>
    </body>
    </html>
    Partial Public Class _Default
        Inherits System.Web.UI.Page
    
        Public Sub Button1_Click(ByVal sender As Object, ByVal e As Ext.Net.DirectEventArgs)
            ucde01_Mcb.SelectItem("102")
        End Sub
    End Class
    Regards,
    Klaus
    Last edited by Daniil; Aug 12, 2010 at 10:34 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Fixed. Please update from SVN

Similar Threads

  1. SelectListItem of MultiCombo not working
    By Rupesh in forum 1.x Help
    Replies: 0
    Last Post: May 24, 2012, 10:08 AM
  2. Replies: 3
    Last Post: Feb 21, 2012, 7:46 AM
  3. [CLOSED] ListView SelectItem in Code
    By wisdomchuck in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 01, 2011, 5:12 AM
  4. Combobox still collapse after SelectItem
    By zizoovic in forum 1.x Help
    Replies: 0
    Last Post: Jan 18, 2011, 2:26 PM
  5. [CLOSED] [1.0] MultiCombo Change listener not working as expected
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Aug 20, 2010, 3:06 PM

Posting Permissions