Accordion with summary

Hi, i would like to design an accordion component with WPF, but the problem is that the collapsed accordion state should contain a summary of data.
Can any one help?

Try the following (it is a  very simple example).
XAML:
<Expander>
<Expander.Resources>
<Style x:Key="123" TargetType="TextBlock" >
<Setter Property="Text" Value="Not Expanded"></Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding IsExpanded, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Expander}}}" Value="True">
<Setter Property="Text" Value="Expanded"></Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</Expander.Resources>
<Expander.Header>
<TextBlock Style="{StaticResource 123}" ></TextBlock>
</Expander.Header>
<Expander.Content>
<ListBox ItemsSource="{Binding RSongInfos}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Title}"></TextBlock>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Expander.Content>
</Expander>
This example simple sets the text of the header to "expanded" / "not expanded" depending on whether or not the expander is expanded.  The example only uses one text block but you can use any controls you want.
Lloyd Sheen

Similar Messages

  • How can i create a grid with summary row

    Hello Professionals,
    I'm wondering how could i create a grid like the grid below, i want to create a grid with summary row,
    i have tried to create it using collapsing but it didn't work as required.
    Any suggestions?, i want to know just the starting point so i can make deep investigations.
    Thanks in Advance,

    Hi Karem,
    this can be achieved by just assigning a datatable containing the data plus some formatting of grid. Meaning there is no feature for that.
    The datatable can be filled manually or by sql query. Then you have to attach some events for updating the values ( validate after for gid item ).
    A small example for a sql query showing last month quotations and orders with summary :
    select 1 as Sort,cast(DocNum as varchar) as DocNum,DocTotal,convert(varchar, DocDate,104) from OQUT where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    Select 2 as Sort,'Summary ( Quotation ) : ',sum(DocTotal), convert(varchar,  DATEADD(month, -1, GETDATE()),104)+' - '+convert(varchar,   GETDATE(),104) from OQUT where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    select 3 as Sort,cast(DocNum as varchar) as DocNum,DocTotal,convert(varchar, DocDate,104) from ORDR where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    UNION ALL
    Select 4 as Sort,'Summary ( Order ) : ',sum(DocTotal), convert(varchar,  DATEADD(month, -1, GETDATE()),104)+' - '+convert(varchar,   GETDATE(),104) from ORDR where DocDate between  DATEADD(month, -1, GETDATE()) AND GETDATE()
    ORDER by Sort
    regards,
    Maik

  • Report with Summary & Detail - Exporting to PDF in Crystal Report

    Hi,
    I am using Crystal Reports XI (release 2). I am trying out a report with Summary and Detail sections.
    Requirement:
    1.     Report should display both Summary and Detail Sections
    2.     Summary section should be displayed first followed by Detail Section
    3.     A field in summary section should have a hyperlink to Detail Section
    4.     On clicking the hyperlink the user should be navigated to the corresponding detail record
    5.     User should be able to download the whole report as a single PDF (i.e., both summary and detail together)
    Implementation in Crystal Report:
    This feature could be implemented using
    a.     Linked On Demand Sub report
    b.     Using Hide (Drill down ok) option
    c.     Hyperlinks
    Issue Faced:
    I used the on demand sub report option. When i clicked on the sub report (hyperlink), the details get displayed. But the details get displayed in separate viewer and hence when we export to PDF both summary and detail are not getting exported together. User has to select each detail report and export to PDF. Is this a limitation in CR XI? - proprietary Crystal Report features, such as drill-down and on-demand subreports, are supported only in the native Crystal Report format. These special features are ignored when exporting a report to a non-Crystal format like pdf.
    Is there any workaround for exporting both the summary and detail (in subreport) as a single PDF file?
    Any help will be greatly appreciated.
    Thanks,
    Viji.

    Hi
    Hyperlink would not be a solution to what you are asking for.
    If you want to see the records related to a particular employee id by clicking on emp id, you can try the below:
    - Apply a group on employee id on the main report.
    - Insert a subreport with the required fields and place it on the Employee id Group header. You can put a name of the subreport as "Check Employee details" or something else as per requirement and make it a on demand subreport.
    - Link the subreport on Employee id.
    Hope this helps!!!
    Regards
    Sourashree

  • Accordion with Vertical Navigation problem

    Following tutorial about phone layout accordion/vertical navigation menu encountering following problem in my original file:
    Create accordion - ok (style to my pref)
    Insert vertical navigation - ok (style to my pref)
    When trying to resize the v/nav to hit the red line on browser edge - both left and right, in preview and in mobile simulator the navigation panels don't expand accordingly to the width of the mobile screen.
    If try with only accordion with no menu all ok. As soon as I add the navigation and try to size to hit the red guides indicating that it will resize with browser size, when preview it doesn't as described above.
    Any suggestions?
    Thanks
    Sam

    If you DO want the slideshow overlaping the navigation try the below css:
    .sidebar1 {
        float: left;
        width: 225px;
        margin: 60px 0px 60px 60px;
        color: #FFFF0D;
        background: #595FFF;
        border-radius: 13px;
        -moz-border-radius: 13px;
        -webkit-border-radius: 13px;
        padding: 5px 5px 0px 5px;
        border: 3px solid #F7F723;
    .box {
    float: left;
    margin-left:-60px;
    width:700px;
    height:350px;
    border-radius: 13px;
    -moz-border-radius: 13px;
    -webkit-border-radius: 13px;

  • Dynamic accordion with dynamic datagrid

    I’m trying to create a dynamic accordion with embedded
    datagrids in each accordion area. I have the base working but have
    2 problems I can’t seem to figure out.
    Bases; the accordion uses a repeater and vbox with a custom
    component from a webservice result set to create the accordion. The
    custom component has another webservice that gets a value from the
    repeater to pass it to the custom component.
    My 2 problems:
    1. how do I prevent the custom component from running the
    webservice until the accordion item is clicked or the area is
    visible? Otherwise I end up will a bunch of queries hitting the DB
    and if there is several items for the accordion and many items from
    the datagrid its slower.
    2. how can I get the datagrid query to refresh when the
    accordion item is clicked? Because the data may change I am not
    able to see the updated data unless I reload the entire
    application.
    1 thing I did try. With the tab control you can use the
    show() event and the data will refresh just fine, but with the
    accordion, the show() event does not seem to fire. Its as if they
    are all visible.
    Any help here would be much appreciated, I’ve been
    racking my brain for days now and I sure it is something simple
    that I am missing. Thanks in advance.
    See the example code below.
    the application code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    width="100%"
    height="100%"
    initialize="ws.getMethod1.send()"
    xmlns:output="com.comp.*">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    [Bindable]
    public var thisWsdl:String = '
    http://localhost/webservice/service.cfc?wsdl';
    ]]>
    </mx:Script>
    <mx:WebService id="ws"
    wsdl="{thisWsdl}"
    useProxy="false"
    showBusyCursor="true"
    fault="Alert.show(event.fault.faultString, 'Error');"
    concurrency="multiple" requestTimeout="30">
    <mx:operation name="getMethod1">
    <mx:request>
    <param1>{param1data}</param1>
    <param2>{param2data}</param2>
    <param3>{param3data}</param3>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:Accordion width="100%" height="100%"
    fillColors="[#808080, #808080]">
    <mx:Repeater id="rp"
    dataProvider="{ws.getMethod1.lastResult}">
    <mx:VBox label="{String(rp.currentItem.catname)}"
    backgroundColor="#C0C0C0" width="100%" height="100%"
    paddingRight="10">
    <output:comp catid="{rp.currentItem.catid}"/>
    </mx:VBox>
    </mx:Repeater>
    </mx:Accordion>
    </mx:Application>
    the component code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%"
    height="100%"
    focusIn="ws.getMethod.send()"
    horizontalAlign="center"
    backgroundColor="#FFFFFF">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    [Bindable]
    public var thisWsdl:String = '
    http://localhost/webservice/service.cfc?wsdl';
    [Bindable]
    public var catid:int;
    ]]>
    </mx:Script>
    <mx:WebService id="ws"
    wsdl="{thisWsdl}"
    useProxy="false"
    showBusyCursor="true"
    fault="Alert.show(event.fault.faultString, 'Error');"
    concurrency="multiple" requestTimeout="30">
    <mx:operation name="getMethod2">
    <mx:request>
    <catid>{catid}</catid>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:DataGrid id="itemGrid"
    dataProvider="{ws.getMethod2.lastResult}" width="700"
    height="250">
    <mx:columns>
    <mx:DataGridColumn width="100" dataField="itemid"
    headerText="Item Id"/>
    <mx:DataGridColumn wordWrap="true" dataField="itemname"
    headerText="Item Name"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:VBox>

    Perhaps you could use the change event of the accordion, or
    the show event of the child containers?
    Tracy

  • Matrix report data with summary column in excel format

    Hi ,
    I want to display output of matrix report with summary column in excel format.
    I have tried using spreadsheet but column header and actual data is displaying in proper order.
    Please tell me the way how to do this ASAP.
    Thanks in advance.

    Hi ,
    I want to display output of matrix report with summary column in excel format.
    I have tried using spreadsheet but column header and actual data is displaying in proper order.
    Please tell me the way how to do this ASAP.
    Thanks in advance.

  • Accordion with spry data on IE8

    Hi,
    I have an accordion with spry data and everything works fine on IE8 and FF, but on IE8 when i click on a accordion tab it doesnt focus on that open panel. It takes me at the very top of where my accordion begins. I notice the same thing happens to the accordion with spry data site. It's a problem for me because my page has a long accordion and our users have small laptop screens. Does anyone know how this can be fixed in IE8?
    Sorry i dont have a sample link or code, because it's on our company intranet. but i used the exact same method on the spry accordion with data page.
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample2.html
    thanks!

    Good. I am sure you can figure it out.
    http://labs.adobe.com/technologies/spry/articles/pager/index.html
    Let us know.
    Donald Booth
    Adobe Spry Team

  • Spry accordion with nested accordions

    I'm building an FAQ list with topics and sub topics, using a
    containing Spry accordion with multiple children, though just the
    one extra level deep. The nested accordions won't expand the full
    list. Instead, the div height remains fixed, and I get a scroll
    bar. Any ideas what part of the javascript to tweak to open up this
    functionality?
    Here's the page:
    http://www.pixmission.net/dev/tex/faqs.htm
    thanks

    alancymru escribió:
    > I'm building an FAQ list with topics and sub topics,
    using a containing Spry
    > accordion with multiple children, though just the one
    extra level deep. The
    > nested accordions won't expand the full list. Instead,
    the div height remains
    > fixed, and I get a scroll bar. Any ideas what part of
    the javascript to tweak
    > to open up this functionality?
    >
    > Here's the page:
    >
    http://www.pixmission.net/dev/tex/faqs.htm
    >
    > thanks
    >
    Sure! It has to be done in two parts. First part from your
    SpryAccordion.css file and the second it is adding a new
    property to the
    Accordion object when it’s initialized.
    First part:
    Select .AccordionPanelContent class
    Delete Height property
    Change the value of overflow from auto to hidden;
    Second part:
    In the constructor function at the bottom of your faqs.htm
    file, amend
    this code:
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    var Accordion9 = new Spry.Widget.Accordion("Accordion9");
    to this:
    var Accordion1 = new Spry.Widget.Accordion("Accordion1",
    {useFixedPanelHeights:false});
    var Accordion9 = new Spry.Widget.Accordion("Accordion9",
    {useFixedPanelHeights:false});
    Hope this helps.

  • Spry Accordion with custom scrollbar

    I'm trying to find a Spry Accordion with a custom scrollbar.
    There are other accordion scripts out there but I am most
    comfortable working with the Spry script. I cant seem to find any
    of these with a custom scrollbar. Can someone here help?

    Mr. Andersson wrote:
    > I'm trying to find a Spry Accordion with a custom
    scrollbar. There are other
    > accordion scripts out there but I am most comfortable
    working with the Spry
    > script. I cant seem to find any of these with a custom
    scrollbar. Can someone
    > here help?
    Spry has no custom scroll bars. Currently Spry (as of 1.6.1)
    doesn't have drag and drop which would be required for a custom
    scroll bar. Best you might be able to do would be to try to style
    the browser provided scroll bars, but that's not valid CSS, and I
    know that Firefox doesn't show the styled scrollbars (IE does).
    Take a look at this page in IE:
    http://www.iconico.com/CSSScrollbar/
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Accordion with variable height

    Hi -
    I have a 2-panel accordion with variable heights, and spry
    data in both the top and bottom panels. Selections made in the top
    panel will load data into the bottom panel, and the page opens to
    the top panel by default. My problem is that the bottom panel will
    only display enough height to show the initial HTML markup, and not
    the spry data generated after the initial page load. Is there any
    way to use an observer to "refresh" the accordion to reset its
    height to accommodate the new data?
    Also, is there a way to require that at least one panel
    remain open when using variable heights?
    Thanks in advance,
    Rod

    Hi,
    We have a similar question on this
    post.
    To fit exactly with your request you should change the line:
    regionHeight =
    document.getElementById("myRegion").scrollHeight;
    with:
    document.getElementById("myRegion").style.height =
    document.getElementById("myRegion").scrollHeight + 'px';
    Diana

  • Exporting Photos with Summary Information

    I want to export photos with summary information such as ISO, F setting, shutter speed, ect. For some reason this information is not exporting now. I recently replaced my hard drive and had to redownload LR3 software. Does anyone know what setting I need to adjust so this infor exports with the photo?
    Thanks, Paul

    Thanks Dorin, I was reducing the size of the files in LR3 which was removing
    the information. I'm using Microsift Office Picture Manager to reduce the size of the picture before posting on Treknature. Picture Manager keeps the information, even if I reduce the size of the pic.
    Thanks for the help.
    Paul

  • Dynamically  loading   Accordion  with  Hierarchical XML

    Hi
         I need to construct a layout where i need to populate Accordion with an hierarchical XML.
         As i am new to flex, Kindly guide me .
    Regards,
    Rajesh S

    We need more info. Please give a sample of your data and a simple yet complete description of how it should be used to populate your UI.
    If this post answers your question or helps, please mark it as such.

  • Hyperion planning data form in smartview: problem with summary time period

    We are using Planning ver. 11.1.2.2.300.20 and smartview 11.1.2.2.300 (build 070)
    We use common Data Form:
    In columns: Periods (Descendants including YearTotal - with no checkbox on start expanded)
    In Rows :accounts
    In some of our users computers,
    When they open Data Form in Excel (with Smart View) - its appears very strange:
    Summary Accounts are displayed as level 0 account in the summary Period columns (i.e. not in grey) and permit entering data.
    In addition when Entering data in summary time period (i.e. Year or Quarter),
    strangely,  the data doesn't  spread to the descendants months (level 0) .
    This phenomenon occurs just in few of the computers.
    Please help, how can we overcome this problem?
    Thanks and Regards
    Tami Kedem

    Hi Celvin,
    Thanks for your rapid response!
    All computers have the same version of planning and smartview.
    The computers where the Periods spreading and aggregation properties in Data form are not working,
    do work wonderfully when opening the Data forms in the web.
    I've tried everything, (remove suppressing, validations etc.):
    In all kind of data forms the spreading and aggregation properties on summary time periods are not working in smartview -
    and summary accounts on rows are not displayed in grey and permit entering data.
    We remove and reinstall MS-Office (2007) from the problematic computers, but it didn't help.
    Do you know if there is any kind of settings or softwares that might cause this phenomenon
    i.e. interrupts the smartview translation of the web Data Forms.
    Thank and best regards,
    Tami Kedem

  • Accordion with defaultPanel other than 0

    I have tried setting the defaultPanel option in the
    constructor, with little luck. I looked at the SpryAccordion.js
    file [1.6] and noticed this.defaultPanel = 0; , so I changed the 0
    value to 1 and tested with my constructor set to 1 as well and it
    worked...
    How or to what can I change in the js this.defaultPanel = 0;
    so that the only real change is in the accordion constructor?
    I thought this.defaultPanel = "defaultPanel"; would do the
    trick but no luck. Any suggestions, and if I missed this in the
    forum I am sorry I thought I read "all" before writing. All else
    has been a breeze, thanks.
    Below is a sample with the default set to 1 and the construct
    set to 1.
    accordion
    test for second panel

    Hi r33sm4n,
    Did you check the
    Accordion
    samples?
    There is an example explaining how to set the default open
    panel.
    As a general rule, you don't have to change anything in the
    Spry JS files. They are ready for use out of the box.
    All you have to do is to pass to the constructor the
    defaultValue option set to the desired panel (0-based).
    Also, check your code as I saw that you define the same
    accordion two times, once with a defaultPanel and once without it.
    You have to define it only once.
    -- Florin

  • Problem with SUMMARY

    When I try using the Service SUMMARY, the application Devon Think on my computer opens. The summary created is very short and ends mid-sentence. Why is Devon Think opening? When I put DevonThink in the trash, Summary did not work saying that Devon Think could not be found! The Devon icon is even next to the Summary listing in Services.

    Well, after playing around with the Services settings, undoing some, resetting to default, then activating Summary again, now all of a sudden it's working properly! Now the Devon icon is not showing next to Summary, but it looks like TextEdit's icon (I think). At any rate, it's working.
    Frank

