Call method from event in KendoGrid

0 Answers 164 Views
Grid Pager
greg
Top achievements
Rank 1
greg asked on 06 Jul 2021, 10:29 PM

Hi all

I use a kendo grid to display some datas (with VUE JS 3 ) . This one is pageable.

I use the event "page" called when I change the page. I try to call initContextMenu from this event but I have the error "initContextMenu" is not a function"...

How can I call initContextMenu ? thanks you !

 
 

grid:function () {

 

kendo.jQuery("#grid").kendoGrid({

        columns: [
          {
            field: "title",
            title: "Titre",
            template: "<div>#: title #</div>",
          },
         
        ],
        dataSource: this.dataS.orders,
        pageable: {
          pageSize: 11,
          buttonCount: 7,
        },
        page: function (e) {
          initContextMenu(); // I would like call this function
          console.log(e.page);
        },

      });

},

 

initContextMenu:function () {

// then ....

},

 

 

Georgi Denchev
Telerik team
commented on 09 Jul 2021, 11:46 AM

Hi, Greg,

I've noticed that my colleague has already given you an answer in this forum thread.

If you have any additional questions, please ask them in the other ticket.

greg
Top achievements
Rank 1
commented on 09 Jul 2021, 08:39 PM

Hi Georgi,

That's works thanks you so much !

Greg

No answers yet. Maybe you can help?

Tags
Grid Pager
Asked by
greg
Top achievements
Rank 1
Share this question
or