Telerik Forums
UI for WPF Forum
1 answer
108 views
Hi!

I can set different color for each label with CreateItemStyleDelegate, could I do the same for the color of point marks of a line series?

I would specify the color of each point mark with databinding as I bind the point to it's value.
Evgenia
Telerik team
 answered on 21 Jun 2013
1 answer
205 views
HI, 
I use in my application a gridview with four buttons to delete and add a row and to save or cancel the edit. The delete and add buttons work perfectly but not the save insert/edit button. I don't understand where is the problem in my code, if someone could help.
This is my xaml : 
<Grid Name="indicatorPage" Visibility="Hidden" Margin="0,194,0,-194">
               <Grid.RowDefinitions>
                   <RowDefinition Height="Auto" />
                   <RowDefinition />
               </Grid.RowDefinitions>
           <StackPanel Orientation="Horizontal"
                   HorizontalAlignment="Center"
                   Margin="0,5,0,0">
               <telerik:RadButton Width="150"
                              Content="Delete selected rows"
                              Margin="0,0,5,0"
                              Command="telerikGrid:RadGridViewCommands.Delete"
                              CommandTarget="{Binding ElementName=gvIndicatorConf}" />
               <telerik:RadButton Width="150"
                              Content="Add new row"
                              Margin="0,0,5,0"
                              Command="telerikGrid:RadGridViewCommands.BeginInsert"
                              CommandTarget="{Binding ElementName=gvIndicatorConf}" />
               <telerik:RadButton Width="150"
                              Content="Save insert/edit"
                              Margin="0,0,5,0"
                              Command="telerikGrid:RadGridViewCommands.CommitEdit"
                              CommandTarget="{Binding ElementName=gvIndicatorConf}" />
               <telerik:RadButton Width="150"
                              Content="Cancel insert/edit"
                              Command="telerikGrid:RadGridViewCommands.CancelRowEdit"
                              CommandTarget="{Binding ElementName=gvIndicatorConf}" />
           </StackPanel>
           <telerik:RadGridView x:Name="gvIndicatorConf" 
                                ItemsSource="{Binding IndicatorConf}"
                                AddingNewDataItem="radGridView_AddingNewDataItem"
                                Margin="0,5,0,0" Grid.Row="1" 
                                AutoGenerateColumns="False" telerik:StyleManager.Theme="Windows8"
                                MaxHeight="7000" MaxWidth="1000">
               <telerik:RadGridView.Columns>
                   <telerik:GridViewColumn Width="90">
                       <telerik:GridViewColumn.CellTemplate>
                           <DataTemplate>
                               <telerik:RadButton Content="Delete"
                                              Command="telerikGrid:RadGridViewCommands.Delete"
                                              CommandParameter="{Binding}" />
                           </DataTemplate>
                       </telerik:GridViewColumn.CellTemplate>
                   </telerik:GridViewColumn>
                   <telerik:GridViewDataColumn DataMemberBinding="{Binding Code}" Header="Code" UniqueName="Code" />
                   <telerik:GridViewDataColumn DataMemberBinding="{Binding Descritpion}" Header="Descritpion" UniqueName="Descritpion" />
                   <telerik:GridViewDataColumn DataMemberBinding="{Binding Connecter}" Header="Connecter" UniqueName="Connecter" IsReadOnly="True"/>
                   <telerik:GridViewDataColumn DataMemberBinding="{Binding Period}" Header="Period" UniqueName="Period" />
               </telerik:RadGridView.Columns>
           </telerik:RadGridView>
       </Grid>

Thanks !
Yoan
Telerik team
 answered on 21 Jun 2013
1 answer
148 views
I have a problem where after applying the Filter, it opens up all the nodes. 

I am using FilterDescriptor.

We have a Huge Tree and we don't want the Tree and its children  to open after applying the Filter. Any idea how to stop it from opening after applying the Filter?

I am not able to attach the project, but will attach the screen shot. 

Here is code snippet. 

