Rank: Advanced Member Groups: Member
Joined: 5/19/2010 Posts: 35
|
Hi,
I was just wondering if there was an easy way to resize controls in a custom column so that they always fill up the cell when the cell is resized?
Thanks in advance.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
No. Unfortunately there isn't. The Grid can not automatically resize controls in a custom column correctly when there are multiple controls, in which case a layout manager would have to be implemented by the user, which still requires quite some user code.
Currently you can resize your controls in ClientSideBeginEdit handler. The controls will not auto-resize when you resize a column while the cell is in edit mode, however as long as you move to another cell, your ClientSideBeginEdit handler will be called again, then you can resize them to the correct size. If you must have the correct size all the time, you can set up a timer to check the column size and then resize your controls in the timer.
Thanks!
|