Jul 11, 2013, 11:56 AM
[CLOSED] Window with details not updated
Hi again, I'm trying to develop a web site in asp.net and I have a page with a GridPanel inside. Every row has a command column which has to open a ext.net.window with the details of the row selected:
The scenario is like this: https://examples2.ext.net/default.as...Window_Remote/
but using asp.net controls inside the window.
Thank you in advance and sorry for my poor english.
<%@ Register src="~/ControlesSecundarios/FormularioCliente.ascx" tagname="FormularioCliente" tagprefix="uc1" %>
<uc1:FormularioCliente ID="UcFormularioCliente" runat="server" />
<ext:CommandColumn ID="CommandColumn1" runat="server">
<Commands>
<ext:GridCommand Icon="UserEdit" CommandName="ModificarCliente">
<ToolTip Text="Modificar Cliente" />
</ext:GridCommand>
</Commands>
<DirectEvents>
<Command OnEvent="rptClientesCommand">
<ExtraParams>
<ext:Parameter Name="idCliente" Value="record.data.ID_CLIENTE" Mode="Raw" />
<ext:Parameter Name="accion" Value="command" Mode="Raw" />
</ExtraParams>
</Command>
</DirectEvents>
</ext:CommandColumn>
Public Sub rptClientesCommand(ByVal sender As Object, ByVal e As Ext.Net.DirectEventArgs)
Dim accion As String = e.ExtraParams.Item("accion")
Dim strPathAndQuery As String = "GestionClientes.aspx"
Dim strUrl As String = HttpContext.Current.Request.Url.AbsoluteUri.Replace(strPathAndQuery, "")
Select Case accion
Case "ModificarCliente"
idCliente = Integer.Parse(e.ExtraParams.Item("idCliente"))
UcFormularioCliente.CargarDatos() ' Loads the data in the controls: txtNombre,...
UcFormularioCliente.Show() ' Shows the window
End Select
End Sub
UcFormularioCliente is a ascx control which contains a ext.net.window:<ext:Window
ID="wdwClientes"
runat="server"
Icon="Group"
Title="Cliente"
Width="1000"
Height="600"
Collapsible="true"
Maximizable="true"
AutoShow="false"
Modal="false"
Hidden="true"
Layout="Fit"
Frame="true" >
<content>
<ext:Panel ID="Panel1" runat="server" Title="Datos de cliente">
<Content>
<input id="txtNombre" runat="server" type="text" class="input-medium" placeholder="Nombre de cliente..." maxlength="300"/>
...and much more controls...
</Content>
</ext:Panel>
</content>
</ext:Window>
The problem is that the textboxes are empty when the window is loaded. The scenario is like this: https://examples2.ext.net/default.as...Window_Remote/
but using asp.net controls inside the window.
Thank you in advance and sorry for my poor english.
Last edited by Daniil; Jul 16, 2013 at 4:29 AM.
Reason: [CLOSED]