Aug 09, 2022, 8:26 PM
Webforms how to get the id or description of a selected row in a grid panel c# EXT.NET
I have a gridpanel and I want to bring the id of the row that the user selects so as to load another grid panel dependent on the first one, associative gridpanel. thank you
<ext:Panel
runat="server"
Width="500"
Height="300"
ReferenceHolder="true"
Layout="HBoxLayout"
AutoDataBind="true">
<Items>
<ext:GridPanel
runat="server"
ID="Clientes"
Title="CLIENTES"
BindString="{Clientes}"
Reference="clienteGrid"
Flex="1">
<Store>
<ext:Store runat="server" ID="Store1">
<Model>
<ext:Model runat="server" Name="Customer" ID="hola">
<Fields>
<ext:ModelField Name="ID" />
<ext:ModelField Name="DESCRIPCION" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel>
<Columns>
<ext:Column
runat="server"
Text="Nombre"
DataIndex="ID" />
<ext:Column
runat="server"
Text="Telefono"
DataIndex="DESCRIPCION"
Flex="1" />
</Columns>
</ColumnModel>
</ext:GridPanel>