Maybe you are looking for

  • Writing IPTC Metadata to Masters

    I know some of this has been discussed, but I've got a few more questions on the topic. To ensure my captions, keywords, and location information is always available no matter what cataloging software I use, I wish to write my IPTC metadata to the ma

  • Setting up ISA B2B in ECC 6.0

    Hi, I need to setup ISA B2B in my ECC 6.0 system...however I'm not sure where to begin:( I read that a seperate IPC component is not reqd...since IPC is now part of SAP_AP 7.00.. Pls. help. Thanks, Saba.

  • Enterprise Mgr works with one db but not the other

    Hi We have two Oracle 10g databases installed. Enterprise Manager works with the second, but not the first. I believe the problem started when we migrated the host server to another network domain. Everything else works fine, but I'm getting a page l

  • Will there be a fix for the Note 3 signal issues any time soon?

    I have a Note 3 and I am absolutely furious at Verizon. I previously had a Galaxy S4 and after an update it basically became useless in my home. It was working just fine then one day it is a brick basically. Verizon knew about the issue as the know a

  • Keep getting crashes with EXC_BAD_ACCESS - tried everything

    Dear BB'ers, Having tried everything I have seen in the BB's and I need advice on what to do next. I keep getting application crashes with the following log entry: Exception: EXCBADACCESS (0x0001) Codes: KERNINVALIDADDRESS (0x0001) at 0x0bbbe000 (Toa