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

how to return selected item in checkobox..

1 Answer 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
gautham
Top achievements
Rank 1
gautham asked on 05 Dec 2010, 02:20 PM

My question is very simple ...

in Xaml I have

here my Check box is dynamically created so if user selects more than one item in check box what could be the codebehind  I need to pass the list of userid wich are been selected... I think it should be ........listuserid.selectedvalues   

please answer to this question?

<ListBox x:Name="listuserid" Grid.Column="3" BorderThickness="0" Margin="2,67,-101,66" Grid.RowSpan="3" Background ="Transparent">

  <ListBox.ItemTemplate>

        <DataTemplate >

 

               <StackPanel Grid.Column="2" HorizontalAlignment="Right" Margin="0,1,-1,11" Width="267" Grid.RowSpan="2" Grid.ColumnSpan ="2">

                   <CheckBox x:Name="chkbox1" Margin=" 10,15,15,10" Content="{Binding userid1}" Padding ="4,-4,0,0"/>

 

 

 

 

                </StackPanel >

 

 

           </DataTemplate >

 

   </ListBox.ItemTemplate >

 

</ListBox >

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 06 Dec 2010, 08:32 AM
Hello gautham,

In order to provide you with a suitable solution, I would need a bit more details about your exact scenario. When exactly do you want to save the list of selected items ?  Which RadControl are you using ? What is the implementation of your business object ? 

Kind regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
General Discussions
Asked by
gautham
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or