Telerik Forums
UI for WPF Forum
1 answer
271 views
Hi
we are  trying to override RadAutoComplete default style. (right click on the control in Document outline window=> Edit Template => Edit A copy)
We would like that the RadListBox Popup that appears when a text is being typed in the RadAutoCompleteBox will have a different style.
(The new popup template will be => TextBlock as a Header than the RadListBox then TextBlock as a footer).
The  RadAutoCompleteBox is binded the to a ObservableCollection.
The problem is that the when we try to override the default style (we haven't change it yet, we just use it) no values appear in the  ListBox.
If we don't  override the default style the RadAutoComplete  works fine.
Can you help us solve the problem?

(this section will be overrided to achieve the desired behavior:
    <Popup x:Name="PART_Popup">
                                <Grid x:Name="PopupRoot">
                                    <telerik:RadListBox x:Name="PART_ListBox" CanKeyboardNavigationSelectItems="{x:Null}" IsTabStop="False" ItemTemplate="{TemplateBinding DropDownItemTemplate}" IsTextSearchEnabled="True" MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding MinDropDownWidth}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" SelectedValueBinding="{x:Null}" TextBinding="{x:Null}" KeyboardNavigation.TabNavigation="Once">
                                        <telerik:StyleManager.Theme>
                                            <telerik:Office_BlackTheme/>
                                        </telerik:StyleManager.Theme>
                                    </telerik:RadListBox>
                                </Grid>
                            </Popup>


)





 

Masha
Telerik team
 answered on 21 Feb 2013
4 answers
127 views
Hello Support,
I have very serious issue with breadcrumb performance, I have created Windows file explorer like utility and displaying hierarchical structure in breadcrumb. It works fine until I browse a folder which contains more than 10K folder, the UI freezes every time and it takes lot of time to list folders in breadcrumb.

I am wondering why breadcrumb does not support virtualization out of the box? and what is the workaround forit.

Any help is appreciated.
thanks,
earthcaller
Stefan
Telerik team
 answered on 21 Feb 2013
1 answer
183 views
Hi there,

Is there a way to show the value of the pie slice along with the label in the RadPieChart.

Thanks,
wade
Evgenia
Telerik team
 answered on 21 Feb 2013
1 answer
86 views
I have been able to add the charttrackballbehavior, but all i get is a small rounded rectangle at the top of my page, when I mouse-over the chart. I read something about adorners, would it be possible that one of my own adorners is somehow interfering, or is this behavior simply not supported for the polarchart?
Nikolay
Telerik team
 answered on 21 Feb 2013
1 answer
131 views
I currently use the WinForms property grid with a RadPropertyStore - is there a simple migration path in order to be able to use the WPF one, or is it a case of modifying code and maintaining two separate code bases for the WPF and WinForms versions (as I will need to retain the WinForms functionality)?

Thanks

Matt
Vlad
Telerik team
 answered on 21 Feb 2013
4 answers
227 views
Hello. I have big problem with gridView perfomance. I have my MDI container like - Grid->ScrollViewer -> Canvas. I add ContentControls to the canvas. ContenControls has next structure: Grid -> Grid -> RadBusyIndicator -> GridView. All grids has Height="*". I read next article - http://www.telerik.com/help/silverlight/gridview-troubleshooting-performance.html and I have question. Can ScrollViewer slow my GridView?
Sergey
Top achievements
Rank 1
 answered on 20 Feb 2013
2 answers
547 views
I am using a RadAutoCompleteBox to list/select an assigned user to an object. The data is unbound and the itemssource is generated by polling an Active Directory tree. When an item is selected, the value is stored in the property of the datacontext as the principal's SID. My problem is that when I later access the object, I cannot set the SelectedItem of the RadAutoCompleteBox to one of the principals in the list and I have to resort to setting the SearchText which still pops up the suggested values when the control receives focus. I would like to be able to set the SelectedItem instead so this does not happen.

In the Page.xaml
<telerik:RadAutoCompleteBox
    x:Name="PrincipalAutoCompleteBox"
    WatermarkContent="Select a principal"
    TextSearchMode="Contains"
    AutoCompleteMode="SuggestAppend"
    SelectionMode="Single"
    TextSearchPath="Name"
    DropDownItemTemplate="{StaticResource ResourceKey=DSPrincipalAutoComplete}"
    DropDownWidth="Auto"
    FilteringBehavior="{StaticResource ResourceKey=CustomFilteringBehaviour}"
    GotFocus="PrincipalAutoCompleteBox_GotFocus"
    KeyDown="PrincipalAutoCompleteBox_KeyDown"
    Populated="PrincipalAutoCompleteBox_Populated"
