How do you set the width of a GridDropDownListColumnEditor on the server.
I have a method tied to OnCreateColumnEditor called "CreateEditor". It looks something like this
protected void CreateEditor(object sender, GridCreateColumnEditorEventArgs e)
{
GridDropDownListColumnEditor operatorEditor = e.ColumnEditor as GridDropDownListColumnEditor;
operatorEditor.ComboBoxControl.DropDownWidth = Unit.Pixel(50);
}
But the width never gets changed to 50px. It is a lot longer than that.
I have a method tied to OnCreateColumnEditor called "CreateEditor". It looks something like this
protected void CreateEditor(object sender, GridCreateColumnEditorEventArgs e)
{
GridDropDownListColumnEditor operatorEditor = e.ColumnEditor as GridDropDownListColumnEditor;
operatorEditor.ComboBoxControl.DropDownWidth = Unit.Pixel(50);
}
But the width never gets changed to 50px. It is a lot longer than that.