[CLOSED] MVC PartialExtView

Page 3 of 5 FirstFirst 12345 LastLast
  1. #21

    RE: [CLOSED] MVC PartialExtView

    vladimir,

    What would happen if I called the RegisterControlResources for the store in 2 seperate partial views on the same page?


    I'm also curious to get an idea what you might mulling over for a solution to this one ... wouldn't mind weighing in before you submit something :)


    Cheers,
    Timothy
  2. #22

    RE: [CLOSED] MVC PartialExtView

    Hi,

    RegisterControlResources must be called in the main View (not partial) because resources must loaded before partial view script execution. So, at this moment you have to call that method for all possible controls which requires additional resources. I hope that I'll able to fix it soon
  3. #23

    RE: [CLOSED] MVC PartialExtView

    Thanks vladimir, I noticed this last night and scratched my head for a few minutes before realizing the partial wasn't going to work. Looking forward to your solution :)

    Cheers,
    Timothy
  4. #24

    RE: [CLOSED] MVC PartialExtView

    Hi Timothy,

    Please update from SVN (extnet-mvc) and retest
  5. #25

    RE: [CLOSED] MVC PartialExtView

    vladimir,

    You're the man! I'll test this tonight and let you know first thing for the morning.


    Cheers,
    Timothy
  6. #26

    RE: [CLOSED] MVC PartialExtView

    I'm not completely sure if it is because of this last update but now my partial views return this exception:

    An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Ext.Net.ResourceManager does not implement IHttpHandlerFactory or IHttpHandler.

    Edit:

    It's actually the resource request that cause this error, not the partial views itself. For example:

    http://127.0.0.1:1062/ux/extensions/statusbar/css/statusbar-embedded-css/ext.axd?v=0
    Sandor Drieƫnhuizen
    Subspace
  7. #27

    RE: [CLOSED] MVC PartialExtView

    Hi Sandor,

    Can you post that code which gives that exception?
  8. #28

    RE: [CLOSED] MVC PartialExtView

    Sure, here's the stuff that initiates the load. I've removed styling and text/title attributes etc. for simplification.

    <script type="text/javascript">
        function loadWindow(url, container) {
            container.load({ scripts: true, params: { containerId: container.id }, url: url });
        }
    </script>
    
    <ext:MenuItem ID="ProfileMenuItem" runat="server">
        <Listeners>
            <Click Handler="loadWindow('/User/Profile', #{ModalWindowPanel});" />
        </Listeners>
    </ext:MenuItem>
    
    <ext:Panel ID="ModalWindowPanel" runat="server" Hidden="true" />
    Here's the controller action:

    public PartialViewResult Profile(string containerId)
    {
        return new PartialViewResult(containerId, RenderMode.RenderTo);
    }
    And here's the user control:

    <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
    <ext:ResourceManagerProxy runat="server" />
    <ext:Window ID="ProfileWindow" runat="server">
        <Content>
            <ext:TabPanel runat="server">
                <Items>
                    <ext:Panel runat="server">
                        <Items>
                            <ext:FormLayout runat="server">
                                <Anchors>
                                    <ext:Anchor>
                                        <ext:Panel runat="server">
                                            <Items>
                                                <ext:Panel runat="server">
                                                    <Content>
                                                        <ext:Label runat="server" />
                                                    </Content>
                                                </ext:Panel>
                                            </Items>
                                        </ext:Panel>
                                    </ext:Anchor>
                                    <ext:Anchor>
                                        <ext:Panel runat="server" FormGroup="true">
                                            <Items>
                                                <ext:FormLayout runat="server">
                                                    <Anchors>
                                                    </Anchors>
                                                </ext:FormLayout>
                                            </Items>
                                        </ext:Panel>
                                    </ext:Anchor>
                                </Anchors>
                            </ext:FormLayout>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:TabPanel>
        </Content>
        <Buttons>
            <ext:Button ID="OKButton" runat="server">
                <Listeners>
                    <Click Handler="#{ProfileWindow}.close()" />
                </Listeners>
            </ext:Button>
            <ext:Button ID="CancelButton" runat="server">
                <Listeners>
                    <Click Handler="#{ProfileWindow}.close()" />
                </Listeners>
            </ext:Button>
        </Buttons>
    </ext:Window>
    In firebug I get a resource request failure for:

    http://127.0.0.1:1062/ux/extensions/...ss/ext.axd?v=0

    Also, the view does not load so I guess there are more problems underneath.

    Cheers,
    Sandor.
  9. #29

    RE: [CLOSED] MVC PartialExtView

    Funny, when trying to load a second time during the same session, the view loads correctly.

    Cheers,
    Sandor.
  10. #30

    RE: [CLOSED] MVC PartialExtView

    Hi Sandor,

    I cannot reproduce the problem.

    I found one problem only: you have to render to the body of the panel
    containerId: Panel1.body.id
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. [CLOSED] PartialExtView Button Listener
    By Timothy in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 04, 2012, 3:47 PM
  2. [CLOSED] PartialExtView and Icons
    By Timothy in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: May 04, 2012, 1:39 PM
  3. [CLOSED] PartialExtView
    By Timothy in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: May 04, 2012, 1:32 PM
  4. [CLOSED] PartialExtView GridPanel Title
    By Timothy in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: May 03, 2012, 7:09 PM
  5. [CLOSED] PartialExtView and Razor
    By Timothy in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 03, 2012, 3:13 PM

Posting Permissions