Nov 12, 2018, 2:24 PM
[CLOSED] DisableControl="true" on CodeBehind
Hi,
I'm trying to copy the behaviour of DisableControl in Codebehind.
for example, in my .aspx file I got this button and it works fine:
Here is the button in codebehind where I want to do it.
I'm trying to copy the behaviour of DisableControl in Codebehind.
for example, in my .aspx file I got this button and it works fine:
<ext:ImageButton
id="botonmas"
MinWidth="10"
Width="45"
Height="45"
class="tip-target"
ToggleGroup="GroupRss"
MarginSpec="0 0 0 10"
runat="server"
ImageUrl="/img/more.png"
OverImageUrl="/img/more(1).png">
<DirectEvents>
<Click DisableControl="true" OnEvent="CargarMas"></Click>
</DirectEvents>
</ext:ImageButton>
I want make the same thing in codebehing, but I dont get to know how to do it.Here is the button in codebehind where I want to do it.
Ext.Net.ImageButton btnañadir = new Ext.Net.ImageButton();
btnañadir.ID = "btnañadir" + nitem.ToString();
btnañadir.MinWidth = 10;
btnañadir.Width = 79;
btnañadir.Height = 32;
btnañadir.ImageUrl = "/img/button_anadir.png";
btnañadir.OverImageUrl = "/img/button_anadir(1).png";
panelbtnañadir.Add(btnañadir);
btnañadir.Listeners.Click.Handler = "App.direct.VistaDetallada(e.clientY,'" + item.Modelo.TrimEnd() + "','" + btnañadir.ID + "')";
thank You
Last edited by fabricio.murta; Dec 28, 2018 at 11:40 PM.
Reason: no feedback from the user in 7+ days