Telerik Forums
UI for WPF Forum
2 answers
127 views
I want to draw a 2D Pie, where the first "pie element" shall start at "12 o'clock" (not at 3 o'clock as default), and the folowing elements adds in clockwise order.

I also need the selected "pie element" to "pop out" when I select it by clicking on the pie, or selecting by code. How do I code this in C#?

I have 2010 Q2
Sia
Telerik team
 answered on 22 Jul 2010
1 answer
75 views
Is there a way to get the timer value used by the spring zoom animation?
I have a dependency property linked to the zoom level and would like to animation between the new zoom level and old level to have the same duration.
Regards
Frederic
Andrey
Telerik team
 answered on 22 Jul 2010
1 answer
92 views
Using the latest WPF RadMap version (Q2 2010), I noticed that smooth zooming has been added (looks very good).
However, there is an unfortunate side effect on panning (it "lags").
Is there a property to control the spring effect on panning (e.g. turn it off)?
The UseSpringAnimations property turns both smooth zooming *and* panning on/off.
Regards
Frederic
Andrey
Telerik team
 answered on 22 Jul 2010
1 answer
87 views

Hi

This is trivial stuff but I can't find an answer in all your resources.

I have a database field containing an integer code e.g. Priority with 0 for High, 1 for Medium and 2 for Low.
The codes mean nothing to the user so I need to translate the code in this column into text. Also, when sorting the column I'd like it to use the underlying code and not the text so the ordered data appears as High-Medium-Low not text sorting which would give High-Low-Medium.

If you can provide some tips on searching your resources for this easy stuff that would be appreciated! A beginners guide maybe

Thanks
RoyS

Pavel Pavlov
Telerik team
 answered on 22 Jul 2010
1 answer
140 views
Hi,

On a page, I have a gridview which shows data which come from a binding to a collection of a class A.

What I want to do is to get the currently showed items on the grid view, transform the items into new items of a class B and bind the new item collection of the class B to a pie chart.

To do that, the only solution I could see was to use a converter.
What I've done compile fine, but when I run the application, the pie chart is empty whereas the grid view contains elements.

Here is the XAML code with the mapping on ItemsSource :

<telerikGrid:RadGridView x:Name="GridView"></telerikGrid:RadGridView>
<telerikChart:RadChart ItemsSource="{Binding ElementName=GridView,Path=Items,Converter={StaticResource Converter}}">
<telerikChart:RadChart.SeriesMappings>
    <telerikCharting:SeriesMapping>
        <telerikCharting:SeriesMapping.SeriesDefinition>
            <telerikCharting:Pie3DSeriesDefinition/>
        </telerikCharting:SeriesMapping.SeriesDefinition>
        <telerikCharting:SeriesMapping.ItemMappings>
            <telerikCharting:ItemMapping DataPointMember="LegendLabel" FieldName="Key" />
            <telerikCharting:ItemMapping DataPointMember="YValue" FieldName="Value" />
        </telerikCharting:SeriesMapping.ItemMappings>
    </telerikCharting:SeriesMapping>
</telerikChart:RadChart.SeriesMappings>
<telerikChart:RadChart.DefaultView>
    <telerikCharting:ChartDefaultView>
        <telerikCharting:ChartDefaultView.ChartArea>
            <telerikCharting:ChartArea LegendName="chartLegend">
            </telerikCharting:ChartArea>
        </telerikCharting:ChartDefaultView.ChartArea>
        <telerikCharting:ChartDefaultView.ChartLegend>
            <telerikCharting:ChartLegend x:Name="chartLegend" UseAutoGeneratedItems="True" />
        </telerikCharting:ChartDefaultView.ChartLegend>
    </telerikCharting:ChartDefaultView>
</telerikChart:RadChart.DefaultView>
</telerikChart:RadChart>

And here is the converter code :

[ValueConversion(typeof(DataItemCollection), typeof(ObservableCollection<KeyValuePair<string, int>>))]
public class Converter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        ObservableCollection<KeyValuePair<string, int>> convertedItems = new ObservableCollection<KeyValuePair<string, int>>();
 
        DataItemCollection dataItemCollection = (DataItemCollection)value;
        if (dataItemCollection.ItemCount > 0)
        {
            // I put here transformed elements in the collection convertedItems.
        }
             
        return convertedItems;
    }
 
    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}

In debug mode, when I look at dataItemCollection, it's empty !
So, converter can be use is that case ?
If not, how can I do it ?

Thanks.
Romain
Top achievements
Rank 1
 answered on 22 Jul 2010
3 answers
392 views
Hello,

At the last release i have some problems with cell edit template. If i use my own cell edit template(first code block) the "tab" and "enter" buttons does not make the cell editable. It only focuses on the cell.
But if i don't make an edit template there is no such problem.(second code block)
Also at the cell edit template i need to make double click to go in edit mode. But at default only one click.

P.S : If i use the keyboard up/down arrows to change the value there is no problem. The problem is i can not enter numbers from the keyboad

<telerik:GridViewDataColumn TextAlignment="Right" Header="Fatura Fiyatı" IsReadOnly="False" DataMemberBinding="{Binding IncomingBrutPrice}" DataFormatString="{}{0:F4}">
       <telerik:GridViewDataColumn.CellEditTemplate>
             <DataTemplate>
                  <telerik:RadNumericUpDown Name="NumericBrutPrice" Value="{Binding Path=IncomingBrutPrice, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ValueChanged="NumericBrutPrice_ValueChanged"></telerik:RadNumericUpDown>
              </DataTemplate>
       </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>


<telerik:GridViewDataColumn IsGroupable="False"  DataMemberBinding="{Binding ItemTotalPrice}" Header="Toplam Fiyat" Width="100" DataFormatString="{}{0:f4}">
</telerik:GridViewDataColumn>
Milan
Telerik team
 answered on 22 Jul 2010
1 answer
91 views
We have recently bought the licence of the Telerik controls and I am trying to use the TreeListView. Is there a way to use a template selector to bind different collection of data?


Thanks
Kiran
Stefan Dobrev
Telerik team
 answered on 22 Jul 2010
10 answers
427 views
I am trying to use the NumericUpDown but I need to format the displayed value so as to not show anything after the decimal, i.e. I want whole numbers only. I cannot seem to find a text format property, so how can I achieve this?

Thanks,

blair
Valeri Hristov
Telerik team
 answered on 22 Jul 2010
1 answer
38 views
I used DatePicker control (version 2010.1.422.35) in my project and everything worked fine. And yesterday I updated the dlls to version 2010.2.0714.35, and then I found the datepicker cannot pick up a date.

Is this a know issue? or besides updating the dlls and the reference path in my projects, there is something else I need to update to make datepicker work correctly?

Thanks,
Yang Lu
Kaloyan
Telerik team
 answered on 22 Jul 2010
2 answers
156 views
I have a RadPane set to floatingdocked. I do not wish to display this pane when the application loads.
I wish to display this only when certain event is fired.
I tried to set the visibility to hidden on SplitContainer as well as RadPanegroup but it is still visible
George
Telerik team
 answered on 22 Jul 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
Slider
Expander
TileList
PersistenceFramework
DataPager
TimeBar
Styling
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
FilePathPicker
Licensing
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?