Telerik Forums
UI for WPF Forum
4 answers
231 views
I'm data binding my RadChart (WPF Q1 2011 SP1) control to an ADO.NET DataView exposed through a property of my ViewModel (currently hosted in the UserControl's code-behind--similar to this implemenation (later plan to use multiple-series mapping): http://www.telerik.com/ClientsFiles/275600_WpfApplication1.zip

It almost works until I try to raise an OnPropertyChanged event for the VMs INotifyPropertyChanged implementation.  I get:

{"No generic method 'Average' on type 'System.Linq.Enumerable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. "}

[System.InvalidOperationException]: {"No generic method 'Average' on type 'System.Linq.Enumerable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. "}

Data: {System.Collections.ListDictionaryInternal}

HelpLink: null

InnerException: null

Message: "No generic method 'Average' on type 'System.Linq.Enumerable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. "

Source: "System.Core"

StackTrace: " at System.Linq.Expressions.Expression.FindMethod(Type type, String methodName, Type[] typeArgs, Expression[] args, BindingFlags flags)\r\n at System.Linq.Expressions.Expression.Call(Type type, String methodName, Type[] typeArguments, Expression[] arguments)\r\n at Telerik.Windows.Data.Expressions.EnumerableSelectorAggregateFunctionExpressionBuilder.CreateMethodCallExpression(LambdaExpression memberSelectorExpression) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\Aggregates\\EnumerableSelectorAggregateFunctionExpressionBuilder.cs:line 48\r\n at Telerik.Windows.Data.Expressions.EnumerableSelectorAggregateFunctionExpressionBuilder.CreateAggregateExpression() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\Aggregates\\EnumerableSelectorAggregateFunctionExpressionBuilder.cs:line 30\r\n at Telerik.Windows.Data.EnumerableSelectorAggregateFunction.CreateAggregateExpression(Expression enumerable

Expression) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Data\\Grouping\\Aggregates\\EnumerableSelectorAggregateFunction.cs:line 76\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.<ProjectionPropertyValueExpressions>b__3(AggregateFunction f) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 288\r\n at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateProjectionInitExpression() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 279\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateAggregateFunctionsProjectionMemberBin

ding() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 272\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.<CreateMemberBindings>d__0.MoveNext() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 173\r\n at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n at System.Dynamic.Utils.CollectionExtensions.ToReadOnly[T](IEnumerable`1 enumerable)\r\n at System.Linq.Expressions.Expression.MemberInit(NewExpression newExpression, IEnumerable`1 bindings)\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateSelectBodyExpression() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 161\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateResultSelectorExpressio

n() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 153\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.get_ResultSelectorExpression() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 109\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilderBase.CreateQuery() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilderBase.cs:line 18\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorCollectionExpressionBuilder.CreateQuery() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorCollectionExpressionBuilder.cs:line 28\r\n at Telerik.Windows.Data.QueryableExtensions.GroupBy(IQueryable source, IEnumerable`1 groupDescriptors) in c:\\Builds\\WPF_Scrum\\Release_WPF\

\Sources\\Development\\Core\\Data\\Collections\\QueryableExtensions.cs:line 184\r\n at Telerik.Windows.Data.QueryableCollectionView.CreateView() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 480\r\n at Telerik.Windows.Data.QueryableCollectionView.get_QueryableView() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 511\r\n at Telerik.Windows.Data.QueryableCollectionView.CreateInternalList() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 575\r\n at Telerik.Windows.Data.QueryableCollectionView.EnsureInternalList() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 563\r\n at Telerik.Windows.Data.QueryableCollectionView.get_InternalList() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\Queryab

leCollectionView.cs:line 554\r\n at Telerik.Windows.Data.QueryableCollectionView.GroupedIndexOf(Object item) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 1499\r\n at Telerik.Windows.Data.QueryableCollectionView.InternalIndexOf(Object item) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 1491\r\n at Telerik.Windows.Data.QueryableCollectionView.TryRestorePreviousCurrency() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 847\r\n at Telerik.Windows.Data.QueryableCollectionView.InitializeCurrencyOnRefresh() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 843\r\n at Telerik.Windows.Data.QueryableCollectionView.RefreshOverride() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollect

ionView.cs:line 824\r\n at Telerik.Windows.Data.QueryableCollectionView.RefreshInternal() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 772\r\n at Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 767\r\n at Telerik.Windows.Data.QueryableCollectionView.InvalidatePagingAndRefresh() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 393\r\n at Telerik.Windows.Data.QueryableCollectionView.OnGroupDescriptorsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 416\r\n at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)\r\n at Telerik.Windows.Data.R

adObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\RadObservableCollection.cs:line 143\r\n at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\ObservableItemCollection.cs:line 93\r\n at Telerik.Windows.Data.RadObservableCollection`1.InsertItem(Int32 index, T item) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\RadObservableCollection.cs:line 190\r\n at Telerik.Windows.Controls.Charting.DataBindingHelper.PerformSampling(QueryableCollectionView dataEngine, Int32 samplingThreshold, IEnumerable`1 samplingFunctions) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\DataBindingHelper.cs:line 759\r\n at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessNoGrouping(Series

Mapping seriesMapping, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\DataBindingHelper.cs:line 460\r\n at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessMapping(SeriesMapping seriesMapping, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\DataBindingHelper.cs:line 271\r\n at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessMappings(SeriesMappingCollection seriesMappings, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState) in c:\\Builds

\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\DataBindingHelper.cs:line 245\r\n at Telerik.Windows.Controls.Charting.DataBindingHelper.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ISeriesDefinition defaultSeriesDefinition, ChartFilterDescriptorCollection globalFilterDescriptors, ChartSortDescriptorCollection globalSortDescriptors, SamplingSettings samplingSettings, ZoomScrollSettings zoomScrollSettings, AxisRangeState axisXRangeState) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\DataBindingHelper.cs:line 48\r\n at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ChartArea chartArea) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\RadChart.cs:line 1288\r\n at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Co

ntrols\\Chart\\Chart\\RadChart.cs:line 1269\r\n at Telerik.Windows.Controls.RadChart.Rebind(Object originalData) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\RadChart.cs:line 894\r\n at Telerik.Windows.Controls.RadChart.Rebind() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\RadChart.cs:line 790\r\n at Telerik.Windows.Controls.Charting.SeriesMapping.RebindChart() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\SeriesMapping.cs:line 375\r\n at Telerik.Windows.Controls.Charting.SeriesMapping.ManageChangeNotifications(Object originalData, Object oldData) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\SeriesMapping.cs:line 354\r\n at Telerik.Windows.Controls.Charting.SeriesMapping.ItemsSourcePropertyChanged(DependencyObject target, DependencyPropertyChangedEventArgs args) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\

Chart\\Chart\\Data\\SeriesMapping.cs:line 331\r\n at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)\r\n at System.Windows.Freezable.OnPropertyChanged(DependencyPropertyChangedEventArgs e)\r\n at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)\r\n at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)\r\n at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)\r\n at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)\r\n at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)\r\n at MS.Internal.Data.PropertyPathWorker.Upd

ateSourceValueState(Int32 k, ICollectionView collectionView)\r\n at MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName)\r\n at MS.Internal.Data.PropertyPathWorker.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)\r\n at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)\r\n at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)\r\n at GenesysShell.DataPointSetViewModel.RaisePropertyChanged(String  propertyName) in C:\\Data\\tfs\\...\\MainView.xaml.cs:line 50\r\n at ....DataPointSetViewModel.set_Load(DataView value) in C:\\Data\\tfs\\...\\Views\\MainView.xaml.cs:line 69\r\n at ....MainView.cmdProcess_Click(Object sender, RoutedEventArgs e) in C:\\Data\\tfs\\...\\Views\\MainView.xaml.cs:line 268"

TargetSite: {System.Reflection.MethodInfo FindMethod(System.Type, System.String, System.Type[], System.Linq.Expressions.Expression[], System.Reflection.BindingFlags)}

This thread:
http://www.telerik.com/community/forums/wpf/chart/error-in-aplying-aggregate-function-when-binding-from-datatable.aspx
talks about setting the "FieldType" to double for correcting a similar error, like so:

ItemMapping mapping = new ItemMapping("Sales", DataPointMember.YValue, ChartAggregateFunction.Sum);
mapping.FieldType = typeof(double);

But I'm using wpf design-time binding, not c#--how would this be done in xaml (as I get an error):

<charting:ItemMapping FieldName="Value" DataPointMember="YValue" FieldType="double">
</charting:ItemMapping>
?

My XAML looks like this:

<UserControl ...

<telerik:RadChart x:Name="chartSegTrak" Margin="0,45,0,10" UseDefaultLayout="False">

    <charting:ChartArea x:Name="segTrakChartArea" EnableAnimations="False">
    </charting:ChartArea>
                   
    <telerik:RadChart.SeriesMappings>
        <charting:SeriesMapping ChartAreaName="ChartArea" ItemsSource="{Binding Load}">

            <charting:SeriesMapping.SeriesDefinition>
                <charting:LineSeriesDefinition>
                </charting:LineSeriesDefinition>
            </charting:SeriesMapping.SeriesDefinition>

            <charting:ItemMapping FieldName="Value" DataPointMember="YValue">
            </charting:ItemMapping>

        </charting:SeriesMapping>

    </telerik:RadChart.SeriesMappings>

</telerik:RadChart>
...

The code-behind looks like this:

    //
    // ViewModel code...
    //
    public class DataPointSetViewModel : INotifyPropertyChanged
    {
        private string _name;

        public DataPointSetViewModel(){}

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = this.PropertyChanged;

            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

        public DataView Load
        {
            set
            {
                _load = value;
                RaisePropertyChanged("Load");               
            }
            get
            {
                return _load;
            }
        }
        ...
    }

 //
 // Window/UserControl code...
 //
 public partial class MainView : UserControl
 {
        DataPointSetViewModel _vm;

        public MainView()
        {
            _vm = new DataPointSetViewModel();
            this.DataContext = _vm; 
            InitializeComponent();
        }
...
        private void cmdProcess_Click(object sender, RoutedEventArgs e)
        {
            ...

            try
            {
...
                DataView dvLoad = new DataView(<someclass>.DataSet.GenesysDataPoint);
                dvLoad.RowFilter = "StudyId=5 AND GlobalResourceId=2";
                dvLoad.Sort = "Year, Month, Day, Hour";
                _vm.Load = dvLoad;
            }
            catch (Exception ex)
            {
                Cursor = System.Windows.Input.Cursors.Arrow;
                MessageBox.Show("Error: " + ex.ToString());
            }
        }

 

The UserControl's DataContext is set and I can two-way bind simple properties with success.  It's just the DataView two-way binding that's not working correctly.  Thanks!

SqueakyDog
Top achievements
Rank 1
 answered on 29 Jun 2011
1 answer
165 views
Is there any way to have the dropdown control be enabled even if the Command it is bound to disables the button in CanExecute?
Tina Stancheva
Telerik team
 answered on 29 Jun 2011
12 answers
202 views
Hi,

is there a method to determine the current screen position (e.g. relative to the control) for a given time value? We need to draw some adorning visuals (lines) to show the current time.

Thanks,
Alexander
Alexander
Top achievements
Rank 1
 answered on 29 Jun 2011
0 answers
78 views
Hi support,

I want to show telerik version in one label, how I can show it?

Please guide me with some code examples.

thanks,
Vivek
Vivek
Top achievements
Rank 1
 asked on 29 Jun 2011
4 answers
114 views
Hi,

This is really urgent.

I want to maintain the selection of the item of carousal after its rebound or refreshed.

PLease find the code below which is not working;

int

 

iSelIndex = rdcTasks.Records.IndexOf(rdcTasks.SelectedRecord);
this.rdcTasks.ItemSource = list;

 

RadCarouselPanel

 

panel = this.rdcTasks.FindCarouselPanel();

 

panel.BringDataItemIntoView(rdcTasks.Records[iSelIndex]);

 

this.rdcTasks.Records[iSelIndex].IsSelected = true;

I have tried other properties like currentItem & Currentrecord but no gain.

REgards,
S

 

sridhar
Top achievements
Rank 1
 answered on 29 Jun 2011
4 answers
1.4K+ views

Hi Telerik team,

I am  trying to change the colour of the row border conditionally by following style settings. But I am unable to view the coloured border unless I change the value of the row border thickness to some value greater than 0. But increasing the row border thickness , increases the gray colored gap between rows.

Is there any other approach than can help change the colour of the gidview row border without changing the row border thickness i.e using the default border settings.

 

<telerik:RadGridView x:Name="radgvActivity" 
                             Grid.Row="2"
                             Margin="0" 
                             IsReadOnly="False"   RowIndicatorVisibility="Visible"                                                             
                             ScrollMode="RealTime" AutoGenerateColumns="False" 
                             EnableRowVirtualization="True"
                             CanUserFreezeColumns="False" CanUserResizeColumns="True" Width="780" Height="600"
                             BeginningEdit="radgvActivity_BeginningEdit"
                             RowEditEnded="radgvActivity_RowEditEnded">   
            <telerik:RadGridView.Resources>
                <Style TargetType="{x:Type telerik:GridViewRow}">
                    <Setter Property="BorderThickness" Value="1"></Setter>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding Path=ActType}" Value="4">
                            <DataTrigger.Setters>
                                <Setter Property="BorderBrush" Value="Red" />
                            </DataTrigger.Setters>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </telerik:RadGridView.Resources>

 

Many Thanks !!

Regards,
Mausami

Mausami
Top achievements
Rank 1
 answered on 29 Jun 2011
1 answer
350 views
Hi,

i'm using a RadGridView and now i want to use a RadDataPager like this:

 <telerik:RadDataPager PageSize="100" Grid.Row="1" Source="{Binding Items, ElementName=GridView}" IsTotalItemCountFixed="True" DisplayMode="FirstLastPreviousNextNumeric, Text" />

but i get the message:
..RadDataPager ist not found...

but why?

THanks
REgards
Rene
Milan
Telerik team
 answered on 29 Jun 2011
1 answer
127 views
Hi - I have followed the Tree View styles customization from http://www.telerik.com/help/wpf/radtreeview-styles-and-templates-templated-nodes.html and it works just great.

I've now introduced a DataTemplateSelector that picks between one of the two HierarchicalDataTemplate that I have in my control's resources.

My problem is that once I introduce the DataTemplateSelector none of the styles or control templates that I have set up are applied. Is this a known issue? I tried putting

template.ItemContainerStyle = frameworkElement.FindResource("TreeViewItemStyle") as Style;
into my template selector but it did not seem to have any effect. Note that if I set ItemTemplate="{StaticResource blah}" instead of ItemTemplateSelector="{StaticResource selector" things works fine. Thanks
Petar Mladenov
Telerik team
 answered on 29 Jun 2011
1 answer
151 views
I am using a bar chart where I need to show a unit bar if a certain value is 1 and nothing if a value is 0. The ticks need to show a categorical label Present or Not Present. How can I achieve this?

Thanks.
Nikolay
Telerik team
 answered on 29 Jun 2011
3 answers
331 views
My Requirement is I want add Image for RadComboBoxItem from static folder.
The following was my code.

<
telerik:RadComboBox Name="Salutaion" Grid.Column="4" Width="75" Grid.Row="0" HorizontalAlignment="Left"
 IsEditable="True" IsReadOnly="True"  telerik:StyleManager.Theme="Office_Blue"
 ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Clear">
<telerik:RadComboBoxItem Content="Male"/>
<telerik:RadComboBoxItem Content="Female"/>
</telerik:RadComboBox> Thanks and Regards Naresh Mesineni
Yana
Telerik team
 answered on 28 Jun 2011
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
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?