[CLOSED] Edit and Delete Grid Rows with Permissions

  1. #1

    [CLOSED] Edit and Delete Grid Rows with Permissions

    Hello,

    I am trying to create a grid which has both edit and delete options for each row and uses with and edit and delete icon to the right of the grid.

    I was not able to acheive this since only once action can be assigned to the grid ? Do you guys have an example of how this can be implemented ?

    On the other hand these buttons should appear to users with respective permissions only, we need to hide the column for users who dont have access.

    Please advice.

    --Sampath
    Last edited by Daniil; Jun 29, 2012 at 12:37 PM. Reason: [CLOSED]
  2. #2
    Hi,

    It is possible to set up several commands for rows. The command name is passed to the Command listener and, so, just separate the logic using the if or switch statement.

    Also the commands might be hidden or disabled in the respective "prepare" handler.

    Please see the following examples.
    https://examples1.ext.net/#/GridPane...epare_Toolbar/
    https://examples1.ext.net/#/GridPane...pare_Commands/

Similar Threads

  1. Replies: 2
    Last Post: Jan 09, 2012, 10:47 AM
  2. Save/Edit/Delete in Gridpanel
    By rajputamit in forum 1.x Help
    Replies: 1
    Last Post: Oct 25, 2010, 1:55 PM
  3. Replies: 0
    Last Post: Oct 05, 2009, 6:09 AM
  4. Replies: 0
    Last Post: Sep 17, 2009, 8:04 AM
  5. Edit/Delete GridPanel
    By Maia in forum 1.x Help
    Replies: 1
    Last Post: Apr 27, 2009, 11:07 PM

Posting Permissions