[CLOSED] How to add a commandcolumn when using GridPanelFor

  1. #1

    [CLOSED] How to add a commandcolumn when using GridPanelFor

    Hi,

    using EXT.NET 5.0 mvc. GridPanelFor is really useful and a quick way to add a grid.

    How do we add a CommandColumn to the grid when using GridPanelFor? How do we configure the commandcolumn and perform a directevent on click?

    Thanks
    Ian
    Last edited by fabricio.murta; Mar 13, 2020 at 10:58 PM. Reason: no feedback in over 7 days
  2. #2
    Hello Ian!

    I am afraid you can't specify command column's inner components off model definitions.

    You'd have to get in the view and define the column's components in the Razor code, similarly to how you'd do with editable columns.

    Here's an old post from Vladimir suggesting a path to follow for the editor approach: Post #4 in GridPanelFor Editor field related to model.

    You should do the equivalent to the command column.

    If that's not feasible for you, then going the declarative way should be the best alternative to follow, like in this example: GridPanel > Commands > Row Commands

    Hope this helps!
    Last edited by fabricio.murta; Dec 18, 2019 at 7:59 PM.
  3. #3
    Hi Fabricio,

    can you please add the link to Vladimir's post.

    Thanks
  4. #4
    Ops, my bad! Lucky I was with the tab still open here to build up the link. Fixed on the original post.

    By the way, you can find existing answers for many questions with google if you search like site:forums.ext.net gridPanelFor.
    Fabrício Murta
    Developer & Support Expert
  5. #5
    Hello again, Ian!

    It's been a while since we last replied you and still no news; did our answer here help at all, or do you need assistance with the issue? Unfortunately we couldn't work yet in a way to improve how command columns' inner components can be drawn to views, but we are eager to help if you are trying the approach we suggested in our first response in this thread.

    We may mark this thread as closed if we receive no feedback from you in 7+ days, counting from this post; but even after that you would still be able to post here whenever you feel fit.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 0
    Last Post: May 04, 2018, 8:07 AM
  2. [CLOSED] GridPanelFor + HttpProxy
    By mcfromero in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 11, 2013, 2:02 PM
  3. [2.1] GridPanelFor RowNumbererColumn
    By millenovanta in forum 2.x Help
    Replies: 2
    Last Post: Dec 26, 2012, 8:55 PM
  4. [2.1] GridPanelFor Batch Update
    By millenovanta in forum 2.x Help
    Replies: 20
    Last Post: Dec 26, 2012, 12:27 PM
  5. SyncParameters in GridPanelFor
    By millenovanta in forum 2.x Help
    Replies: 0
    Last Post: Dec 05, 2012, 8:04 PM

Tags for this Thread

Posting Permissions