PDA

View Full Version : Buttons-IE 11



Prybe
Jun 05, 2015, 4:11 PM
Hello

I have some buttons and I want to show or hide them when I click on the elements of the panel. This works on Chrome and Firefox but IE does not work, the buttons disappear when I click on any of the elements.


<ext:Panel ID="panelPrincipal" runat="server"
Height="600"
Width="1200"
Layout="ColumnLayout">
<Items>
<ext:TreePanel ID="TreePanel1" runat="server"
ClientIDMode="Static"
Icon="BookOpen"
Title="Glosario y preguntas frecuentes"
ColumnWidth="0.3"
Height="600"
AutoScroll="true"
UseArrows="true">
<TopBar>
<ext:Toolbar runat="server">
<Items>
<ext:ToolbarTextItem ID="toolbarBuscar" runat="server" Text="Buscar:" />
<ext:ToolbarSpacer />
<ext:TriggerField
ID="disparadorBusqueda"
runat="server"
EnableKeyEvents="true"
ClientIDMode="Static">
<Triggers>
<ext:FieldTrigger Icon="Clear"/>
</Triggers>
<Listeners>
<KeyUp Fn="filterTree" Buffer="250" />
<TriggerClick Handler="clearFilter();" />
</Listeners>
</ext:TriggerField>
</Items>
</ext:Toolbar>
</TopBar>
<Store>
<ext:TreeStore runat="server" ID="storeTree" OnReadData="NodeLoad">
<Proxy>
<ext:PageProxy />
</Proxy>
</ext:TreeStore>

</Store>
<Root>
<ext:Node NodeID="0" Text="Portales PRYBE" Icon="Sitemap" />
</Root>
<DirectEvents>
<ItemClick OnEvent="ClickNode">
<ExtraParams>
<ext:Parameter Name="treenode" Value="node.id" Mode="Raw" />
</ExtraParams>
</ItemClick>
</DirectEvents>
</ext:TreePanel>

<ext:Panel ID="panelInf" runat="server"
StyleSpec="background-color:rgb(194, 194, 194); text-align:justify;"
Layout="ColumnLayout"
ColumnWidth="0.7"
Height="600"
AutoScroll="true">
<Items>
<ext:TextField ID="txtfieldNombreTermino" runat="server"
ColumnWidth="0.6"
PaddingSpec="10 0 0 40"
LabelAlign="Top" FieldLabel="Nombre del termino"
Hidden="true"/>
<ext:ComboBox ID="cmbPortales" runat="server"
ColumnWidth="0.4"
PaddingSpec="10 20 0 20"
LabelAlign="Top" FieldLabel="Portal del termino"
EmptyText="Seleccione Sistema..."
ForceSelection="true" QueryMode="Local" TypeAhead="true"
StoreID="storePortal" DisplayField="NombreSistema" ValueField="Id"
Hidden="true"/>

<ext:Label ID="lblNombreTermino" runat="server"
StyleSpec="font-size:22px;"
PaddingSpec="10 20 30 40"
ColumnWidth="1" />

<ext:TextArea ID="txtAreaDefinicion" runat="server"
FieldStyle="font-size:20px;"
PaddingSpec="10 20 30 40"
ColumnWidth="1"
ReadOnly="true"/>

<ext:HtmlEditor ID="HtmlEditor" runat="server"
FieldStyle="font-size:20px;"
Height="470"
PaddingSpec="10 20 30 40"
ColumnWidth="1"
Hidden="true"/>
</Items>
<Buttons>
<ext:Button ID="btnNuevoTermino" runat="server"
Icon="New"
Text="Agregar termino"
OnDirectClick="btnNuevoTermino_Click"
Hidden="true"/>
<ext:Button ID="btnEditarTermino" runat="server"
Icon="ApplicationEdit"
Text="Editar termino"
OnDirectClick="btnEditarTermino_Click"
Hidden="true"/>
<ext:Button ID="btnEliminarTermino" runat="server"
Icon="Delete"
Text="Borrar termino"
OnDirectClick="btnEliminarTermino_DirectClick"
Hidden="true"/>

<ext:Button ID="btnGuardar" runat="server"
Icon="DiskBlack"
Text="Guardar"
Hidden="true"
OnDirectClick="btnGuardar_Click" />
<ext:Button ID="btnCancelar" runat="server"
Icon="Cancel"
Text="Cancelar"
Hidden="true"
OnDirectClick="btnCancelar_Click"/>
</Buttons>
</ext:Panel>
</Items>
</ext:Panel>




public void ClickNode(object sender, DirectEventArgs e)
{
string idNode = e.ExtraParams["treenode"] ?? "";
string texto = e.ExtraParams["treenode"] ?? "";


idNode = idNode.Substring(idNode.LastIndexOf("-") + 1);
if (idNode.Contains("portal") || idNode=="0")
{
Session["Termino"] = null;
Session["Id_Termino"] = -1;
btnEditarTermino.Hide();
btnEliminarTermino.Hide();
return;
}
else
{
btnEditarTermino.Hidden=false;
btnEliminarTermino.Hidden=false;
}


}