Telerik Forums
UI for WPF Forum
4 answers
414 views
I am binding my RadPropertyGrid to an object that contains a "property bag" - in other words, the object has a collection of child objects that represent the properties displayed in the property grid.  This collection is populated from a database so there is no knowledge at all in the application of the names, values, etc. for any of the 'properties'.

The object subclasses CustomTypeDescriptor, overrides GetProperties and returns a custom PropertyDescriptor for each of the items in the collection.  All of this works great except for cases where I need the user to select from a list of options.  Note that the list of options is NOT an enumeration but a collection of name/value pairs obtained from the database.

So the question is how to display a combobox in the property grid that is bound dynamically?

I've seen the other forum posts and examples using the LookupPropertyDefinition but they all use static references in the XAML to the property names and use static resources as the ItemsSource.  Neither of these are possible in my case as I won't know which 'properties' have options until runtime as the list is configurable in the database.  In addition, the list of choices is pulled out of the database so it will be different for each 'property'.

In previous incarnations of our application, we've been able to simply define a custom TypeConverter for the property, override the GetStandardValuesSupported method to return true then override GetStandardValues which would return the list of choices.  As I have learned from other posts, this is not supported in the RadPropertyGrid.  So what is?

Your help is greatly appreciated as this is a significant enough feature and enough time has been spent trying to get it working that it could lead us to another vendor that is capable of supporting this need.
Ivan Ivanov
Telerik team
 answered on 22 Oct 2012
4 answers
133 views
Every time we try to print a Document a white Space is added below every page. Even the sample from the Demo-App shows this Problem. We tested this on several machines with different Printers. We use the newest Assemblies (2012.2.1015.40). Attached is a Screenhot from a PDF-File that shows the default Sample from the Demo App printed via PDFCreator. We tried to change the SectionDefaultPageMargin, SectionDefaultPageSize, footer content, PrintSettings.PrintScaling, but nothing solves the issue.
H.-G.
Top achievements
Rank 1
 answered on 22 Oct 2012
12 answers
153 views
Hi, I have some ghosting problem with the TreeListView. Whenever I expand a row most (not all) rows become un-expandable, this can be fixed if I have many rows and can scroll down/up the treelistview.  What can be triggering this behavior I'm running Q2 2012 Sp2.

Please can you help me with this.

Cheers
kristján
Kristjan Einarsson
Top achievements
Rank 1
 answered on 22 Oct 2012
0 answers
131 views
I have tab under which there is my user control containing 2 telerik datagrids and other controls. When i navigate using tab key for the  first time it goes through controls in order which i defined by using tab index and then after reaching datagrid it again goes to main tab(containig my user control) and then  again after reaching datagrid it traverse the datagrid element and then after traversing the datagrid it again goes to the main tab and then again after reaching datagrid it skip the datagrid rows and go to the next control . i have defined the keyboardnavigation.Tabindex for each control.and keyboardnavigation.tabnavigation="cycle".
Kirti
Top achievements
Rank 1
 asked on 22 Oct 2012
3 answers
318 views
I'm using the following setttings on my combobox..

<telerik:RadComboBox x:Name="cboUppdragsmallar" Text="{Binding Namn, UpdateSourceTrigger=LostFocus}" EmptyText="Uppdragsnamn" Height="40" FontSize="18"
                                             DockPanel.Dock="Top" Margin="5 10 5 5" ToolTip="Uppdragsnamn" IsEditable="True" ItemsSource="{StaticResource UppdragsmallLista}" DisplayMemberPath="Namn"  CanAutocompleteSelectItems="False" SelectionChanged="cboUppdragsmallar_OnSelectionChanged" />

My intention is to let the user pick a name for a project, if he wants he can use the dropdown to select a predefined template that lets picks some information of the template to fill certain fields.

However the CanAutocompleteSelectItems does not seem to work because as soon as i type something in the dropdown it autocompletes and fired selectionchanged which fills all the fields with data from the template being selected.. I don't want this behaviour unless the user selectes an option from the dropdown by hand...

So What i want is for the selectionchanged event only to fire when a dropdown selected is made by mouseclick or by keyboard. Not by autocompletion!

