Hi Telerik Team,
I have used RAD:ListBox Control. I want to set the height of Listbox based on the height of the ListBoxItems of First 15items(Items Template I have used for Items Display). Any idea to implement this behavior.
Thanks,
Kishore Kumar
Hi,
We have RadListBox control with custom ItemTemplate and ItemsPanelTemplate as VirtualizingWrapPanel. For example, in the case when the count of bound items is equal to 30k and a user wants to "Select all" with Ctrl+A, the program hangs for almost 5 seconds.
I made an investigation and found, that the issue related to a check statement "does this item present in collection" inside SelectionChanger and it takes more than 92% of the execution time.
I am attaching the call tree after performance profiling:
Do you have any workaround for that or any good advice on how the issue might be solved?
Thank you in advance!
BR,
Andrew
I need to remove all Telerik styling. I've downloaded source code and replaced all templates and styles but the orange color persists.
Inside the RadAutoCompleteBox I see a RadListBox named PART_ListBox which has a DropDownItemTemplate. I can't figure out how to utilize this. Here's an example:
<Border Background="White" BorderBrush="White"> <TextBlock Background="White" Foreground="Black" Text="{Binding}" /> <Border.Resources> <SolidColorBrush x:Key="ControlOuterBorder_Highlighted" Color="LightGray" /> <SolidColorBrush x:Key="ControlInnerBorder_Highlighted" Color="LightGray" /> <SolidColorBrush x:Key="ControlBackground_Highlighted" Color="#F6F6F6" /> <SolidColorBrush x:Key="ControlSubItem_OuterBorder_Selected" Color="#F6F6F6" /> <SolidColorBrush x:Key="ControlSubItem_InnerBorder_Selected" Color="#F6F6F6" /> <SolidColorBrush x:Key="ControlSubItem_Background_Selected" Color="#F6F6F6" /> <SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#F6F6F6" /> </Border.Resources> </Border>
Issues:
1. TextBlock still has an orange border on hover. I tried adding all the resources I could find in the Telerik source code to hopefully override this. No luck.
2. The text displays the class name. The {Binding} is calling ToString() on the class. I need to display the DisplayMemberPath. I can't do {Binding Name} because I have dozens of classes that could go in here.
Hi,
I have a project where I need to be able to drag a ListBox Item to a different ListBox. If I dont populate the second Listbox with anything; then when I drop the item, it just disappears. When I have at least 1 Item in the second ListBox then I get "'Element already has a logical parent. It must be detached from the old parent before it is attached to a new one". I need to be able to do this as well as add a prefix to each added item eg: "A - FirstItem" and "B - SecondItem".
I tried using the Converter class too but it doesnt seem to work. It is important to note that I have tried this method using Binding as well as just dynamically adding objects to the Listbox. Nothing works. Attached is all the images from my sample project needed to diagnose my issue.
Please Help
Thank you,
Dean.
Hello.
I've attached some examples.
Hi all,
I have a RadListBox inside a RadExpander. I can't get the notify of SelectedItem, SelectedValue etc
How can manage the selection in this scenario.
Thank you in advance
Luigi
<DataTemplate x:Key="PanelBarCursorTemplate">
<t:RadExpander t:AnimationManager.IsAnimationEnabled="True">
<t:RadExpander.Header >
<StackPanel Orientation="Horizontal" >
<CheckBox Margin="10 5 5 5" VerticalAlignment="Center" IsChecked="{Binding IsChecked}"/>
<TextBlock Text="{Binding Name}" VerticalAlignment="Center" />
<TextBlock Text="{Binding Internal.PositionX, StringFormat={StaticResource ResourceKey=StringFormatTime}}" VerticalAlignment="Center" Margin="5 0"/>
</StackPanel>
</t:RadExpander.Header>
<t:RadExpander.Content>
<StackPanel Orientation="Vertical" Margin="5 0 0 0" VerticalAlignment="Center">
<t:RadGridView ItemsSource="{Binding Internal.PositionsY}"
AutoGenerateColumns="False"
ShowColumnHeaders="False"
ShowColumnFooters="False"
ShowGroupPanel="False"
ShowScrollPositionIndicator="False"
ShowSearchPanel="False"
IsReadOnly="True">
<t:RadGridView.Columns>
<t:GridViewDataColumn DataMemberBinding="{Binding ParameterName}" Width="50"/>
<t:GridViewDataColumn DataMemberBinding="{Binding ParameterValue}" Width="50"/>
</t:RadGridView.Columns>
</t:RadGridView>
<!--<TextBlock Text="{Binding Internal.PositionY, StringFormat={}{0:F4}}"
Visibility="{Binding PositionYVisibility, Converter={StaticResource BoolToVis}}"/>-->
</StackPanel>
</t:RadExpander.Content>
</t:RadExpander>
</DataTemplate>
<t:RadDocking>
<t:RadDocking.DocumentHost>
<StackPanel>
<t:RadListBox ItemsSource="{Binding TabRisultati.Cursori}"
ItemTemplate="{StaticResource PanelBarCursorTemplate}"
SelectionMode="Single"
SelectedItem="{Binding TabCursori.SelectedCursor}"/>
</StackPanel>
</t:RadDocking.DocumentHost>
</t:RadDocking>
Hello.
I would like to ask about the Check All function in using listbox.
I usually leave Check All aside.
But when I looked at the sample of ASP.NET (Teleik), I saw that they were tied together.
Is this even possible in WPF? What conditions are required for that?
Thanks.