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

3 posts, 0 answers
  1. Bylar
    Bylar avatar
    8 posts
    Member since:
    Jul 2012

    Posted 23 Jan 2012 Link to this post

    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. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 26 Jan 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Bylar
    Bylar avatar
    8 posts
    Member since:
    Jul 2012

    Posted 27 Jan 2012 Link to this post

    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
Back to Top