We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dropdown column

Thread ID:





146245 Jul 28,2019 01:17 PM UTC Jul 30,2019 05:46 AM UTC ASP.NET Core - EJ 2 3
Tags: DataGrid
Bernard Jurlina
Asked On July 28, 2019 01:17 PM UTC

How can I set the dropdown width of the column in the inline editing?
So, the width of the foreign key column with dropdown is set to 200px, but I want it to be more than that when I click the dropdown.


Hariharan J V [Syncfusion]
Replied On July 29, 2019 09:59 AM UTC

Hi Bernard, 

Thanks for contacting Syncfusion support. 

You can customize the DropDownList edit component by using the “edit.params” property of Grid columns. Please refer to the below code example and documentation for more information. 

In the below sample code we have customized the popup width inside the “BeforeOpen” event. 

    var DropDownList = new Syncfusion.EJ2.DropDowns.DropDownList() { BeforeOpen = "beforeOpen" }; 
<ejs-grid id="grid" height="100%" width="100%" dataSource=ViewBag.data> 
<e-grid-editSettings allowEditing="true"></e-grid-editSettings> 
         .  .  . 
        <e-grid-column field="ShipCountry" headerText="Ship Country" width="150" editType="dropdownedit" edit="new {@params = DropDownList }"></e-grid-column> 
    function beforeOpen(e) { 
        this.popupWidth = "300px"; 

Please get back to us if you need any further assistance on this. 


Bernard Jurlina
Replied On July 29, 2019 04:36 PM UTC


It's working fine.

Thanks Hariharan!


Hariharan J V [Syncfusion]
Replied On July 30, 2019 05:46 AM UTC

Hi Bernard,

Thanks for your update.

We are happy to hear that your requirement has been achieved.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon