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

Vertical Stacked Edit/Cancel in GridEditCommandColumn

2 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 01 Jan 2010, 12:13 AM
When using "InPlace" for EditMode can I get the Edit and Cancel commands to stack vertically vs. horizontally within the GridEditCommandColumn?  I've created a custom GridTextColumnEditor that's multi line and need the extra width on the page that the horizontal command buttons eat up.

2 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 05 Jan 2010, 09:22 AM
Hi Marc,

Basically, with this default editing rendering of the control, there is no easy option to setup the layout in such a manner. However, you can use an EditFormTemplate, and easily alter the layout of the editForm. The following example demonstrates one such setup:

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

I hope this gets you started properly.

Sincerely yours,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jim Foster
Top achievements
Rank 1
answered on 21 Mar 2012, 05:17 PM
I know this is a bit late, but this may help someone else. I got it to stack simply by inserting a line break before the work Cancel. It stacked nicely and I was able to reduce the column width.

<telerik:GridEditCommandColumn FooterText="EditCommand footer" UniqueName="EditCommandColumn"
  HeaderText="Edit" HeaderStyle-Width="50px" UpdateText="Update" CancelText="<br/>Cancel" />
Tags
Grid
Asked by
Marc
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Jim Foster
Top achievements
Rank 1
Share this question
or