in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Always editable grid

Last post 7/8/2008 2:42 AM by Mehul Harry (Developer Express). 8 replies.
Page 1 of 1 (9 items)
Sort Posts:
Previous Next
  • 10/2/2007 3:16 AM

    Always editable grid

    Is there any way to make ASPxGridView always editable (when all rows are "in edit mode")?

  • 10/2/2007 5:28 AM In reply to

    Re: Always editable grid

    Hi Alex,

    Consider instead a grid that goes into edit mode as soon as the row is clicked. In the example below, it takes a double-click but can easily be adapted to RowClick client side event:

    Switch to the edit mode by clicking a status bar button or by double-clicking a row 

    Btw, I believe it's possible to create an always editable grid or at least the appearance. You'll need to use the DataItemTemplates and also set the EditMode to Inline.

    Thanks. 

    Filed under:
  • 10/2/2007 9:15 AM In reply to

    Re: Always editable grid

    It is not good replacement, becase user should click Save to save data any time after editing.

    In any case your example has a big problem - the grid is "all selected" after double click on the cell.

  • 10/2/2007 9:39 AM In reply to

    Re: Always editable grid

    Hello Pavel,

    Yes the user will have to click Save. You might want to explore binding the save call to another event besides the link button.

    You don't need to use the Double-click method, you can use the single-click as well. Also, there is a client side function you can use to clear the selection:

    function OnRowClick(e) {
        //Clear the text selection
        _aspxClearSelection();
    }

    Thanks. 

    Filed under:
  • 10/4/2007 12:33 AM In reply to

    Re: Always editable grid

    Thanks a lot! Clear selection works fine!

    Btw - is it possible to save data in row when user click on another row (as in Excel)?

     Thanks again for your help!

  • 10/4/2007 6:39 PM In reply to

    Re: Always editable grid

    Hi Pavel,

    Please try the following method. Make sure the column index number is some editable column in your grid. The GetEditor will see if that column is in editmode, but it also works for the row, meaning if column 2 is in editmode than the whole row is in editmode:

        var gEditor = grid.GetEditor(grid.GetColumn(2));
        if(gEditor != null) {
            //alert('editing..');
            grid.UpdateEdit();
        }

    Thanks. 

    Filed under:
  • 4/9/2008 3:44 PM In reply to

    Re: Always editable grid

    Hi Pavel,

     Can you tell me please for your method provided in Always editable grid, on what event should I place this code to have the save/update occur automatically?

  • 7/7/2008 11:53 PM In reply to

    Re: Always editable grid AKA BulkEdit mode

    This is a nice implementation I found on the web, for a BulkEditGridView control that inherits from MS GridView.

    I was trying to adapt it for ASPxGridView, but there is no equivalent CreateRow method to override. As I just started with the ASPxGridView it will take a bit to learn the inside rendering methods.

    Anything that would speed up my learning curve is appreciated.

    Regards,

    Chris

     

  • 7/8/2008 2:42 AM In reply to

    Re: Always editable grid AKA BulkEdit mode

    Hi Chris,

    Unfortunately I don't think we can help you with that approach but you can check out this tutorial which shows multi-row edit:

    Multi Row Editing  

Page 1 of 1 (9 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED