[CLOSED] MVC and Window show View

  1. #1

    [CLOSED] MVC and Window show View

    Hi, i don't to show a view in a window in MVC, i view the sample window, but i open a link Url:

    @(X.Window()
            .ID("Window1")
            .Title("Ext.NET")
            .Width(1000)
            .Height(500)
            .Modal(true)
            .AutoRender(false)
            .Collapsible(true)
            .Maximizable(true)
            .Hidden(true)
            .Loader(X.ComponentLoader()
                .Url("http://www.ext.net")
                .Mode(LoadMode.Frame)
                .LoadMask(lm => lm.ShowMask = true)
            )
        )
    How to show a View in a Window ?

    i test this, but not work.

     @(X.Window()
                .ID("winOrdine")
            .Title("Ext.NET")
            .Width(1000)
            .Height(500)
            .Modal(true)
            .AutoRender(false)
            .Collapsible(true)
            .Maximizable(true)
            .Hidden(true)
            .ItemsFromAction("Index","Orders")
            .Loader(X.ComponentLoader()
                .Mode(LoadMode.Frame)
                .LoadMask(lm => lm.ShowMask = true)
            )
        )
    Help my

    Thanks
    Aurelio
    Last edited by Daniil; Jan 08, 2015 at 12:02 PM. Reason: [CLOSED]
  2. #2
    Hi @Aurelio,

    You could try with
    @(X.Window()
        .ItemsFromPage(this, "SomePage.cshtml")
    )
    or
    @(X.Window()
        .ContentFromPage(this, "SomePage.cshtml")
    )
    By the way, .ItemsFromAction or .ContentFromAction should be also working for you, but you need to remove the Loader. It must not be used together.
  3. #3
    Hi ... Daniil

    Ok, the problem is the loader, but i retrive an error:

    The controller for path '/Clienti' was not found or does not implement IController.

    Now prepare a sample and test..

    Thanks

    Aurelio
  4. #4
    Now prepare a sample and test..
    Please clarify are you preparing a test sample or asking us to prepare a sample?
  5. #5
    Hi Daniil.. sorry

    It would be great if you already have an example, otherwise I see you try to make a small example to resolve the above error.

    I do not have much practice with MVC

    Thanks

    Aurelio
  6. #6
    It would be great if you already have an example
    Is that example helpful to you?
    http://mvc.ext.net/#/Items/Page

    otherwise I see you try to make a small example to resolve the above error.
    At the moment I don't quite understand what example I could prepare to resolve the error.

    Please clarify have you defined the Clienti controller?

    It might be helpful if you post a test case and we reproduce the problem.
  7. #7
    Hi..Daniil

    Ok thanks, now I see the example and try to see if it works

    Close the post.

Similar Threads

  1. [CLOSED] Calendar: Is it possible to set 2 weeks view to show the event?
    By csssi_coolite in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: May 14, 2012, 8:54 AM
  2. Replies: 3
    Last Post: Mar 19, 2012, 1:35 PM
  3. Replies: 2
    Last Post: Feb 14, 2012, 9:57 PM
  4. Replies: 1
    Last Post: Jan 27, 2012, 12:32 PM
  5. [CLOSED] Show sum in groupping view
    By ppettigrew in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 02, 2010, 7:49 PM

Posting Permissions