Change the command button content base on row value

2 posts, 0 answers
  1. William
    William avatar
    1 posts
    Member since:
    Dec 2015

    Posted 14 Nov 2019 Link to this post

    I'm trying to change the content of a GridCommandButton based upon a value from the current row - 

    I was thinking it would be something like this:

    <GridCommandButton Command="Custom" Icon="edit" OnClick="@DisableIntegrator">

    var integrator = context as Integrator;
    integrator.IsActive ? "Deactivate" : "Activate";


  2. Marin Bratanov
    Marin Bratanov avatar
    5940 posts

    Posted 18 Nov 2019 Link to this post

    Hi William,

    Please Vote for and Follow the feature request that will enable this here:

    In the meantime, since this seems to invoke some custom method, you can do this for a button in the Template of a regular column, not in a command column. The downside is that it will require two columns until the feature above gets implemented.


    Marin Bratanov
    Progress Telerik

     UI for Blazor
Back to Top