Badge Plugin Problem - badge not moving nor hidding/showing with its container

  1. #1

    Badge Plugin Problem - badge not moving nor hidding/showing with its container

    Hi everyone,

    I have noticed some strange behavior when creating badge plugins dinamically.

    I have created some panels in codebehind, with a button inside.
    This button has a badge plugin with some text on it.

    When I scroll the panel, or collapse it, badge number remain visible and preserve its original position. It doesn't move with panel.

    Here is my original code (for button creation inside the panel)

    private Ext.Net.Button CrearBoton(
                 string id, string texto, object icon, bool habilitado, 
                 bool standout, string comando, string idsender,
                 int badge=0, string idGrupoParent = "")
            {
                Ext.Net.Button boton = new Ext.Net.Button(texto)
                    {
                        ID = id,
                        Disabled = !habilitado,
                        StandOut = standout
                    };
    
                if (badge > 0)
                    boton.Plugins.Add(new Badge() { Text = badge.ToString() });
    
                if (icon != null)
                    if (icon is Ext.Net.Icon)
                        boton.Icon = (Ext.Net.Icon)icon;
    
                // Agregar el evento de comando
                if (comando != "")
                    boton.Listeners.Click.Handler = "App.direct.Comando('" + comando + "', '" + idsender + "', '" + id + "', '" + idGrupoParent + "');";
    
                return boton;
           }
    Screen before collapsing the panel


    After panel colapse:


    What I'm doing wrong?

    Best Regards,
    Claudio Gonz?lez A.
    Chile.
    Attached Thumbnails Click image for larger version. 

Name:	BadgeBeforeColapse.png 
Views:	28 
Size:	46.5 KB 
ID:	12531   Click image for larger version. 

Name:	BadgeAfterColapse.png 
Views:	27 
Size:	43.7 KB 
ID:	12541  
    Last edited by Daniil; Jun 11, 2014 at 5:07 AM. Reason: Please use [CODE] tags
  2. #2
    Hi @claudioalfonso,

    Thank you for the report.

    Please provide a full test case.
  3. #3
    Hi Daniil, I don't get what you mean. this is mi first post so I may not know well how it works. do you need me to upload my entire solution for you to reproduce the problem?
  4. #4
    Usually an entire solution or project is not required. Sometimes we may request that, but it is a really rare case.

    A standalone .aspx would be good enough. Here you can find an example, see Example (Very Helpful):
    Forum Guidelines For Posting New Topics
  5. #5
    I think you need to look at this example.
    https://examples2.ext.net/#/MessageB...den_Container/

Similar Threads

  1. Badge and UI
    By claudioalfonso in forum 2.x Help
    Replies: 5
    Last Post: Jun 12, 2014, 5:05 AM
  2. [CLOSED] Badge Issue on Tab
    By CanopiusApplications in forum 2.x Legacy Premium Help
    Replies: 14
    Last Post: May 22, 2014, 4:30 AM
  3. Badge on DataView Items
    By inteligencija in forum 2.x Help
    Replies: 0
    Last Post: May 12, 2014, 7:16 AM
  4. TabPanel : Badge and UI
    By brunweb in forum 2.x Help
    Replies: 2
    Last Post: Mar 14, 2014, 11:07 AM
  5. [CLOSED] Setting Badge from server
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 23, 2014, 2:52 AM

Tags for this Thread

Posting Permissions