Aug 12, 2010, 9:20 AM
[CLOSED] SelectItem not working for MultiCombo
I can not set an item of a MultiCombo in codebehind with SelectItem.
This is my code:
Klaus
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]