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

  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]
  2. #2
    It is already fixed in SVN, please update from SVN (http://svn.ext.net/premium/trunk) and retest
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Hello Vladimir ,

    Thank you for your quick reply.

    I have checkout the source code from the SVN path and I tried to use that in my application and it resolves the checkbox issue but it is disturbing all other controls css (we have done lot of custom css to ext.net controls). We have used the version from ext.net website and UI was working fine only this combo issue. When we compare the both ext.net dlls there is difference in the version i.e. SVN version is 2.2.0.35005 and latest download from ext.net website is 2.2.0.40838.

    Could you please confirm which is the latest version.
  4. #4
    Quote Originally Posted by WHISHWORKS View Post
    Could you please confirm which is the latest version.
    The latest one is the one that you got from SVN trunk.

    The last numbers (minor version of dll) depends on time of the build. Here is an explanation.
    Version numbers in a compiled assembly

    If the newest Ext.NET sources breaks your custom CSS, it probably means that you will need to rework the CSS part a bit to get it working again.

    I can understand that it can be not an option at the moment. So, you can apply this fix without updating to the trunk.
    http://forums.ext.net/showthread.php?24881#post110736
  5. #5
    it works fine... thank you Daniil for you help.



    Quote Originally Posted by Daniil View Post
    The latest one is the one that you got from SVN trunk.

    The last numbers (minor version of dll) depends on time of the build. Here is an explanation.
    Version numbers in a compiled assembly

    If the newest Ext.NET sources breaks your custom CSS, it probably means that you will need to rework the CSS part a bit to get it working again.

    I can understand that it can be not an option at the moment. So, you can apply this fix without updating to the trunk.
    http://forums.ext.net/showthread.php?24881#post110736

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