private void RadContextMenu_ItemClick(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            if ((e.OriginalSource as RadMenuItem).Header.Equals("Show Spain"))
            {
                FilterDescriptor descriptor = new FilterDescriptor();
                descriptor.Member = "Country";
                descriptor.Operator = FilterOperator.IsEqualTo;
                descriptor.Value = "Spain";
                this.RadTreeListView1.FilterDescriptors.Add(descriptor);
            }
 
            CompositeFilterDescriptor mainFilter = new CompositeFilterDescriptor();
 
            if ((e.OriginalSource as RadMenuItem).Header.Equals("Show England"))
            {
                FilterDescriptor descriptor = new FilterDescriptor();
                descriptor.Member = "Country";
                descriptor.Operator = FilterOperator.IsEqualTo;
                descriptor.Value = "England";
                mainFilter.FilterDescriptors.Add(descriptor);
                this.RadTreeListView1.FilterDescriptors.Add(mainFilter);
            }
            if ((e.OriginalSource as RadMenuItem).Header.Equals("Show England - France"))
            {
                mainFilter = new CompositeFilterDescriptor();
                mainFilter.LogicalOperator = FilterCompositionLogicalOperator.Or;
                FilterDescriptor descriptor = new FilterDescriptor();
                descriptor.Member = "Country";
                descriptor.Operator = FilterOperator.IsEqualTo;
                descriptor.Value = "England";
 
                mainFilter.FilterDescriptors.Add(descriptor);
                descriptor = new FilterDescriptor();
                descriptor.Member = "Country";
                descriptor.Operator = FilterOperator.IsEqualTo;
                descriptor.Value = "France";
 
                mainFilter.FilterDescriptors.Add(descriptor);
 
                this.RadTreeListView1.FilterDescriptors.Add(mainFilter);
            }
 
            if ((e.OriginalSource as RadMenuItem).Header.Equals("Clear Filter"))
            {
                this.RadTreeListView1.FilterDescriptors.RemoveAt(0);
            }
             
        }

Yoan
Telerik team
 answered on 21 Jun 2013
1 answer
135 views
Is ist possible to set DocumentSource with an non local source?
 Like e.g:

Me.pdfViewer.DocumentSource = New PdfDocumentSource(New Uri("http://195.243.234.82/download/6879-45_1_20130620_085341.pdf", UriKind.Absolute))

thx ...
Alexander
Telerik team
 answered on 21 Jun 2013
10 answers
209 views
Hello!

Since I updated to 2010 Q1 my CellEditTemplate stopped working. I get an System.InvalidCastException when leaving the textbox.

 <telerikGrid:RadGridView  x:Name="ARVolymGridView" AutoGenerateColumns="False" ShowGroupPanel="False" ItemsSource="{Binding ARVolymer, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" > 
            <telerikGrid:RadGridView.Columns> 
                <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding Sortiment, UpdateSourceTrigger=PropertyChanged}" Header="Sortiment"/> 
                <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding Volym, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Header="M3f" > 
                    <telerikGrid:GridViewDataColumn.CellEditTemplate> 
                        <DataTemplate> 
                            <TextBox Text="{Binding Volym, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"/> 
                        </DataTemplate> 
                    </telerikGrid:GridViewDataColumn.CellEditTemplate> 
                </telerikGrid:GridViewDataColumn> 
            </telerikGrid:RadGridView.Columns> 
        </telerikGrid:RadGridView> 

My binding properties:

 
        public string Sortiment 
        { 
            get { return _arVolym.Sortiment; } 
            set 
            { 
                if (_arVolym.Sortiment != value) 
                { 
                    _arVolym.Sortiment = value
                    OnPropertyChanged("Sortiment"); 
                } 
            } 
        } 
 
 
        public int Volym 
        { 
            get { return _arVolym.Volym; } 
            set 
            { 
                if (_arVolym.Volym != value) 
                { 
                    _arVolym.Volym = value
                    OnPropertyChanged("Volym"); 
                } 
            } 
        } 

In my application I have an custom designed TextBox to prevent the user to enter invalid values, but the same exception appears for a regular Textbox.

This is extremly annoying that something stopped working when updating to a new and improved (?!) version.

//Anna


Maya
Telerik team
 answered on 21 Jun 2013
1 answer
117 views
I wonder if there is a way (other than feeding Log(x)) to render TreeMap charts to use logarithmic values?

I can feed the log(x) as the value but tooltips would not be equal even I'd convert the value using exp(x).
Nikolay
Telerik team
 answered on 21 Jun 2013
1 answer
142 views
Can treemap chart be somehow modified to look like this using FillSceneGraph or something?

http://i.stack.imgur.com/aXuOb.png
Nikolay
Telerik team
 answered on 21 Jun 2013
1 answer
140 views
I updated to the latest release of telerik controls using the control panel.  I now have XAML error messages saying that there is a conflict between the Telerik versions that the project references and a referenced project references.  Picture of error message attached.  Do you have a suggestion as to how I can clean this up? 

Both projects reference the same version of telerik controls.
Yana
Telerik team
 answered on 21 Jun 2013
6 answers
96 views
I've applied Windows8 theme as the following code, and found splitter bars disappear between RadPaneGroups docked in the left position as shown in the attached image.
This happens only when applying Windows8 theme in code-behind.
I'm building a custom theme based on Windows8 theme, so I need this to be fixed! Can this be fixed?

    public partial class MainWindow : RadRibbonWindow
    {

        static MainWindow()
        {
            RadRibbonWindow.IsWindowsThemeEnabled = false;
        }

        public MainWindow()
        {
            StyleManager.ApplicationTheme = new Windows8Theme();

            this.InitializeComponent();


Masha
Telerik team
 answered on 21 Jun 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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?