Telerik Forums
UI for WPF Forum
1 answer
223 views
I have a RadComboBox that is bound to a collection of about 1500 items. The ComboBox is searchable with filtering.

Everything was working as expected, except it was really slow to load.

I Added the VirtualizingStackPanel and this gave me the speed required for the app and text searching is working. However, the ComboBox is no longer filtering the results.

Here is my code:

<telerik:RadComboBox Grid.Column="1"
                     IsEditable="True"
                     TextSearchMode="StartsWith"
                     telerik:TextSearch.TextPath="Description"
                     IsFilteringEnabled="True"
                     OpenDropDownOnFocus="True"
                     ItemsSource="{Binding Fields}"
                     SelectedItem="{Binding SelectedField.Field, Mode=TwoWay}">
                <telerik:RadComboBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel />
                    </ItemsPanelTemplate>
                </telerik:RadComboBox.ItemsPanel>
</telerik:RadComboBox>


I'm using the latest version of the control (Q2 2010 SP1).

Any help would be greatly appreciated.
Konstantina
Telerik team
 answered on 08 Sep 2010
3 answers
558 views
I'm using a RadComboBox with text filtering, it works fine except for one small case.

When I start typing into the combo box to filter its items, if I use the keyboard to highlight and press enter on an item, the text that I typed will be replaced with the complete text of the item that I selected. This does not happen though in a particular case. If I partially type in the text of an item and then use the mouse to click on the item I want in the resulting filtered list, the text in the combo box will remain the partially typed in value that I entered, instead of being replaced with the complete text from the item I selected.

How do I get the combo box to behave the same in both cases (mouse & keyboard) so that the text of the selected item always replaces the text the user typed in?

Here's how I'm setting up my combo box in case I'm simply lacking a proper setting. I was able to duplicate this behavior on the Telerik online demo's page.

            <telerik:RadComboBox Grid.Column="1" Grid.Row="1" Margin="5,1,5,1"
                                 ItemsSource="{Binding AvailableLookupGroups}" 
                                 SelectedValue="{Binding LookupGroup, Mode=TwoWay}" 
                                 CanAutocompleteSelectItems="True"
                                 CanKeyboardNavigationSelectItems="True"
                                 IsEditable="True"
                                 IsFilteringEnabled="True"
                                 TextSearchMode="Contains"
                                 EmptyText="Select a lookup..."
                                 OpenDropDownOnFocus="True"
                                 ClearSelectionButtonVisibility="Visible"
                                 ClearSelectionButtonContent="Clear"
                                 DisplayMemberPath="LookupName"/>

Konstantina
Telerik team
 answered on 07 Sep 2010
1 answer
76 views
Hi,
  Is zooming and scrolling is available only if series mapping is used? I am not able to get it working. Here is my code.

Thank you
        ChartArea3.DefaultView.ChartArea.DataSeries.Clear()


        For Each itm As ItemSumm In itemsList
            Dim series As New DataSeries()
            series.Definition = New LineSeriesDefinition()
            series.Definition.ShowItemLabels = True
            series.Definition.ShowItemToolTips = True
            series.Add(New DataPoint() With {.YValue = Math.Abs(itm.Amount), .XCategory = Format(itm.aptDate, "dd-MMM"), .LegendLabel = itm.aptCode})
            series.LegendLabel = itm.aptCode
            series.Definition.ItemLabelFormat = "#Y{C2}"
            series.Definition.ItemToolTipFormat = "#LEGENDLABEL" & Chr(13) & "#Y{C2}" & Chr(13) & "#XCAT"
            ChartArea3.DefaultView.ChartArea.DataSeries.Add(series)
        Next
        Dim zoomSettings As New ZoomScrollSettings()
        ChartArea3.SamplingSettings.SamplingThreshold = 10
        zoomSettings.MinZoomRange = 10
        zoomSettings.RangeEnd = 30
        zoomSettings.RangeStart = 20
        zoomSettings.ScrollMode = ScrollMode.ScrollAndZoom
        ChartArea3.DefaultView.ChartArea.ZoomScrollSettingsX = zoomSettings
Evgenia
Telerik team
 answered on 07 Sep 2010
1 answer
208 views
How can I hide (and show) frame and headers by code. See attached picture.

I want my usercontrols to be "movable" but not showing the frame of Docking control (more than when app is is in "move controls mode")
Miroslav Nedyalkov
Telerik team
 answered on 07 Sep 2010
1 answer
78 views
I am using VS 2010 and am unable to build the Q2 2010 ExamplesCS_WPF solution.
Attached is an image of the errors
Kaloyan
Telerik team
 answered on 07 Sep 2010
3 answers
437 views
Hi

I have a GridViewCheckBox column which is created dynamically at runtime. I need to hide the checkboxes for particular rows based on a condition. I have seen some samples using cell template in XAML but I did not find any sample to do it using code behind or which suits this scenario. Here is the code

