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

How to control edit textbox width?

6 Answers 229 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raul
Top achievements
Rank 1
Raul asked on 16 Dec 2008, 11:42 AM
Hi All,

I have a rad grid, and I enabled edit mode in place, but my grid has a lot of columns, on click edit button my page stretched and seems un acceptable, so anyway to control textboxs appears after click edit?
Please advise.

Regards

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Dec 2008, 11:48 AM
Hello Raul,

You can assign column editor using ColumnEditorID. Here is an example:

<telerik:GridBoundColumn ColumnEditorID="GridTextBoxColumnEditor1" DataField="ShipName"               HeaderText="ShipName" UniqueName="ShipName">
</telerik:GridBoundColumn>
...
        <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server">
            <TextBoxStyle Width="100px" />
        </telerik:GridTextBoxColumnEditor>
...

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Raul
Top achievements
Rank 1
answered on 16 Dec 2008, 12:24 PM
Hi Vlad,

when I try to use your code I put it in <columns> tag but it shows error using class GridTextBoxColumnEditor so what to do to use this class? use any DLL ??? or put in other tag?

Please advise

Regards
0
Vlad
Telerik team
answered on 16 Dec 2008, 01:21 PM
Hi Raul,

GridTextBoxColumnEditor (and all other column editors) are available as separate controls in the Visual Studio Toolbox - you should use these controls outside of the grid.

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Raul
Top achievements
Rank 1
answered on 16 Dec 2008, 01:44 PM
Thanx man it's ok now
0
Princy
Top achievements
Rank 2
answered on 17 Dec 2008, 01:24 PM
Hi Raul,

You can also refer the following help article to get more details about column editors.
Declarative style editors

Princy.
0
Raul
Top achievements
Rank 1
answered on 18 Dec 2008, 10:14 AM
Thanx man
I'll try it
Tags
Grid
Asked by
Raul
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Raul
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or