This is a migrated thread and some comments may be shown as answers.

GridViewComboBoxColumn Vertical Scroll Bar Width

1 Answer 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nadia Sangiovanni
Top achievements
Rank 1
Nadia Sangiovanni asked on 23 May 2013, 02:23 PM
Hi Support,

In my GridView a have a GridViewComboBoxColumn. My application is touch screen and I would like to increase the vertical scroll bar width.

Can you give me some step on how to do this?

Regards,
Nadia

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 28 May 2013, 07:28 AM
Hello Nadia,

Thank you for writing.

To do that, you will have to use the CellEditorInitialized event, where you can access the combo editor, and from there its scroll bar. Here is a sample code:
void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
    RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor;
 
    if (editor != null)
    {
        RadDropDownListEditorElement element = (RadDropDownListEditorElement)editor.EditorElement;
        element.ListElement.VScrollBar.MinSize = new Size(25, 0);
    }
}

I hope that you find this information useful.
 

Regards,
Stefan
Telerik
RadChart for WinForms is obsolete. Now what?
Tags
GridView
Asked by
Nadia Sangiovanni
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or