grid edit

2 posts, 0 answers
  1. John
    John avatar
    6 posts
    Member since:
    Jun 2008

    Posted 12 Mar 2009 Link to this post

    Issue 1

    I have a radgrid inside a tree view control.  Is it possible to put that grid into inline edit mode.  I figure I have to use the client side OnCommand function to put the identifying data for the row that needs to be edited into a hidden variable so when the grid is recreated on the server side that row can be put into edit mode.  The problem I am having is how to get the data I need from the grid on the client side.

    Here is what I have so far.

    serverside grid definition (partial)

    _TreeGrid =

    new RadGrid();


    _TreeGrid.ID =

    "radDG" + _gridType;


    _TreeGrid.Skin =



    _TreeGrid.Width = 800;

    _TreeGrid.AutoGenerateColumns =



    _TreeGrid.ClientSettings.Selecting.AllowRowSelect =



    _TreeGrid.AllowMultiRowSelection =




    //bind the client side events


    _TreeGrid.ClientSettings.ClientEvents.OnRowCreated =



    _TreeGrid.ClientSettings.ClientEvents.OnRowCreating =



    _TreeGrid.ClientSettings.ClientEvents.OnRowSelected =



    _TreeGrid.ClientSettings.ClientEvents.OnRowDeselected =



    _TreeGrid.ClientSettings.ClientEvents.OnCommand =



    server side javascript


    function GridCommand(sender, args)




    grid = sender;


    dataItems = grid.get_masterTableView().get_dataItems();





  2. Yavor
    Yavor avatar
    11 posts

    Posted 16 Mar 2009 Link to this post

    Hello John,

    On the client, you can either use the editItem client side handler for a single item, or the editselecteditems to edit multiple items. In addition, you can use the fireCommand client side method, to fire a custom command, which can be used to put multiple items in edit mode from the server.
    I hope these suggestions help.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top