Device issue with allowfiltering true in Multiselect Dropdown in checkbox mode

Hello,

Keep resolution of chrome by  1365*785  and then try any simple SfMultiSelect with allow filtering true.

the drop down open full size page.


6 Replies

PO Prince Oliver Syncfusion Team December 1, 2021 12:59 PM UTC

Hi Neha, 

Thank you for contacting us. 

We have ensured the reported case in our end with reported resolution in chrome, the popup opens correctly in our end. Kindly refer to the following screenshot. 

 


Kindly share us sufficient steps to replicate the issue in our end. 

Regards, 
Prince 



NS Niha Shaikh December 3, 2021 07:03 AM UTC

MultiSelect.png Hi,

Kindly create MultiSelect with checkbox then set browser like 1366* 768 and then refresh keeping this resolution and then try to open multiselect it will overlay all content and appear on full page.




PM Ponmani Murugaiyan Syncfusion Team December 6, 2021 07:14 PM UTC

Hi niha, 

Thanks for the update 

We able to replicate the reported issue and validating in our end. We will update further details in 2 business days (December 8, 2021). We appreciate your patience until then. 

Regards, 
Ponmani M 



BC Berly Christopher Syncfusion Team December 8, 2021 04:18 PM UTC

Hi Niha, 
  
Thanks for the patience. 
  
We have checked the reported issue. We would like to inform you that, if you are accessing the popup in the tablet or mobile mode then the MultiSelect filtering popup will be displayed in the overall page for the better UI to the user. If you are accessing the component in the desktop mode, then popup will be displayed under the input wrapper. This is the intended behavior of the component.  Kindly confirm us whether you have ensured the sample in tablet / mobile or desktop /PC mode which help us to check and proceed further from our end.   
  
Regards, 
Berly B.C 



NS Niha Shaikh replied to Berly Christopher December 13, 2021 07:01 AM UTC

Hi Berly,

We are using it for mac laptop users and testing it on both mac and desktop computers. 
So my concern is for laptop users it should not open it to full page.
Is there anyway we can stop the wrapper to come up on full page ?



BC Berly Christopher Syncfusion Team December 14, 2021 02:39 PM UTC

Hi Niha Shaikh, 
  
As we mentioned earlier, when opening the popup in the mobile mode, it displays in the full screen which is implemented for the better UI experience for the user. So, this is a default rendering mode in the mobile devices.    
  
We can disable this behavior by overriding the popup element style as mentioned below code snippet.  
  
     <SfMultiSelect TValue="string[]" ID="multiselect" Mode="VisualMode.CheckBox" TItem="Countries" Placeholder="Select countries" DataSource="@Country" AllowFiltering="true"> 
            <MultiSelectFieldSettings Text="Name" Value="Code"></MultiSelectFieldSettings> 
            <MultiSelectEvents TValue="string[]" TItem="Countries" Opened="Opened"></MultiSelectEvents> 
        </SfMultiSelect> 
  [Inject] 
    protected IJSRuntime JsRuntime { get; set; } 
 
 
    public async Task Opened(Syncfusion.Blazor.DropDowns.PopupEventArgs args) 
    {         
        await JsRuntime.InvokeVoidAsync("OnOpen", "multiselect"); 
    } 
window.OnOpen = function (id) { 
    setTimeout(() => { 
        if (ej.base.Browser.isDevice) { 
            var multiObj = document.getElementById("multiselect").blazor__instance; 
            var parentElement = multiObj.containerElement; 
            multiObj.popupObj.position = { X: 'left', Y: 'bottom' }; 
            multiObj.popupObj.width = parentElement.offsetWidth; 
            multiObj.popupObj.dataBind(); 
            multiObj.popupObj.element.classList.remove( 
            'e-ddl-device', 
            'e-popup-full-page' 
        ); 
      } 
    },30); 
 
} 
   <script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script> 
    <script src="~/client.js"></script> 
 
  
  
Regards, 
Berly B.C 


Loader.
Up arrow icon