[CLOSED] Checkbox is not getting clear after de-selecting

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Checkbox is not getting clear after de-selecting

    Hello,

    I am using MultiCombo box in my code and when we de-select any of item it is not clearing the checkbox selection. In the older version it was working fine, but in new version of ext.net controls it is not working. I am attaching the sample code and screen shot for the same. Could you please look into this.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Combo.aspx.cs" Inherits="Ext.NetSamples.Combo" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html>
    
    <html>
    <head id="Head1" runat="server">
        <title>MultiCombo - Ext.NET Examples</title>
        <link href="/resources/css/examples.css" rel="stylesheet" />
        
        <script>
            var updateButtonText = function (item, checked) {
                var text = [];
    
                item.parentMenu.items.each(function (item) {
                    if (item.checked) {
                        text.push(item.text);
                    }
                });
    
                if (text.length == 0) {
                    App.Button1.setText("[Select Colors]");
                } else {
                    App.Button1.setText("[" + text.join(",") + "]");
                }
            };
        </script>
    </head>
    <body>
        <form id="Form1" runat="server">
            <ext:ResourceManager runat="server" />
            
            <h2>Simple MultiCombo</h2>
            
            <ext:MultiCombo runat="server" Width="260">
                <Items>
                    <ext:ListItem Text="Item 1" Value="1" />
                    <ext:ListItem Text="Item 2" Value="2" />
                    <ext:ListItem Text="Item 3" Value="3" />
                    <ext:ListItem Text="Item 4" Value="4" />
                    <ext:ListItem Text="Item 5" Value="5" />
                </Items>
                
                <SelectedItems>
                    <ext:ListItem Value="2" />
                    <ext:ListItem Index="4" />
                </SelectedItems>
            </ext:MultiCombo>
            <br />
            
            
        </form>
    </body>
    </html>
    Attached Thumbnails Click image for larger version. 

Name:	Combo.png 
Views:	8 
Size:	4.4 KB 
ID:	6568  
    Last edited by Daniil; Jul 17, 2013 at 5:11 PM. Reason: Please use [CODE] tags, [CLOSED]

Similar Threads

  1. Replies: 0
    Last Post: Jun 01, 2013, 10:41 AM
  2. [CLOSED] Pre-Selecting gridpanel checkbox nodes..
    By PhilG in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 12, 2012, 8:29 AM
  3. Clear selections in checkbox selection model
    By Birgit in forum 2.x Help
    Replies: 0
    Last Post: May 29, 2012, 12:28 PM
  4. Replies: 4
    Last Post: Oct 06, 2010, 9:08 AM
  5. Replies: 0
    Last Post: Sep 01, 2010, 8:39 PM

Posting Permissions