Skip to Content

WD Controller file becomes too large

Hi WD experts,

I am interesting in one more general issue in WD

My view is consists of many tabs (more than 10) and in every tab I have more that 10 UI elements with corresponding actions

The result of this is the controller code is too large

I have more than 100 actions and methods

Can I split the controller in more files?

(for example actions and supply functions to be defined in separate files)

Could you give me a piece of advice

(Unfortunately the TabStrip viewset have many bugs - and I can not used it)

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2004 at 02:30 PM

    Abstract answer to quiet abstract question 😊

    Approach A.

    1. Create one view with TabStrip

    2. For content of all/some tabs place ViewContainerElement (VCE) UI control

    3. Create view each corresponding to VCE defined above

    4. On window place main view, then arrange views created in [3] into corresponding VCEs

    Approach B

    Consider using custom controllers for context nodes population and data manipulation, and make your view forwarding any actions to corresponding methods in custom controllers. Sure, view need mapping to contexts of custom controllers.

    Approach C

    Mix A & B



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Rosen Chaushev

      Never observe such behavior with TabStrip (UI control rather then window layout, just in case we have confusion)

      If you are using control and experience such problems try to play with layout of RootUIElementContainer (set it to Grid with one cell, for example)


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.