Open cell in edit mode using arrow key with save and rebind the grid including busy indicator.

2 posts, 0 answers
  1. Pushpendra
    Pushpendra avatar
    32 posts
    Member since:
    Nov 2012

    Posted 20 Nov 2013 Link to this post

    Hi, 

    In RadGridView I have some editable GridViewMaskedTextBoxColumn. Currently on mouse click these text boxes open in edit mode, and in CellEditEnded event I am updating the value in database, getting the list again and bind it with RadGridView. While updating and getting the list from database I am keeping the RadBusyIndicator in Busy mode.

    Now as per new requirement I have to use arrow keys to do the same task in following way:
    After editing the cell if user presses up-down arrow keys, the next-previous record should select and same cell should open in edit mode. In between moving to next-previous records the database method should also call to update the record and rebind the RadGridView data source including busy indicator functionality. 

    Here I am facing following issues:

    1. After updating when I select the next row from arrow key, the next row cell open in edit mode, but when the RadGridView data source is rebind it again calls the CellEditEnded event, and that again update the next row and cell lost its edit mode.  
    2. Not able to set the focus again to RadGridView when using the busy indicator, due to this up-down keys are not selecting the next-previous records. 

    Please let me know how to achieve this functionality. 

    Thanks,
    Pushpendra

  2. Pushpendra
    Pushpendra avatar
    32 posts
    Member since:
    Nov 2012

    Posted 21 Nov 2013 Link to this post

    Hi,

    I am able to set the focus to RadGridView once the RadBusyIndicator stops showing by follwoing this link .  After that I am using following code to open the cell in edit mode. This code works fine without RadBusyIndicator, but once I start showing RadBusyIndicator the cell is not coming in edit mode.
    gridView.CurrentCellInfo = new GridViewCellInfo(gridView.SelectedItem, gridView.Columns[editColumnName]);
    gridView.Focus();
    gridView.BeginEdit();

     
    Please suggest how I can achieve the following functionalities:

    1. How can I open the cell in edit mode of the selected row once the RadBusyIndicator stops showing.
    2. How can I identify that cell is updated using Mouse Click or using Up-Down arrow keys? Since in case of mouse click the cell should not be open in edit mode. 


    Thanks,

    Pushpendra
  3. DevCraft banner
Back to Top