Skip to content

How to put a button in the gridcolumns? #946

Answered by diegosyswork
LeandroSiani asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, you can use on a new column and put whatever comes to mind there, in my case I created a component that has the buttons: show, edit and delete

        <GridColumn TItem="ViewCustomersdb" PropertyName="Periodicity" Filterable="false" Sortable="false">
            <HeaderContent>
            </HeaderContent>
            <ChildContent>
                <ShowEditDeleteToolbar 
                    HrefShow=@(_hrefShow + "/" + context.CustomerDbID)
                    HrefEdit=@(_hrefEdit + "/" + context.CustomerDbID)
                    HrefDelete=@(_hrefDelete + "/" + context.CustomerDbID) />
            </ChildContent>
        </GridColumn>

create a new class named ShowEditDeleteToolbar.…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LeandroSiani
Comment options

Answer selected by LeandroSiani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants