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

Need some basic design guidance on flexible forms

3 Answers 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 12 Mar 2014, 06:40 PM
I'm not sure quite how to begin.  I have pages using tabbed set up (RadTabStrip/RadMultiPage/RadPageView, etc)

The idea of this setup is that under certain conditions the second tab becomes visible to permit entry of additional data.  Up till now I've used ASCXs as preloaded preset forms that are hidden/exposed as needed.  There are only a few of them.

Future developments may have made this impossibly complex.  What I have tried in the past is to load the ASCXs dynamically but so far I have not been able to get that to work.

Does anyone have any suggestions regarding a better way to handle the loading of multiple varied forms, either using Ajax or JavaScript?

3 Answers, 1 is accepted

Sort by
0
Ivan Zhekov
Telerik team
answered on 18 Mar 2014, 08:06 AM
Hello, Boris.

What you are describing sounds like a wizard. Are you indeed referring to a wizard (e.g. take certain action on step 1 to see step 2) or are you referring to generically "linked" / "related" forms?

Regards,
Ivan Zhekov
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Boris
Top achievements
Rank 1
answered on 18 Mar 2014, 12:17 PM
Most likely 'related' forms.  There are no steps as such, just the requirement of additional data.

(At least 'related' in technology.  All the forms will have the exact same call to extract the data in the form of an HTML stream that will be inserted into a document record.  The actual content will vary wildly, an assortment of text boxes, check boxes, and drop down selection lists.)

Actually I've finally found a way to load them dynamically so all I have to do now to add a form (hopefully) to add yet another ASCX and a tiny bit of JavaScript code.  But I'd like to keep my options open.
0
Ivan Zhekov
Telerik team
answered on 20 Mar 2014, 02:26 PM
Hello, Boris.

It actually depends on your exact setup which methods will be best used.

For instance you can always postback on form field change to determine whether or not the second tab will be visible. Downside is that this is kinda slow...

You could have both tabs loaded and visible beforehand and hide the second one with javascript and show it when needed. But then it depends how variable are your forms and is it actually possible to load them before hand.

It's actually a question open to a very broad range of answers / hints.

Regards,
Ivan Zhekov
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
General Discussions
Asked by
Boris
Top achievements
Rank 1
Answers by
Ivan Zhekov
Telerik team
Boris
Top achievements
Rank 1
Share this question
or