Welcome Guest Search | Active Topics | Sign In | Register

Grid Custom Column Editor Size/Focus Options
Steve
Posted: Thursday, February 2, 2012 3:01:36 PM
Rank: Member
Groups: Member

Joined: 12/2/2010
Posts: 10
I am experiencing two issues with an editor control in a custom column.

1. The editor control (currently a plain text box) does not assume the width of the cell when the cell enters edit mode. It is the default width and stretches across multiple columns. Is it necessary to manually set the editor control width when entering edit mode?

2. When entering edit mode, my editor does not receive focus unless I click on it with the mouse. Pressing <enter> to enter edit mode causes the the editor to be displayed, but it does not have focus until clicked on with the mouse. Is it necessary to manually set focus to the editor control?
eo_support
Posted: Thursday, February 2, 2012 4:57:39 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

To sync the width of your own textbox with the column, you must handle the Grid's ClientSideOnColumnResize event and then resize your textbox accordingly in the event handler.

In order to automatically set focus to your textbox, you will need to handle ClientSideBeginEdit for your column and then set focus to your textbox inside that event handler.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.