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

Scroll bar in Column Chooser?

6 Answers 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bexm
Top achievements
Rank 1
Bexm asked on 10 Dec 2007, 09:08 AM
Hello

I am sorry if this is a really simple question, but I can't seem to find the answer.

How do you have a vertical scroll bar in the gridview column chooser?

Thanks

Bex

6 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 10 Dec 2007, 02:34 PM
Hi Becky,

Thank you for bringing this issue to our attention. Currently there is no way to show the scroll bars. We logged the issue in our bug tracker. We hope that the fix will be available the next week with the official Q3 Release.

Your Telerik points have been updated for reporting this problem.
 
As a workaround, you can change the size of the Column Chooser form by using the following code:
 
private void ShowColumnChooser(void
    GridTableElement gte = this.radGridView1.GridElement as GridTableElement; 
    ColumnChooserForm form = null
 
    if (gte != null && gte.TableBodyElement != null
    { 
        form = gte.TableBodyElement.ColumnChooserForm; 
    } 
  
    if (form != null
    { 
        form.Size = new Size(240, 600); 
        form.Show(); 
    } 

 
Regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Bexm
Top achievements
Rank 1
answered on 10 Dec 2007, 02:38 PM
Oh, ok.. I will have to wait until next week then as they screen isn't big enough to put the column chooser to its full height, because as mentioned in my other post, I have about 70 columns to choose from!
0
Bexm
Top achievements
Rank 1
answered on 19 Dec 2007, 03:29 PM
Is this in the new release?
0
Dwight
Telerik team
answered on 19 Dec 2007, 04:10 PM
Hi Becky,

Yes, this is the new release. Give it a spin and tell us what you think. The RadGridView is undergoing major refactoring and will be available further on.

If you need any further assistance, please contact us.

Greetings,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Lily
Top achievements
Rank 1
answered on 09 Feb 2011, 12:13 AM
Hi,
I tried to use your code, but I've got an error:

ColumnChooserForm - type or namespace cannot be found. No problems for other Telerik controls. What namespace am I missing?

 

TableBodyElement

 does not exist in  GridTableElement also. How can I acecss Column Chooser?

Thank you
Lily 

0
Svett
Telerik team
answered on 10 Feb 2011, 06:05 PM
Hi Lily,

You can access the column chooser by using the ColumnChooser property of RadGridView:


this
.radGridView1.ColumnChooser.Show();

I hope this helps.

Best wishes,
Svett
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Bexm
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Bexm
Top achievements
Rank 1
Lily
Top achievements
Rank 1
Svett
Telerik team
Share this question
or