Good Day Telerik Team
in Asp.net Ajax we used to have a Combo-box that can contain multiple columns. when we could just add items like check-boxes like this demo
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx
when are you planning to do this ? Because the current Combo-box its a bit ordinary
Thanks
in Asp.net Ajax we used to have a Combo-box that can contain multiple columns. when we could just add items like check-boxes like this demo
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx
when are you planning to do this ? Because the current Combo-box its a bit ordinary
Thanks
3 Answers, 1 is accepted
0
Hi Vuyiswa,
Thank you for contacting us.
We already have this feature in our development plans, but for now I cannot give you a certain timeframe when it is going to be ready. Meanwhile, I can suggest you to refer to this forum discussion where you can find a sample project illustrating how this can be achieved.
Hope this information helps. Please let us know if you have further questions.
Kind regards,
Konstantina
the Telerik team
Thank you for contacting us.
We already have this feature in our development plans, but for now I cannot give you a certain timeframe when it is going to be ready. Meanwhile, I can suggest you to refer to this forum discussion where you can find a sample project illustrating how this can be achieved.
Hope this information helps. Please let us know if you have further questions.
Kind regards,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vuyiswa
Top achievements
Rank 2
answered on 06 Apr 2011, 12:51 PM
Good Day
i looked at the example, i am not sure what is wrong with it. but i can visuall see the example control declared on the xaml. but i have created something interesting here. my xaml looks like this
and i am creating the items at runtime, but in my real app i am going to get the items from the database , so iw ill be binding this to an object and currently i am binding it like this
NOw i want to get the value path of the selected checkbox that being created onfly.
Thanks
i looked at the example, i am not sure what is wrong with it. but i can visuall see the example control declared on the xaml. but i have created something interesting here. my xaml looks like this
<
telerik:RadSplitButton
HorizontalAlignment
=
"Left"
IsChecked
=
"False"
IsOpen
=
"False"
Margin
=
"60,79,0,0"
Name
=
"radSplitButton1"
Width
=
"204"
Height
=
"27"
VerticalAlignment
=
"Top"
>
<
telerik:RadSplitButton.DropDownContent
>
<
ListBox
x:Name
=
"lstAllergies"
SelectionChanged
=
"lstAllergies_SelectionChanged"
>
<
ListBox.ItemsPanel
>
<
ItemsPanelTemplate
>
<
telerik:RadWrapPanel
x:Name
=
"Panelcheckbox"
Width
=
"180"
Orientation
=
"Horizontal"
/>
</
ItemsPanelTemplate
>
</
ListBox.ItemsPanel
>
</
ListBox
>
</
telerik:RadSplitButton.DropDownContent
>
</
telerik:RadSplitButton
>
and i am creating the items at runtime, but in my real app i am going to get the items from the database , so iw ill be binding this to an object and currently i am binding it like this
//Add the Checkboxes
for
(
int
i=0 ; i < 8 ; i++)
{
CheckBox chkbox =
new
CheckBox();
chkbox.Name =
"Allergy_"
+ i;
chkbox.Content =
"Allergy_"
+ i;
lstAllergies.Items.Add(chkbox);
}
NOw i want to get the value path of the selected checkbox that being created onfly.
Thanks
0
Hello Vuyiswa,
I am not sure whether i understand your issue correctly. However, since you define CheckBoxes on top of the ListBoxItems (by populating the ListBox.Items collection with CheckBoxes), when you select a CheckBox the ListBox.SelectionChanged event won't befired since the underlying ListBoxItem cannot detect the LeftMouseButton event which indicates the selection. This is caused by the fact that the CheckBox handles this event instead.
Therefore you can define the ListBoxItems like so:
Give this a try and let us know if it works for you.
Greetings,
Tina Stancheva
the Telerik team
I am not sure whether i understand your issue correctly. However, since you define CheckBoxes on top of the ListBoxItems (by populating the ListBox.Items collection with CheckBoxes), when you select a CheckBox the ListBox.SelectionChanged event won't befired since the underlying ListBoxItem cannot detect the LeftMouseButton event which indicates the selection. This is caused by the fact that the CheckBox handles this event instead.
Therefore you can define the ListBoxItems like so:
<
telerik:RadSplitButton
HorizontalAlignment
=
"Left"
IsChecked
=
"False"
IsOpen
=
"False"
Margin
=
"60,79,0,0"
Name
=
"radSplitButton1"
Width
=
"204"
Height
=
"27"
VerticalAlignment
=
"Top"
DropDownContent={Binding Allergies}>
<
telerik:RadSplitButton.DropDownContentTemplate
>
<
DataTemplate
>
<
ListBox
ItemsSource={Binding}
SelectionChanged
=
"SelectionChanged"
>
<
ListBox.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation="Horizontal">
<
CheckBox
/>
<
TextBlock
Text={Binding Name}/>
</
StackPanel
>
</
DataTemplate
>
</
ListBox.ItemTemplate
>
</
ListBox
>
</
DataTemplate
>
</
telerik:RadSplitButton.DropDownContentTemplate
>
Give this a try and let us know if it works for you.
Greetings,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items