Autogenerated FormTemplate in RadGrid ?

8 posts, 0 answers
  1. Michal
    Michal avatar
    4 posts
    Member since:
    Sep 2010

    Posted 10 Nov 2010 Link to this post

    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
  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 11 Nov 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michal
    Michal avatar
    4 posts
    Member since:
    Sep 2010

    Posted 11 Nov 2010 Link to this post

    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

  5. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 16 Nov 2010 Link to this post

    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.
  6. Michal
    Michal avatar
    4 posts
    Member since:
    Sep 2010

    Posted 16 Nov 2010 Link to this post

    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
  7. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 17 Nov 2010 Link to this post

    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.
  8. Daniel
    Daniel avatar
    36 posts
    Member since:
    Apr 2009

    Posted 04 Apr 2011 Link to this post

    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
  9. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 07 Apr 2011 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017