Boyan
Telerik team
 answered on 22 Oct 2012
1 answer
113 views
Please help me. How I can create header as atached image ? I need group columns for (LAB,RAD,Nurse).
Yoan
Telerik team
 answered on 22 Oct 2012
1 answer
209 views
I have what seems like it should be an easy question - how do i simply add a dropshadow to the calendar picker that is shown in the popup after selecting the calendar icon of a datetimepicker?  I've tried editing the PART_Popup in my custom style, however the dropshadow just gets ignored.  is there a secondary calendar control somewhere i need to modify or create a custom style for?

Matt.
Masha
Telerik team
 answered on 22 Oct 2012
2 answers
176 views

I am using just a LineSeries and setting it's ItemSource to uint array and when I use the TrackBall I just get the Y-value and not the Category one.
My guess is I need to use a different series type such as ScatterSpline, but I couldn't figure out how to specify data for that sort of series.  My array updates 30 times a sec so I'm constantly nulling out the series ItemSource and setting it back to the uint array
Also, is it possible to change the "Category" label in the TrackInfo box to something else such as "Channel?"

Thanks!

My ChartView in XAML

<telerik:RadCartesianChart Grid.Row="0"
                           Name="radCartesianChart1"
                           >
    
  <telerik:RadCartesianChart.HorizontalAxis>
    <telerik:CategoricalAxis
                             MajorTickInterval="255"
                             LabelInterval="1"
                             ShowLabels="True"
                             />
  </telerik:RadCartesianChart.HorizontalAxis>
    
  <telerik:RadCartesianChart.VerticalAxis>
    <telerik:LinearAxis />
  </telerik:RadCartesianChart.VerticalAxis>
  <telerik:RadCartesianChart.Behaviors>
    <telerik:ChartPanAndZoomBehavior ZoomMode="Both"
                                     PanMode="Both">
    </telerik:ChartPanAndZoomBehavior>
    <telerik:ChartTrackBallBehavior ShowIntersectionPoints="True"
                                    ShowTrackInfo="True"/>
  </telerik:RadCartesianChart.Behaviors>
  <telerik:RadCartesianChart.Series>
    <telerik:LineSeries Stroke="Orange"
                        StrokeThickness="2"/>        
  </telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>


My CodeBehind where I set the ItemSource when my array upda

void setData(uint[] data)
{      
  //may use with ScatterSplineSeries??
  //List<PlotInfo> dataList = new List<PlotInfo>();
  //for (int i = 0; i < _EDSData.Length; i++)
  //  dataList.Add(new PlotInfo() { XVal = i, YVal = _EDSData[i] });
  radCartesianChart1.Series[0].ItemsSource = null;
  radCartesianChart1.Series[0].ItemsSource = _EDSData;
}


Thanks!

Petar Marchev
Telerik team
 answered on 22 Oct 2012
1 answer
106 views
Hi,

I am trying to UI Virtualize a DataFormComboBoxField through styling, but could not find a way to do that.I copied the DataFormComboBoxField style in Blend but was not able to find the combo box on which to set the ItemsPanel to VirtualizingStackPanel.I am now doing through code and it works fine, but would like to move that to global style.

IEnumerable<DataFormComboBoxField> comboFields = MyRadForm.ChildrenOfType<DataFormComboBoxField>();
            foreach (DataFormComboBoxField comboField in comboFields)
            {
                
                  
                   ((RadComboBox)comboField.Content).ItemsPanel = Resources["VirtualizingItemsPanelTemplate
"
] as ItemsPanelTemplate;
                 
            }

<ItemsPanelTemplate x:Key="VirtualizingItemsPanelTemplate">
            <VirtualizingStackPanel />
        </ItemsPanelTemplate>

Thanks

Madani
Maya
Telerik team
 answered on 22 Oct 2012
1 answer
67 views
I have been using Telerik components for long time and have multiple application using different versions of Telerik components. Why you desided to remove old versions without single warning ??????
Best regards.
Biliana Ficheva
Telerik team
 answered on 22 Oct 2012
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
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
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?