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?
|
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!
|