GridViewCheckBoxColumn tempCheckBoxColumn;
           foreach (PermissionValue permissionValue in employeeRecords.FirstOrDefault().RolePermission)
           {
               tempCheckBoxColumn = new GridViewCheckBoxColumn()
               {
                   Header = permissionValue.PermissionTypeDescription
                   ,
                   UniqueName = permissionValue.PermissionTypeDescription
                   ,
                   DataMemberBinding = new Binding("RolePermission[" + i + "].Value") { Mode = BindingMode.TwoWay }
                   ,
                   DataType = typeof(bool                     
               };
               tempDataColumn.IsReadOnly = false;
               this.grid.Columns.Add(tempCheckBoxColumn);
               i++;
           }

I need to hide the checkbox for some rows based on permissionValue.IsVisible value.

Regards
Kiran
Veselin Vasilev
Telerik team
 answered on 07 Sep 2010
6 answers
171 views
Hi

I am implementing self reference hierarchy and i have used the code below which works fine for default columns.
<telerik:RadGridView x:Name="RadGridView1"
     DataLoading="RadGridView1_DataLoading" RowLoaded="RadGridView1_RowLoaded" GridLinesVisibility="Horizontal" 
    CanUserFreezeColumns="False" IsReadOnly="True" AutoGenerateColumns="False" Margin="10">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn  DataMemberBinding="{Binding TaskId}" />
          
        <telerik:GridViewDataColumn Header="Task Name" DataMemberBinding="{Binding TaskName}" />
        <telerik:GridViewDataColumn Header="Read">
            <telerik:GridViewColumn.CellTemplate>
                <DataTemplate>
                    <CheckBox x:Name="checkBoxRead" IsChecked="{Binding Read}" />
                </DataTemplate>
            </telerik:GridViewColumn.CellTemplate>
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn Header="Write">
            <telerik:GridViewColumn.CellTemplate>
                <DataTemplate>
                    <CheckBox x:Name="checkBoxWrite" IsChecked="{Binding Write}" />
                </DataTemplate>
            </telerik:GridViewColumn.CellTemplate>
        </telerik:GridViewDataColumn>
    </telerik:RadGridView.Columns>
    <telerik:RadGridView.FilterDescriptors>
        <telerik:FilterDescriptor Member="ParentTaskId" Operator="IsEqualTo"  Value="0"/>
    </telerik:RadGridView.FilterDescriptors>
    <telerik:RadGridView.ChildTableDefinitions>
        <telerik:GridViewTableDefinition>
            <telerik:GridViewTableDefinition.Relation >
                <telerik:TableRelation IsSelfReference="True"     >
                    <telerik:TableRelation.FieldNames>
                        <telerik:FieldDescriptorNamePair  
                            ParentFieldDescriptorName="TaskId" 
                            ChildFieldDescriptorName="ParentTaskId" />
                    </telerik:TableRelation.FieldNames>
                </telerik:TableRelation>
            </telerik:GridViewTableDefinition.Relation>
        </telerik:GridViewTableDefinition>
    </telerik:RadGridView.ChildTableDefinitions>
      
</telerik:RadGridView>

I have a problem when I add dynamic columns columns are showing at rool level but does not get added at child node level. If you notice in the screenshot RolePermissions[0], RolePermissions[1], RolePermissions[2] are dynamic columns. I have attached the screenshot. Is there a simple way to fix it please suggest.

Regards
Kiran


Kiran
Top achievements
Rank 1
 answered on 07 Sep 2010
1 answer
42 views
Hi!

I've a RadGridView, I wish to set some field to a default value when I create it.

I can't find the good event for this. 

Example:

I click on the Add new item of the RadGridView
An event intercept this action
--> I change some field
Life continue ;)

I'm sure this is made very easily but I can't find how :(
Veselin Vasilev
Telerik team
 answered on 07 Sep 2010
2 answers
134 views

Hello,

I have a GridView with a HierarchyChildTemplate with two datatriggers :

01.<telerik:RadGridView.HierarchyChildTemplate>
02.    <DataTemplate>
03.        <DockPanel>
04.            .......
05.        </DockPanel>
06.        <DataTemplate.Triggers>
07.            <DataTrigger Binding="{Binding Name}" Value="Value1">
08.                <Setter TargetName="Border1" Property="Visibility" Value="Visible" />
09.            </DataTrigger>
10.            <DataTrigger Binding="{Binding Name}" Value="Value2">
11.                <Setter TargetName="Border2" Property="Visibility" Value="Visible" />
12.            </DataTrigger>
13.        </DataTemplate.Triggers>
14.    </DataTemplate>
15.</telerik:RadGridView.HierarchyChildTemplate>

With Rad Controls WPF 2010 Q1 triggers work fine.

With Rad Controls WPF 2010 Q2 (or Q2 SP1) triggers don't work (If I use a converter in the binding and put a breakpoint in the converter the breakpoint is never reached).

The only change is the version of Rad Controls.

Could you help me ?

Thanks in advance.

Patrick

Patrick VADEL
Top achievements
Rank 1
 answered on 07 Sep 2010
1 answer
196 views
Hi,

I am facing a problem with the GridViewComboBoxColumn.  I have a view set up with a RadGridView using three columns, one of which is a ComboBoxColumn.  The ComboBoxColumn is bound to an ObservableCollection which consists of 9 "Service" items.  The combobox is updating correctly and containing the proper items, and all of the databindings I'm using (using the MVVM model) are working correctly.

The situation is as such.  When I click on the "Click here to add new item" row, and it generates the item to add, the combobox initially has a blank value selected (and it shows blank).  If I click on the combobox, I see all 9 items as options, and there is no blank option to select.  However, if I just click on another cell, the combobox selection stays blank.  If I select one of the specific items in the combobox, then it will update to the item I selected and I will not be able to change it back to a blank value.

The problem I face is this.  I don't want the user to be able to leave that combobox item blank.  I'd prefer, when I initially click the "Click here to add new item" indicator, for the combobox to automatically default to the first item in its list and to display accordingly.  Alternatively, I'd like to configure it to not allow you to add the new row unless a specific item is selected in the combobox.  I haven't been able to find the appropriate properties or methods to call to accomplish there.  Does anyone know how I can set this up?

Thank you,
Jason
Maya
Telerik team
 answered on 07 Sep 2010
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
SplashScreen
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?