This is a migrated thread and some comments may be shown as answers.

Force an update command

1 Answer 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Elliott
Top achievements
Rank 2
Elliott asked on 22 Aug 2011, 02:41 PM
I wrote a page to replace an existing application using another product, so I was constrained in trying to replicate existing functionality.  To whit:  there are 2 updatable columns on a grid: a date and a quantity.  Both update without confirmation on the event triggered when either of them is changed.  Only problem is, I don't know how or where to give the update command so the edit mode closes after an update.

I am executing javascript on both so I could
     $find("<%= RadGrid1.ClientID %>").get_masterTableView().updateItem(editedRow);

where editedRow is set on the edit command but where do I put the command?

1 Answer, 1 is accepted

Sort by
0
Elliott
Top achievements
Rank 2
answered on 24 Aug 2011, 09:50 PM
figured it out
put kode like this after a successful update:

geItem.Edit = false;
rgEditOrder.MasterTableView.Rebind();
where geItem is the GridEditedItem (cast from the NamingContainer from the sender)
and rgEditOrder is the grid

the sender is the control in the EditItemTemplate and the event handled is the control value changing
Tags
Grid
Asked by
Elliott
Top achievements
Rank 2
Answers by
Elliott
Top achievements
Rank 2
Share this question
or