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

Changing default with of controls in EditForm

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
improwise
Top achievements
Rank 1
Iron
Iron
improwise asked on 25 Oct 2010, 10:39 PM
When using EditForms (the "auto generated" ones, ie no custom form template) I find that the controls, in most cases TextBoxes, are always a bit to narrow. This is especially true since the EditForm is rendered verticaly, and so AT LEAST 2/3s of the EditForm is always unused (all white).

  1. What's the best way to make a application wide change for this? Or even "developer machine wide"?
  2. Telerik, I suggest you change your default templates for this to make everything wider, as there is no point making it very cramped by default, when you know that at least 50% of the EditForm to the right will be empty anyway. Please consider this for future releases.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 Oct 2010, 12:21 PM
Hi Patrik,

I am afraid there is no "wide" way to set textbox widths for the RadGrid edit form. You can do this in ItemCreated.

http://www.telerik.com/help/aspnet-ajax/grdaccessingcellsandrows.html

(see "Accessing cells using column Unique Name" and "Accessing the value of cells in edit mode")

Alternatively, you can use declarative column editors with explicit widths set, as in this demo:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

Currently we do not set any widths to edit form textboxes. Doing so is easy, but will hardly suit all scenarios (e.g. all possible RadGrid widths), so for the time being we refrain from implementing it.

Regards,
Dimo
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
Grid
Asked by
improwise
Top achievements
Rank 1
Iron
Iron
Answers by
Dimo
Telerik team
Share this question
or