Jan 18, 2010, 7:37 PM
How to retrieve data from Grid
Hi,
I have the following code to retrieve the data from a Form taking the grid panel selected row id.
The datasource is an object datasource.
The data is not retrived after I use the databind method. Could you please tell me what I am doing wrong?
protected void RowSelect(object sender, AjaxEventArgs e)
{
string groupID = e.ExtraParams["ID"];
OjbectDataSourceFormViewFetchGROUPTYPE1.SelectPara meters["ID"].DefaultValue = groupID;
this.StoreFormViewGroupDetail.DataBind();
}
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server">
<AjaxEvents>
<RowSelect OnEvent="RowSelect" Buffer="250">
<EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{Details}" />
<ExtraParams>
<ext:Parameter Name="ID" Value="this.getSelected().id" Mode="Raw" />
</ExtraParams>
</RowSelect>
</AjaxEvents>
</ext:RowSelectionModel>
</SelectionModel>
I have the following code to retrieve the data from a Form taking the grid panel selected row id.
The datasource is an object datasource.
The data is not retrived after I use the databind method. Could you please tell me what I am doing wrong?
protected void RowSelect(object sender, AjaxEventArgs e)
{
string groupID = e.ExtraParams["ID"];
OjbectDataSourceFormViewFetchGROUPTYPE1.SelectPara meters["ID"].DefaultValue = groupID;
this.StoreFormViewGroupDetail.DataBind();
}
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server">
<AjaxEvents>
<RowSelect OnEvent="RowSelect" Buffer="250">
<EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{Details}" />
<ExtraParams>
<ext:Parameter Name="ID" Value="this.getSelected().id" Mode="Raw" />
</ExtraParams>
</RowSelect>
</AjaxEvents>
</ext:RowSelectionModel>
</SelectionModel>