After adjusting the width of the filtermuen, the pop-up window shifted when moving the position of the Grid?

HI 

      When I slid to the back, I found that the Filter in the first column was shifted. Is there any way to process the first column displayed in real time on the tag grid?


https://www.syncfusion.com/forums/181026/width-adjustment-of-the-filtermenu-drop-down-menu-of-grid




3 Replies

HK Harini Kannan Syncfusion Team April 17, 2023 02:54 PM UTC

Hi aquan,


Query : pop-up window shifted while moving position of Grid


After reviewing your query we understood that the Filter in the first column was shifting while resizing the window. We have verified and suggesting to use the onResize() event. By using this event the popup will be closed while resizing the window . Please refer the below code example and sample for more information.


 <ejs-dropdownlist

         …………………………

         (window:resize)="onResize($event)"

        …………………………

    ></ejs-dropdownlist>

 

 

 onResize(event) {

    if ((this.grid.filterModule.filterModule as any) && (this.grid.filterModule.filterModule as any).dlgObj)

      {

                 (this.grid.filterModule.filterModule as any).dlgObj.destroy();

      }

  }


Sample: https://stackblitz.com/edit/angular-fqasv2-fegjag?file=src%2Fapp.component.html,src%2Fapp.component.ts


Please get back to us if you have any concern.


Regards,

Harini



AQ aquan April 18, 2023 03:58 AM UTC

HI Harini Kannan

         I'm sorry, Perhaps I was describing it incorrectly. What I meant was that when I clicked on the first Filter after sliding, the pop-up window of the Filter was misaligned and did not display where I clicked to open it




HK Harini Kannan Syncfusion Team April 24, 2023 02:11 PM UTC

Hi aquan,


Query : pop-up window shifted while moving position of Grid


After reviewing your query, we find that in order to open the filter, click the filter icon. In the desired location, the filter will be activated. All of these are covered by the UI changes. As a result, when you resize the window, the target is missed, and the position is lost where the filter was opened . After resizing the window, we can't exactly locate the target position because it’s complex to finding the target position. Since the target position is losing accuracy as the window is resized. So we can't achieve your requirement in pop-up window shifting while moving the position of Grid


Kindly get back to us if you have any concern.


Regards,

Harini



Loader.
Up arrow icon