Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can the ShapeListBox group shapes into collapsable sections? (Read 2637 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Can the ShapeListBox group shapes into collapsable sections?
Feb 17th, 2014 at 7:32pm
Print Post  
Hi,

Just starting to play with canvas mode and using the ShapeListBox.
It would be nice to be able to group shapes by category like BPMN, Flowchart, Custom etc.  Ideally we'd like to be able to expand/collapse these groups. 

Is there a technique that you could recommend to accomplish this.

Thanks

Jim
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can the ShapeListBox group shapes into collapsable sections?
Reply #1 - Feb 18th, 2014 at 11:22am
Print Post  
Hi,

There is no built-in support for grouping. For this and expand / collapse, you could use any Accordion-type control to show several ShapeListBoxes, each displaying only a subset of the shapes via ShapeFilter:

Code
Select All
<ui:AccordionItem ID="AccordionItem1" runat="server" Title="BPMN shapes">
    <Template>
        <ndiag:ShapeListBox ID="ShapeListBox1" runat="server" ImageLocation="" Style="background-color: white"
            ClientSideMode="Canvas">
            <ndiag:StringItem Text="BpmnComplex" />
            <ndiag:StringItem Text="BpmnDataBasedXor" />
            <ndiag:StringItem Text="BpmnEndCancel" />
            <ndiag:StringItem Text="BpmnEndCompensation" />
            <ndiag:StringItem Text="BpmnEndError" />
            <ndiag:StringItem Text="BpmnEndLink" />
        </ndiag:ShapeListBox>
    </Template>
</ui:AccordionItem> 



This example shows that using the Accordion control from our WebForms pack:
https://mindfusion.eu/_samples/GroupedShapes.zip

I hope that helps,
Stoyan
« Last Edit: Feb 18th, 2014 at 1:24pm by Stoyo »  
Back to top
 
IP Logged
 
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: Can the ShapeListBox group shapes into collapsable sections?
Reply #2 - Feb 18th, 2014 at 7:09pm
Print Post  
Hi Stoyan,

Great!  Just what I wanted.
I was not aware that you could have more than 1 ShapeListBox on a page.  I used an "accordion style" control that we already have in our toolkit.

Jim  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint