I have a radgrid with some textboxes and a button in an edit template like this:
OpenDeposit() opens a RadWindow which allows them find and select an item. The RadWindow returns a pair of parameters. This all works great. So now I would like to take those parameters and update the lblDepositID and lblDepositNum fields in the RadGrid for the row that is being edited.
I can find the Grid in the client side API. I can get access to all of the rows or the "selected" rows. But I can't figure out how to find the row that is in edit or insert mode, which is the only one I care about.
So somehow in the client side javascript either I need to be able to store the row being edited when they go into edit mode so I can reference it later or find it after the window returns.
Any way of doing this?
<telerik:GridTemplateColumn DataField="DepositID" HeaderText="Related Deposit #" |
SortExpression="DepositID" UniqueName="DepositID"> |
<EditItemTemplate> |
<asp:Label ID="lblDepositID" runat="server" Text='<%# Bind("DepositID") %>' Visible="false"></asp:Label> |
<asp:Label ID="lblDepositNum" runat="server" Text='<%# Bind("DepositNum")%>' Width="120px" ToolTip="Click [...] to assign a deposit"></asp:Label> |
<button style="width:22px; height:22px;" onclick="return OpenDeposit()">...</button> |
</EditItemTemplate> |
<ItemTemplate> |
<asp:Label ID="lblDepositID" runat="server" Text='<%# Bind("DepositID") %>' Visible="false"></asp:Label> |
<asp:Label ID="lblDepositNum" runat="server" Text='<%# Bind("DepositNum")%>'></asp:Label> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
OpenDeposit() opens a RadWindow which allows them find and select an item. The RadWindow returns a pair of parameters. This all works great. So now I would like to take those parameters and update the lblDepositID and lblDepositNum fields in the RadGrid for the row that is being edited.
I can find the Grid in the client side API. I can get access to all of the rows or the "selected" rows. But I can't figure out how to find the row that is in edit or insert mode, which is the only one I care about.
So somehow in the client side javascript either I need to be able to store the row being edited when they go into edit mode so I can reference it later or find it after the window returns.
Any way of doing this?