Skip to content

How to add inline button for each grid rows when click on it , update some field in dialog #5411

Answered by minhhungit
waleed51 asked this question in Help
Discussion options

You must be logged in to vote

You added button, now you need to write code for onClick event

Here I update 2 fields Full & Short of State table using StateService

@Serenity.Decorators.registerClass()
    export class StateGrid extends Serenity.EntityGrid<StateRow, any> {
        protected getColumnsKey() { return 'Default.State'; }
        protected getDialogType() { return StateDialog; }
        protected getIdProperty() { return StateRow.idProperty; }
        protected getLocalTextPrefix() { return StateRow.localTextPrefix; }
        protected getService() { return StateService.baseUrl; }
        protected getInsertPermission() { return StateRow.insertPermission; }

        constructor(container: JQuery) {
            

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@waleed51
Comment options

@waleed51
Comment options

@minhhungit
Comment options

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