I have an sftextbox and sfmultiselect dropdown control in my razor component.I would like to know how to make same height of multiselect and textbox control.please check below screencast and source code for your reference.
https://www.screencast.com/t/k5zBxtVTS
|
<SfMultiSelect ID="MultiSelect" TValue="string[]" CssClass="e-small" TItem="GameFields" Placeholder="Select Games"
Mode="@VisualMode.Box"
DataSource="@Games" ShowSelectAll="false" EnableSelectionOrder="true"
ShowDropDownIcon="true" FilterBarPlaceholder="Factory List"> |
Thanks for reply....
I am getting another issue. Please check my comments in below screencast for better understanding and also please check my component with css file...
https://www.screencast.com/t/BDRtcTY8
sorry for late reply...
please check attached modified code, now you can get my problem in attached code. Please check this and advise how to resolve this issue.
note:-
I have place "EditForm" in div which class in "divzoom"
awaiting for reply...
awaiting for prompt reply...
I have already provided screencast and problematic source code with example.
please look into this..
please check is there any bugs ??
please help
|
public async Task OnOpen(PopupEventArgs args)
{
await JSRuntime.InvokeVoidAsync("created", "MultiSelect");
} |
|
window.created = function (id) {
setTimeout(function (e) {
var instances = document.getElementById(id);
var popupObj = instances.blazor__instance.popupObj;
popupObj.element.classList.add("DivZoomPopup");
}, 50)
} |
|
.DivZoom {
height: 100%;
width: 100%;
}
.DivZoomPopup {
width: 100%;
}
@@media(min-width:1367px) {
.DivZoom {
height: 100%;
width: 100%;
zoom: 125%;
}
.DivZoomPopup {
width: 100%;
zoom: 125%;
}
} |
Thanks working fine.
can you please advise how to globally defined above code for all dropdown control ??
because I have more than 100 dropdown control
|
<div class="col-sm-12 col-md-6 col-lg-6">
<SfMultiSelect @ref="multiObj1" TValue="string[]" TItem="GameFields" ID="MultiSelect"
Placeholder="Enter the value" Mode="@VisualMode.Box" FloatLabelType="FloatLabelType.Always"
DataSource="@Games" ShowSelectAll="false" EnableSelectionOrder="true"
ShowDropDownIcon="true" FilterBarPlaceholder="Search Here">
<MultiSelectEvents TValue="string[]" TItem="GameFields" Opened='(() => OnOpen("MultiSelect"))'></MultiSelectEvents>
<MultiSelectFieldSettings Text="Text" Value="ID"></MultiSelectFieldSettings>
</SfMultiSelect>
</div>
<div class="col-sm-12 col-md-6 col-lg-6">
<SfMultiSelect @ref="multiObj2" TValue="string[]" TItem="GameFields" ID="MultiSelect1"
Placeholder="Enter the value" Mode="@VisualMode.Box" FloatLabelType="FloatLabelType.Always"
DataSource="@Games" ShowSelectAll="false" EnableSelectionOrder="true"
ShowDropDownIcon="true" FilterBarPlaceholder="Search Here" PopupHeight="350px">
<MultiSelectEvents TValue="string[]" TItem="GameFields" Opened='(() => OnOpen("MultiSelect1"))'></MultiSelectEvents>
<MultiSelectFieldSettings Text="Text" Value="ID"></MultiSelectFieldSettings>
</SfMultiSelect>
</div>
</div>
</EditForm>
</div>
@code {
public async Task OnOpen(string id)
{
await JSRuntime.InvokeVoidAsync("created", id);
}
} |