Dec 10, 2014, 5:53 AM
[CLOSED] Get row id in component column with a grid
Hi all,
I have a grid (call it a "parent grid") with a component column:
Is there any way to get it?
Thank you.
I have a grid (call it a "parent grid") with a component column:
<ext:ComponentColumn
runat="server"
Width="120">
<Component>
<ext:DropDownField
runat="server"
Editable="false"
Width="300"
EmptyText="Select me"
TriggerIcon="SimpleArrowDown">
<Listeners>
<Expand Handler="selectedSropDown=this; this.picker.setWidth(1200);" />
</Listeners>
<Component>
<ext:GridPanel
runat="server"
Height="350"
Title="My test"
Frame="true"
>
<Store>
<ext:Store runat="server">
<Proxy>
<ext:AjaxProxy Url="../Services/MyService.asmx/Matches">
<ActionMethods Read="POST" />
<Reader>
<ext:XmlReader Record="Matches" />
</Reader>
</ext:AjaxProxy>
</Proxy>
<Parameters>
<ext:StoreParameter Name="rId" Value="??record.id??" Mode="Raw"/>
</Parameters>
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="id"/>
<ext:ModelField Name="value"/>
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel runat="server">
<Columns>
<ext:Column runat="server" DataIndex="id" Text="Unique id" Width="90"/>
<ext:Column runat="server" DataIndex="value" Text="value" Width="120"/>
</Columns>
</ColumnModel>
<View>
<ext:GridView runat="server" LoadMask="true" />
</View>
<SelectionModel>
<ext:RowSelectionModel runat="server" Mode="Single" />
</SelectionModel>
<Plugins>
<ext:FilterHeader runat="server"/>
</Plugins>
</ext:GridPanel>
</Component>
</ext:DropDownField>
</Component>
</ext:ComponentColumn>
I would like to send to a web service a "parent grid" record id as a parameter (??record.id??) and the component grid will have its data based on sent id.Is there any way to get it?
Thank you.
Last edited by Daniil; Dec 11, 2014 at 7:08 AM.
Reason: [CLOSED]