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.
|
|
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.
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 ?
|
<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> |