This is a migrated thread and some comments may be shown as answers.

Selected Items

1 Answer 56 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Dharmesh Trivedi
Top achievements
Rank 1
Dharmesh Trivedi asked on 26 Nov 2009, 02:30 PM
I have Rad Panel  Bar and within that I have checkboxes which are bind to the database
<telerikNavigation:RadPanelBar   x:Name="Category"  Margin="5" Width="375" BorderBrush="#9098a3"
                                    BorderThickness="1" HorizontalAlignment="Left" ScrollViewer.VerticalScrollBarVisibility="Auto">
                                <telerikNavigation:RadPanelBarItem IsExpanded="False" x:Name="CateogryExpand" Expanded="Category_Expanded">
                                    <telerikNavigation:RadPanelBarItem.Header>
                                        <TextBlock Text="Category" Height="13" Margin="5 2 5 2" />
                                    </telerikNavigation:RadPanelBarItem.Header>
                                <telerikNavigation:RadPanelBarItem.ItemTemplate  >
                                    <DataTemplate>
                                        <StackPanel VerticalAlignment="Center">
                                            <CheckBox x:Name="categorylistname" Content="{Binding Title}" Foreground="Black" Margin="6" FontFamily="Arial">
                                            </CheckBox>
                                        </StackPanel>
                                    </DataTemplate>
                                </telerikNavigation:RadPanelBarItem.ItemTemplate>
                                     
                                </telerikNavigation:RadPanelBarItem>
                            </telerikNavigation:RadPanelBar>


When user click on the Button , i would like to find out how many items checked in above. How can I find that out.
Your help is appreciated.
Thanks

1 Answer, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 30 Nov 2009, 04:54 PM
Hi Dharmesh,

I prepared a sample that demonstrates how to count the checked items in the scenario that you described. Please take a look at it and let me know if it helps.

Regards,
Tihomir Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
PanelBar
Asked by
Dharmesh Trivedi
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Share this question
or