kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
557 stars 302 forks source link

Ajax GridView filtering does not work with TabsX #990

Closed TylerByte666 closed 3 years ago

TylerByte666 commented 3 years ago

Prerequisites

Steps to reproduce the issue

  1. Embed kartik GridView in a kartik TabsX;
  2. Now try select the tab with that grid in it and filter the grid, any column 😮‍💨

Expected behavior and actual behavior

When I follow those steps, I see...

That the whole page is refreshed and reloaded, instead of just using ajax to reload. The GridView did not filter and the tab focus was reset.

I was expecting... I was expecting to filter a column without the whole page reloading just the active grid in the tab I selected.

Environment

Browsers

Operating System

Libraries

Isolating the problem

TylerByte666 commented 3 years ago

Created a new project and only installed TabsX and GridView, working fine 👍

That means that there is another dep in my main project that breaks it 😢

TylerByte666 commented 3 years ago

I figured it out.

Anybody struggling with the same thing let me know...