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

Checkbox inside the RadComboBox and html placeholder on same page display Issue

2 Answers 206 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bylar
Top achievements
Rank 1
Bylar asked on 23 Jan 2012, 06:15 PM
Hi,

I have a radcombobox with checkbox and html placeholder on the page. I am facing few issues on this p[age :-
1) I have set the default item <-Select any-> on radcombobox. I want to remove the checkbox with this default item.
2) On checkbox_checked event i have store the text inside the stringBuilder and display on combobox.Text its working fine similarly i want this functionality on selection_Changed event .
3) i have placed the radcombobox and html placeholder inside the stackPanel but different Canvas. i have set the property Canvas.ZIndex="2" for html placeholder and Canvas.ZIndex="10" for radcombobox. I want to show the radcombobox item over the html placeholder and radcombobox item back color -" black" but my silverlight application shows html placeholder over the radcombobox.

Please see  the attacheed file.

I appreciate any help or suggestions on this.

Thanks,
M. Anderson

2 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 26 Jan 2012, 03:48 PM
Hello,

1. All the items in the combobox have the same template, that's why I would suggest to try to bind Visibility property of the checkbox and use some ValueConverter.

2. You could update the IsSelected property of the item in SelectionChanged event handler.

I've attached an example demonstrating how you can implement both requirements, please download it and give it a try.

3. HtmlPlaceholder control is rendered over the Silverlight plugin, so it is not possible to show the combobox over it.

Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Bylar
Top achievements
Rank 1
answered on 27 Jan 2012, 07:37 AM
Hi Yana,

Thanks for your reply on my query. I was trying the code suggested by you but could not found the exact solution of my problem.
Instead of combobox i am using the new control RadDropDownButton. its solved my issues.
Please see the code below.... how the RadDropDownButton resolved combobox issues.

 <telerik:RadDropDownButton x:Name="ddbtT" Content="- Select Sample -" DropDownPlacement="Top"  Width="200" Height="20" VerticalAlignment="Top" HorizontalAlignment="Left">
            <telerik:RadDropDownButton.DropDownContent>
                <ListBox x:Name="cmbSearchTemplate"  Width="200" Height="100" ScrollViewer.VerticalScrollBarVisibility="Visible" ItemsSource="{Binding TList}">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <CheckBox  Tag="{Binding TID}" Name="chkT" Click="chkTList_Click"  Content="{Binding TName}" />
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </telerik:RadDropDownButton.DropDownContent>
        </telerik:RadDropDownButton>

Thanks,
M. Anderson
Tags
ComboBox
Asked by
Bylar
Top achievements
Rank 1
Answers by
Yana
Telerik team
Bylar
Top achievements
Rank 1
Share this question
or