Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
How to make the height of dropdown cell in webdatagrid adjustable according to the content
posted

Hi,

I'm using dropdown cell in webdatagrid by the following code and bind to datatable and adjust the css style in ig_dropDown.css. Version: 14.1.20141.2392

The issue is how to make the height of the dropdown the same as the list of the content accordingly. I can't insert image. Could you please let me know how to insert image from my local to this thread? Thanks.

The code is as the following:

.igdd_ListItem
{
font-size:11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
border:solid 1px Transparent;
padding:1px 1px 1px 1px;
list-style-type: none;
width: auto;
min-height: 11px;
height: auto !important;
cursor:pointer;
}

.aspx:

<EditorProviders>
<ig:DropDownProvider ID="REPOSITORYProvider">
<EditorControl ID="REPOSITORYEditorControl" runat="server" DisplayMode="DropDown"
TextField="KEY_VALUE" ValueField="KEY_VALUE" Width="120px" />
</ig:DropDownProvider>
</EditorProviders>

.aspx.cs:

REPOSITORYProvider.EditorControl.DataSource = dtDepository;
REPOSITORYProvider.EditorControl.DataBind();

Parents Reply Children
No Data