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

Grid textboxes overlay scrollbars

2 Answers 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
neebs
Top achievements
Rank 2
neebs asked on 25 Oct 2010, 07:58 PM
Hello,

I'm using the technique defined here:

http://www.telerik.com/support/kb/winforms/gridview/creating-a-radradiobuttoncellelement.aspx

To create cells in a radGridView that contain a checkbox and a textbox. This is working reasonably well, although I have a few issues to work out. One undesirable result is that the textboxes in the cells always overlay the scrollbars of the grid. See the attached image. Interestingly, the checkboxes do not behave this way. Is there a way to eliminate this undesired behavior?

Thanks, Steve

2 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 25 Oct 2010, 09:38 PM
Hello Neebs,

I would suggest avoiding this approach.
In my point of view TextBoxes should be visible only when cell is editing, you should just use a checkbox element in your cell.
In edit mode you can just add the text box element to the cell as suggested by this KB Article.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
0
Jack
Telerik team
answered on 28 Oct 2010, 03:33 PM
Hi Steve,

RadGridView is based on our element framework and it uses elements (not separate controls) to show its scrollbars. Text boxes are controls and they cannot be clipped. That causes the issue. In addition, using many textbox controls may lead to performance and memory issues. As Emanuel suggested, a better option is to show the textbox only when editing. 

If you have further questions, please do not hesitate to contact us.

Regards,
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
neebs
Top achievements
Rank 2
Answers by
Emanuel Varga
Top achievements
Rank 1
Jack
Telerik team
Share this question
or