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

Autogenerated FormTemplate in RadGrid ?

7 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michal
Top achievements
Rank 1
Michal asked on 10 Nov 2010, 12:24 PM
Is there any way for designer to auto-generate the FormTemplate so that it can be modified according to my needs?

For example I'm binding ObjectType that has many many fields (using ObjectDataSource) I can generate columns in designer so I can nontrol them manually - but I would like designer to also generate the FormTemplate for edit/insert operations (It may be the layout like it's done automatically when I have EditFormType="AutoGenerated" property set)
That would be especially useful for grids with many columns.

Thanks
Greetings
Michal Szilder, Krakow, Poland

7 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 11 Nov 2010, 09:41 AM
Hi Michal,

RadGrid's designer does support designing the edit form template for a given table view. Just click Edit Templates from the grid's smart tag and choose MasterTableViewEditForm.

Hope it helps.

All the best,
Tsvetoslav
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
0
Michal
Top achievements
Rank 1
answered on 11 Nov 2010, 02:17 PM

Hi 

I understand that I can edit that template through designer - but that is not what I meant it this problem  - I would like to have this template generated from properties of the object that is used by ObjectDataSource .

What I would like to have is designer to auto generate html with proper bindings according to properties from this object specified . (It can be table layout which is used when autogenerated edit template is used. 

This kind of functionality is implemented for generating columns in radgrid. (generating code with <asp:GridBoundColumns> and so on that can be changed later manually) - Refresh Schema like here 

http://www.telerik.com/help/aspnet-ajax/images/grd_GettingStarted20.png

There is also othere of this kind of functionality missing - in asp:grid it's possible to convert bound columns using designer to template columns.

Those are basically helpers that are useful when you have o lot of grids in project with lot of properties so that you speed up the process of creating such grids.

I hope you understand what I mean.

Greets

Michal

0
Tsvetoslav
Telerik team
answered on 16 Nov 2010, 01:24 PM
Hello Michal,

I am afraid RadGrid's designer does not have support for that. However, do note that the purpose of the autogenerated edit form is the same as the one you have in mind. Even if the grid's designer did have support for the scenario you are envisioning, the edit form generated would be no different than the one which now opens when you click edit for a given row.

Regards,
Tsvetoslav
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Michal
Top achievements
Rank 1
answered on 16 Nov 2010, 03:51 PM
Sure I understand what you mean but purpose for using such a designer feature would be to CUSTOMIZE the default layout - not just generate it and leave it. (often you need to use different controls for edit/insert template than the default textboxes)

As I said earlier that is especially useful when you have o lot of grids with a lot of fields.

Regards
Michal
0
Tsvetoslav
Telerik team
answered on 17 Nov 2010, 11:48 AM
Hello Michal,

I see your point but still no such support in RadGrid's designer is present. You need to use the EditFormTemplate or template columns for that matter.

Regards,
Tsvetoslav
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Daniel
Top achievements
Rank 2
answered on 04 Apr 2011, 04:18 PM
Any update on this possibly a new feature, +1 for me. It would make maintenance easier to use auto generated verse hand coding in an edit template.  In my case the auto generated works fine for all but 1 field that I want to change, I want to add a bound listbox as one of the fields all other autogenerated edit fields are fine.  Thanks
0
Tsvetoslav
Telerik team
answered on 07 Apr 2011, 01:17 PM
Hi Daniel,

We will keep your opinion in mind - however, for the time being our development team has not counted this feature as a necessary enhancement to the RadGrid's feature set.

Regards,
Tsvetoslav
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
Michal
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Michal
Top achievements
Rank 1
Daniel
Top achievements
Rank 2
Share this question
or