C1multiselect different display for checklist opened

Posted by: d.pitzen on 25 July 2022, 10:53 pm EST

    • Post Options:
    • Link

    Posted 25 July 2022, 10:53 pm EST

    Hello,

    I want different data to be displayed when the checklist is open than when it is closed. For example, if the list is open, name and phone number, and if the list is closed, only the name. What are the options?

    Many Thanks

    Best regards Dominic

  • Posted 26 July 2022, 5:05 pm EST

    Hi,

    You can set DisplayMemberPath to display the content for CheckList and set the TagStyle to display the Tags content as:

    
    <Style x:Key="tagStyle" TargetType="c1:C1Tag">
                <Setter Property="ContentTemplate">
                    <Setter.Value>
                        <DataTemplate>
                            <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type c1:C1Tag}},Path=Tag.Name}"/>
                        </DataTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
    
    

    Please refer the attached sample for the same : C1MultiSelectDemo.zip

    Best Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels