[CLOSED] Rendering Content to an Ext.Panel

  1. #1

    [CLOSED] Rendering Content to an Ext.Panel

    Hello,
    How can I render my content (@RenderSection("Content",true) ) inside an Ext.Panel on my Layout page?

    Thanks.
    Last edited by Daniil; Oct 29, 2013 at 11:57 AM. Reason: [CLOSED]
  2. #2
    Hello!

    You can use ItemsFromSection like in this samples:
    http://mvc.ext.net/#/Items/Section/
    http://mvc.ext.net/#/Items/Section_From_Page/
  3. #3

    Rendering Content to an Ext.Panel

    Quote Originally Posted by Baidaly View Post
    Hello!

    You can use ItemsFromSection like in this samples:
    http://mvc.ext.net/#/Items/Section/
    http://mvc.ext.net/#/Items/Section_From_Page/
    Thanks Baidaly...
    Do I need to repeat my common sections on every view page? In this example the "Index.cshtml" has a "section1"...in my case section1 does not change from view to view...so how do I tell it to use a single piece of code everytime?

    Thanks again.
  4. #4
    Hi,

    I don't quite understand.

    The only thing you should do is:
    .ItemsFromSection(this, "section1")
    Maybe, a test case could clarify something.

    Is that you are looking for?
    http://mvc.ext.net/#/Items/Page/
  5. #5
    Quote Originally Posted by edip View Post
    Thanks Baidaly...
    Do I need to repeat my common sections on every view page? In this example the "Index.cshtml" has a "section1"...in my case section1 does not change from view to view...so how do I tell it to use a single piece of code everytime?

    Thanks again.
    If you want to see it on every page then you have to add it. However, you can use BaseLayout with added items from the section to avoid it.
  6. #6

    Rendering Content to an Ext.Panel

    Quote Originally Posted by Baidaly View Post
    If you want to see it on every page then you have to add it. However, you can use BaseLayout with added items from the section to avoid it.
    Yes, I think the ItemsFromSubPage would work.

    Thanks.
  7. #7
    Can you clarify, can we close this thread?
  8. #8
    Quote Originally Posted by Baidaly View Post
    Can you clarify, can we close this thread?
    I have not had a chance to try it, but sure. close this thread.

    Thanks
  9. #9
    We will keep it open until your response.
  10. #10
    Closed. However, please feel free to update with any new info regarding the issue.

Similar Threads

  1. Replies: 2
    Last Post: Sep 03, 2013, 4:04 PM
  2. Replies: 2
    Last Post: Aug 30, 2013, 2:49 PM
  3. [CLOSED] [Programmatically rendering forms content]
    By Daly_AF in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 09, 2012, 1:26 PM
  4. Replies: 1
    Last Post: May 28, 2010, 1:13 PM

Tags for this Thread

Posting Permissions