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

How to replace the generator logic for the edit part

3 Answers 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sebastian P.R. Gingter
Top achievements
Rank 2
Sebastian P.R. Gingter asked on 21 Dec 2010, 02:52 PM
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?

3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 22 Dec 2010, 03:17 PM
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.
0
Sebastian P.R. Gingter
Top achievements
Rank 2
answered on 23 Dec 2010, 07:58 AM
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?
0
Iana Tsolova
Telerik team
answered on 28 Dec 2010, 11:39 AM
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.
Tags
Grid
Asked by
Sebastian P.R. Gingter
Top achievements
Rank 2
Answers by
Iana Tsolova
Telerik team
Sebastian P.R. Gingter
Top achievements
Rank 2
Share this question
or