Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
860
AddNewRow Problem
posted

It appears that if you are editing a new row  then click on another row in the grid.  The new grid does not attempt to add row.  It seems that you must tab to the end of the row to get it to update.  Is there a way to override this behavior.

Parents
No Data
Reply
  • 12679
    Suggested Answer
    posted

    Hello,

    Please refer this link : http://forums.infragistics.com/forums/p/34719/196424.aspx#196424

    <Behaviors>
         <ig:CellEditing>
           <CellEditingClientEvents 
           ExitedEditMode="ExitedEditModeHandler"/>
          </ig:CellEditing>
     </Behaviors>

    The javascript needed to commit the changes is like this:

    <script type="text/javascript">
        function ExitedEditModeHandler(sender, args) {
            $find('<%=WebDataGrid1.ClientID %>')
         
           .get_behaviors().get_editingCore().commit(); 
        } </script>

    In order this code to work you will need to handle RowUpdated server-side event.

    Hope this helps

Children
No Data