How to replace the generator logic for the edit part

4 posts, 0 answers
  1. Sebastian P.R. Gingter
    Sebastian P.R. Gingter avatar
    7 posts
    Member since:
    Jun 2010

    Posted 21 Dec 2010 Link to this post

    Hi,

    we have a very dynamic grid where columns are customizable by the user. You know that when you give the user this power, he eventually ends up configuring a grid with 50-ish columns and then complains that the (auto-generated) edit form is way to long and unorganized ;-)

    Now we want to integrate a RadTabStrip into the edit form and distribute the single columns into several tabs, determined by the column configuration that the user defines.

    So the question is: what is the best / most efficient / least complex way to achieve this.
    First of all I though about replacing the logic that creates the xx_mainTable part and throws the editor table rows in that for each column, put a RadStrip in it and put a table into each tab and just distribute the columns that way - but all that is marked internal and not exchangeable.

    So what way do you suggest to hook in there?
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 22 Dec 2010 Link to this post

    Hi Sebastian,

    I would suggest that you use FormTemplate for the grid edit form. Thus you would have the freedom to build the edit form just as desired.

    All the best,
    Iana
    the Telerik team
    Browse the vast support resources we have to jump start 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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sebastian P.R. Gingter
    Sebastian P.R. Gingter avatar
    7 posts
    Member since:
    Jun 2010

    Posted 23 Dec 2010 Link to this post

    I forgot to mention that we don't use Forms / Controls as in aspx / ascx. 
    We exclusively create controls in Code. Aspx / ascx are not dynamic enough to adjust the layout to customer needs, so we do everything dynamically from code.

    By now I didn't see how I could create an ITemplate control that can build an edit form dynamically from the columns without copying the code that you use in the edit form generator. Especially retrieving and instanciating the editor columns and configuring them for a specific column type is a lot of work we would need to duplicate in this case. And by copying your code we would lock us down on the very specific version of your controls because any update on your side on this code would require a) checks what changes, copying angain, possibly introducing new errors in the software.

    So this is not an usable option. How would a solution look like that does not require us to copy your code to achieve the very same result as the autogenerated edit form - just with an additional TabStrip in the edit form?
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 28 Dec 2010 Link to this post

    Hello Sebastian,

    I understand your concerns but the desired functionality cannot be achieved with the auto-generated edit form. For more information, check the answer my colleague provided in the other thread you have posted on the same subject.

    Best wishes,
    Iana
    the Telerik team
    Browse the vast support resources we have to jump start 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.
Back to Top