- Home
- Forum
- ASP.NET Core - EJ 2
- Dropdown edit ShowClearButton
Dropdown edit ShowClearButton
Hey Guys,
How can I show the ClearButton in the Grid Modal?
Is there any possibility, to do it like a normal DropDown edit?
Best Regards
SIGN IN To post a reply.
4 Replies
1 reply marked as answer
PS
Pon Selva Jeganathan
Syncfusion Team
November 9, 2021 04:49 PM UTC
Hi Chris,
Thanks for contacting syncfusion forum.
We are working on this query with high priority to find the feasible solution of your requirement. We will update with further details by November 10, 2021.
Until, then we value your patience.
Regards,
Pon selva
SK
Sujith Kumar Rajkumar
Syncfusion Team
November 10, 2021 12:15 PM UTC
Hi Chris,
Thanks for your patience.
Based on the query we could understand that your requirement is to show clear button for the dropdown control rendered in Grid dialog edit. You can achieve it by enabling the showClearButton property for the dropdown edit column using the cell edit params property of the Grid columns.
This is demonstrated in the below code snippet,
|
@{
var ddParams = new { @params = new { showClearButton = true } };
}
<div id="parent">
<ejs-grid id="Grid" dataSource="@ViewBag.Data" >
<e-grid-columns>
<e-grid-column field="ShipCountry" editType="dropdownedit" edit=ddParams></e-grid-column>
</e-grid-columns>
</ejs-grid>
</div> |
We have prepared a sample based on this for your reference. You can find it below,
Sample: https://www.syncfusion.com/downloads/support/forum/170271/ze/GridWithCellEditParams1931421027
More details on this can be checked in the below documentation link,
Documentation: https://ej2.syncfusion.com/aspnetcore/documentation/grid/edit/#cell-edit-type-and-its-params
Please get back to us if you require any further assistance.
Regards,
Sujith R
Marked as answer
CH
Chris
November 12, 2021 09:33 AM UTC
Hey Guys,
Thanks a lot, works like charm :-D
Best Regards :-)
SK
Sujith Kumar Rajkumar
Syncfusion Team
November 15, 2021 06:25 AM UTC
Hi Christoph,
You’re welcome. We are glad to hear that your query has been resolved.
Regards,
Sujith R
SIGN IN To post a reply.