Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Datagrid reload via ajax

    General Discussion
    datagrid datagridajax datagridreload
    1
    2
    58
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Chelsea last edited by

      Greetings

      I developed a package for shop in which I show the customer a Bagisto datagrid with some information. I have a form in that same view. I haven't been able to reload the datagrid via Ajax when I perform an action from that form.
      Something very similar is happening to me, but in the admin (back office).

      Please help.

      C 1 Reply Last reply Reply Quote 0
      • C
        Chelsea @Chelsea last edited by Chelsea

        @Chelsea

        So far, the only way I've managed to do it is by modifying the core datagrid component (index.blade) and adding these lines

                 mounted() {
                        this.boot();
        
                        if (window.emitter) {
                            window.emitter.on('wallet:admin:logs:refresh', (payload) => {
                                if (!payload || !payload.target || payload.target === this.src) {
                                    this.get();
                                }
                            });
                        }
                    },
        

        But it's not what I would like

        1 Reply Last reply Reply Quote 0
        • First post
          Last post