/>

In the Page.xaml.vb
Private Sub PrincipalAutoCompleteBox_GotFocus(sender As System.Object, e As System.Windows.RoutedEventArgs)
  Dim autoComplete As RadAutoCompleteBox = DirectCast(sender, RadAutoCompleteBox)
  Dim searchString As String = autoComplete.SearchText
  If autoComplete.SelectedItem IsNot Nothing Then
    searchString = BindingExpressionHelper.GetValue(autoComplete.SelectedItem, autoComplete.DisplayMemberPath).ToString()
  End If
  autoComplete.IsDropDownOpen = False
  autoComplete.Populate(searchString)
End Sub
  
Private lastFilteredItems As IEnumerable(Of Object)
Private Sub PrincipalAutoCompleteBox_KeyDown(sender As System.Object, e As System.Windows.Input.KeyEventArgs)
  Dim autoCompleteBox As RadAutoCompleteBox = DirectCast(sender, RadAutoCompleteBox)
  If e.Key = Key.Tab AndAlso e.Handled = False AndAlso autoCompleteBox.SelectedItem Is Nothing Then
    If lastFilteredItems.Count = 1 Then
      autoCompleteBox.SelectedItem = lastFilteredItems.OfType(Of Object).FirstOrDefault
    Else
      autoCompleteBox.SearchText = Nothing
    End If
  End If
End Sub
  
Private Sub PrincipalAutoCompleteBox_Populated(sender As System.Object, e As System.EventArgs)
  Me.lastFilteredItems = DirectCast(sender, RadAutoCompleteBox).FilteredItems
End Sub

And the custom filter
Public Class CustomFilteringBehaviour
  Inherits Telerik.Windows.Controls.FilteringBehavior
  
  Public Overrides Function FindMatchingItems(searchText As String, items As System.Collections.IList, escapedItems As System.Collections.Generic.IEnumerable(Of Object), textSearchPath As String, textSearchMode As Telerik.Windows.Controls.TextSearchMode) As System.Collections.Generic.IEnumerable(Of Object)
    If String.IsNullOrEmpty(searchText) Then
      Return items.OfType(Of Object).Where(Function(x) Not escapedItems.Contains(x))
    Else
      Return MyBase.FindMatchingItems(searchText, items, escapedItems, textSearchPath, textSearchMode)
    End If
  End Function
End Class

Finally, the code where I populate the the list and attempted to preselect an item based on the datacontext
'^-- principalList As ObservableCollection(Of DSPrincipal) and then populated from AD
PrincipalAutoCompleteBox.ItemsSource = principalList
For Each principal As DSPrincipal In principalList
  If principal.Sid = DirectCast(Me.DataContext, MyObject).Principal.SID Then
    'v-- What I tried to do but it threw an error
    'PrincipalAutoCompleteBox.SelectedItem = principal
    'v-- What I ended up doing
    PrincipalAutoCompleteBox.SearchText = _principal.Name
    Exit For
  End If
Next

Is it possible to set SelectedItem in some way? Would binding SelectedItem to the property allow it to display automatically when the datacontext changes? What I have works but I would like a consistant experience for my user where the suggested items do not pop up when the value has been set previously.

Thanks,
Jason
Jason
Top achievements
Rank 1
 answered on 20 Feb 2013
1 answer
161 views
Hi,
I have applied a converter to DataMemberBinding, but filter doesn't take this converter into account..
Checkboxes that appear in filtering control shows the values that are displayed (after calling converter), but typing the same values in textbox that is shown below doesn't filter on those displayed values.

Is there a way to achieve the filtering based on the converted values from the textbox.

Thanks,
Pankaj
Dimitrina
Telerik team
 answered on 20 Feb 2013
4 answers
1.1K+ views
How to apply converter to  a GridViewDataColumn??
I have a column for which i need to truncate the display of string after particular delimiter.
Should we use a Converter, if so how? or else how can we trim the string??
Dimitrina
Telerik team
 answered on 20 Feb 2013
1 answer
82 views
I've created a resource dictionary RadRibbon and copied/pasted the resources from the NET40 implicit style resource dictionary.  Visual studio 2012 renders & builds fine, but Blend crashes whenever I open the project.  When I debug blend with vs 2012, it reports:

'{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonGallery.Icon' property on a Setter.

Please advise.
Kiril Vandov
Telerik team
 answered on 20 Feb 2013
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?