Jun 10, 2014, 9:02 PM
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)
After panel colapse:
What I'm doing wrong?
Best Regards,
Claudio Gonz?lez A.
Chile.
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 panelAfter panel colapse:
What I'm doing wrong?
Best Regards,
Claudio Gonz?lez A.
Chile.
Last edited by Daniil; Jun 11, 2014 at 5:07 AM.
Reason: Please use [CODE] tags