Hello,
I have a RadGrid, with
When a row pass in edit mode for "update" all works fine. Click on update fires "oGrid_UpdateCommand", click on cancel fires"oGrid_CancelCommand".
When I use "add a new user", a new row appears, but no more insertCommand and CancelCommand fire ? (the postback is perfomed, I stop in Page_load function but the "ogrid_InsertCommand" is not called.
The trys I have made :
- comment ajax, the same problem occurs
- try to set AllowAutomaticDeletes/Inserts/Updates to false : the problem still persists.
- try to trace Params["__eventargstarget"], it is empty when insert is fired.
An idea ?
Thanks
Aurore
I have a RadGrid, with
| <tlk:RadGrid ID="oGrid" runat="server" AutoGenerateColumns="False" Height="470px" |
| AllowPaging="True" PageSize="100" |
| OnNeedDataSource="oGrid_NeedDataSource" AllowSorting="True" |
| OnInsertCommand="oGrid_InsertCommand" OnUpdateCommand="oGrid_UpdateCommand" OnDeleteCommand="oGrid_DeleteCommand" |
| OnItemDataBound="oGrid_ItemDataBound" OnCancelCommand="oGrid_CancelCommand" |
| GridLines="None" EnableViewState="false"> <MasterTableView CommandItemDisplay="Top" EditMode="InPlace" DataKeyNames="IDUser" InsertItemPageIndexAction="ShowItemOnCurrentPage" EnableNoRecordsTemplate="true"> <CommandItemSettings AddNewRecordImageUrl="~/Images/add.png" RefreshImageUrl="~/Images/blank.gif" RefreshText="" /> <NoRecordsTemplate> <div> </div> </NoRecordsTemplate> <Columns> <tlk:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" CancelImageUrl="~/Images/failed.png" InsertImageUrl="~/Images/ok.png" UpdateImageUrl="~/Images/ok.png" Resizable="false"> <ItemStyle HorizontalAlign="Center" CssClass="CursorHand" /> </tlk:GridEditCommandColumn> |
When a row pass in edit mode for "update" all works fine. Click on update fires "oGrid_UpdateCommand", click on cancel fires"oGrid_CancelCommand".
When I use "add a new user", a new row appears, but no more insertCommand and CancelCommand fire ? (the postback is perfomed, I stop in Page_load function but the "ogrid_InsertCommand" is not called.
The trys I have made :
- comment ajax, the same problem occurs
- try to set AllowAutomaticDeletes/Inserts/Updates to false : the problem still persists.
- try to trace Params["__eventargstarget"], it is empty when insert is fired.
An idea ?
Thanks
Aurore