[CLOSED] Using a partial with TopBarItem

  1. #1

    [CLOSED] Using a partial with TopBarItem

    I have a number of panels which are included using ItemsFromPage of a container. Each panel topbar has the same "filter" controls. Can I use a partial for the TopBarItem to avoid having duplicate code that I have to maintain?
    Last edited by Daniil; Nov 05, 2013 at 8:36 AM. Reason: [CLOSED]
  2. #2
    Hi @ATLAS,

    In such a way:
    @X.Panel().TopBar(X.Toolbar().ItemsFromPartial("Partial"))
    or
    @X.Panel().TopBarItem(X.Container().ItemsFromPartial("Partial"))

Similar Threads

  1. [CLOSED] Partial View
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Jul 16, 2013, 1:16 PM
  2. [CLOSED] [2.1] MVC Partial View
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 23, 2012, 12:04 PM
  3. ASP.NET MVC partial rendering
    By wdk in forum 1.x Help
    Replies: 16
    Last Post: Jul 20, 2012, 12:01 PM
  4. Partial Post Back
    By hardik in forum 1.x Help
    Replies: 2
    Last Post: Apr 13, 2011, 4:46 AM
  5. Partial postback
    By hardik in forum 1.x Help
    Replies: 0
    Last Post: Apr 12, 2011, 1:53 PM

Posting Permissions