Telerik Forums
UI for WPF Forum
3 answers
219 views
If I zoom in to the chart I end up with multiple X-Axis ticks with duplicate values.

I have stepped through the LinearAxisModel code using Reflector and found that in the GenerateTicks method it has a ZoomWidth of ~50.0 and a MajorStep of 20.0.
Which over a range of min = 0, Max = 140 ends up with it generating far too many ticks for the data range.

Is there a way to control the number of ticks that are generated so that only one tick per distinct data value are displayed?

Thanks
Rosko
Telerik team
 answered on 17 Jun 2013
0 answers
101 views
Good day, with a reference of telerik in my project which I send along the Setup.exe to my client? . dll or something.
graciously
André
Andre
Top achievements
Rank 1
 asked on 17 Jun 2013
7 answers
248 views
Hi Telerik,

I am using ScaterLIneSeriers because our axes (x&Y) are linear axies. We add multiple ScatterLineSeries dynamically using code. We see following list of issues.
1. There is no option to sort the axis data automatically.
2. We thought if we sort them and add it it will work fine. But it does not cover all the cases because our series are sparsed.  When there is sparsed data and some data does not overlap and the sequence are not done automatically the graph looks very ugly.
3. So, We tried the workaround of creating dummy series with all the points and add that as first series and set their visibility to false and it did not help that much because the rendering of series is not same as the ordering of adding the series.
4.  The ScaterLine series does no render same as excel when the data is not sorted and the data has both positive and negative  values.

We need to know how to solve this issues.  Is there any patches available.

Thanks
Mohan.
Evgenia
Telerik team
 answered on 17 Jun 2013
1 answer
148 views
Hi,
         I am facing issue while working with Localization, my scenario is as follows:
=> I am having Rad DataGrid and we are binding the columns dynamically, while binding I am handling the localization in code behind from the resx file.
The scenario in which  I am facing issue is for certain columns I need to change color  of some rows depending on certain condition. To achieve this  I hardcode the column name and it was working fine by using a converter. But as I can't hardcode the column name I need to use localization and get the results which I am not able to achieve. here is the sample code how we I approached it when I hardcoded

<telerik:RadGridView.RowStyle>
                                       <Style TargetType="telerik:GridViewRow">
                                           <Setter Property="Background" Value="{Binding Status,Converter={StaticResource rowcolorConveter}}"></Setter>
                                           <Setter Property="Background" >
                                               <Setter.Value>
                                                   <MultiBinding Converter="{StaticResource ABCConveter}">
                                                       <Binding Path="abc"/>//Hardcode Column Name
                                                       <Binding Path="DataContext.SelectedView" RelativeSource="{RelativeSource AncestorType={x:Type UserControl}}"/>
                                                   </MultiBinding>
                                               </Setter.Value>
                                           </Setter>
                                           
                                       </Style>
                                   </telerik:RadGridView.RowStyle>


If u observe I hardcode the "abc" value while binding.I want to pull this hardcode colum name from from resx file and get the value of the column.



Maya
Telerik team
 answered on 17 Jun 2013
1 answer
177 views
Hello,

Started from how-to-bind-custom-observablecollection-to-radribbonsplitbutton, now I want to add a sub menu item.

I could still use a RadMenuItem-based object for the sub menu item? I will also know what the parent menu item should be.

However, I don't know which elements, properties, etc, to add the sub menu item to?

Thank you...

Regards,

Michael Powell
Travis
Top achievements
Rank 1
 answered on 16 Jun 2013
2 answers
207 views
Hello,

I've got a custom ObservableCollection I want to bind to using RadRibbonSplitButton.

Is there a simple example how to bind a collection to a RadRibbonSplitButton (or RadSplitButton?) DropDown data context?

Thanks!

Regards,

Michael Powell
Travis
Top achievements
Rank 1
 answered on 16 Jun 2013
1 answer
122 views
Is there a control like a split button (button+menu) for use with the RadRibbonView? I am using the RadRibbonButtons of course, but one of them I would like to use as a split button and drop down a menu. Thank you...
Travis
Top achievements
Rank 1
 answered on 15 Jun 2013
9 answers
335 views

I have a RadGridView bound to ObservableCollection. This collection is constantly updated and on first binding the grid represent the data correctly. But then I click on one of the headers to sort the data in the grid. After that behaviors on adding a new row become as following:
-  the grid adds the row to the end of the list only, it doesn't sort data dynamically according sorting column;
- sometimes (often) the grid creates duplicate rows while underlying collection contains correct data;

I couldn't find in documentation any info that I should programmatically sort underlying collection each time after adding row or rebind it every time so the grid shows it correctly. What should I do to fix it or it\s a norm for Telerik Grid?

Carolina
Top achievements
Rank 1
 answered on 14 Jun 2013
0 answers
79 views
Hi.

We have an implementation of Drag&Drop of items from outlook to a treeview using the telerik DragDropManager.

xaml code:
<telerik:RadTreeView ItemPrepared="OnItemPrepared" .../>

code-behind:
        protected void OnItemPrepared(object sender, RadTreeViewItemPreparedEventArgs e)
        {
            if (e.PreparedItem.AllowDrop)
            {
                e.PreparedItem.DragEnter += OnPreparedItemDragEnter;
                e.PreparedItem.Drop += OnPreparedItemDrop;
            }
        }


We then have a function : OnPreparedItemDrop(object sender, DragEventArgs args)
...Where I want to launch a new dialog and add some metadata to the files dragged in.

When using a dialog.ShowDialog() the calling thread here freezes. This causes the source application(outlook) to be completely unresponsible until my dialog has been closed and the function returns. It also leaves the mouse cursor in "drag-drop" mode when hovering stuff outside my application.

I am fond of this style of opening and handlign dialog outputs:

if(dialog.ShowDialog == true)
{
    DoSomething();
}
DoCleanup();



The alternative I see at the moment is to add logic to the view cancel/close events to do cleanup, or mess with the dispatcher and threading. What is the proper approach here?
Jan Terje
Top achievements
Rank 1
 asked on 14 Jun 2013
1 answer
152 views
Hello,

I'm implementing a RadCartesianChart with dynamic ChartDataSource and data sampling.
Everything's fine but I'd like to sample via a sum function and not via the default average one.
So I created a new SumBarSeries which inherits from BarSeries as shown below :

public class SumBarSeries : BarSeries
{
    protected override ChartAggregateFunction GetValueAggregateFunction()
    {
        return new ChartSumFunction();
    }
}

There's a min, max, average, keepextremes,  first and last function but no sum function.
Is there a simple way to add such a function?
Furthermore is it possible to change dynamically the sampling function just like the old RadCharts without changing the BarSeries class (ie. SumBarSeries)?

Thanks,

Michel LACOMBE
Michel
Top achievements
Rank 1
 answered on 14 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?