Telerik Forums
UI for WPF Forum
1 answer
228 views
BarSeries series = new BarSeries();                 
series.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "Name" };                 
series.ValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Value" };                 
series.ShowLabels = true;                 
series.ItemsSource = points;

My ItemsSource is just a list of my datapoint class.
How do I set the label for each point?
I can do it via xaml easy enough. How about code?


<telerik:CategoricalDataPoint Category="1" Value="0.05" Label="Some Point Specific Text"> 


I tried and failed with
             <telerik:BarSeries.LabelDefinitions > 
                    <telerik:ChartSeriesLabelDefinition >
                        <telerik:ChartSeriesLabelDefinition.Template>
                            <DataTemplate>
                                <StackPanel>
                                    <TextBlock Text="{Binding}"></TextBlock>
                                    <TextBlock>
                                    <TextBlock.Text>
                                         <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:BarSeries}}" 
                                                    Path
="DataPoints[0].DataItem.MyLabelProp"/>
                                    </TextBlock.Text>
                                    </TextBlock>
                               </StackPanel>
                            </DataTemplate>
                        </telerik:ChartSeriesLabelDefinition.Template>
                     </telerik:ChartSeriesLabelDefinition>
                </telerik:BarSeries.LabelDefinitions>
Petar Marchev
Telerik team
 answered on 19 Jun 2012
2 answers
125 views
Hi,

On the ImageEditor, we do not wish to display the Toolbox, but only have Zoomin, Zoom out. How to achieve that?
Aracna
Top achievements
Rank 1
 answered on 19 Jun 2012
29 answers
484 views
Hello,

I am not yet a customer. I still hesitate which wpf suite to buy. The one from xx who has a pivot grid which I really need. Or I wait for you creating a pivot grid in wpf. Any chance this gets released somehow in the middle of 2010?

Probably you can not answer this question ;-) Maybe you can tell me the roadmap for 2010? Or is this still a secret?
Milan
Telerik team
 answered on 19 Jun 2012
7 answers
986 views

Hi,

I’m using RadRichText and I’m trying to move the caret to specific offset from the start of the document (or specific row and column).

I saw on the forum that in order to move the caret I need to use
richTextBox.Document.CaretPosition.MoveToPosition

That gets DocumentPosition as parameter. But I can’t create documentPosition from desired text position.

How can I set the caret position from the beginning of the document?

By the way,

The Document position API help page doesn’t work.

(http://www.telerik.com/help/silverlight/telerik.windows.documents-telerik.windows.documents.documentposition_members.html)

Thanks,

Rotem.

Andrew
Telerik team
 answered on 19 Jun 2012
3 answers
149 views
Hello,

I am having some trouble binding a radAreaSparkLine to an ObseravbleCollection of dictionaries.  I am trying to use a radTimeBar using the getting started1 video.  The code I have is below.  When I run parseResourceFile, the resourceItems collection is populated.  However, when I create the radAreaSparkLine, no areaPoints are created, are nothing shows up in the timeBar.  Does it look like I am doing anything incorrectly?

Thanks,
Eric
<telerik:RadTimeBar Grid.Row="2" x:Name="radTimeBar">
    <telerik:RadTimeBar.Intervals>
        <telerik:HourInterval />
        <telerik:MinuteInterval/>
        <telerik:SecondInterval/>
        <telerik:MillisecondInterval/>
    </telerik:RadTimeBar.Intervals>
</telerik:RadTimeBar>

class ResourceItem
{
   public Dictionary<int, double> NumericalResourceValues
    {
        get { return numericalResourceValues ?? (numericalResourceValues = new Dictionary<int, double>()); }
    }
    public Dictionary<int, double> numericalResourceValues;
}

class Resource
{
    public ObservableCollection<ResourceItem> ResourceItems { get; set; }
}

void populateTimeBar()
{
int
startTimeColumnIndex = 1;
int dataColumnIndex = 1;           
var resourceParser = new ResourceParser();
Resource resource = resourceParser.PaserResourceFile(Constants.LogFilePath);
 
var rasl = new RadAreaSparkline
               {
                   ItemsSource = resource.ResourceItems,
                   XValuePath = "NumericalResourceValues[" + startTimeColumnIndex + "]",
                   YValuePath = "NumericalResourceValues[" + dataColumnIndex + "]"
               };
 
this.radTimeBar.Content = rasl;
this.radTimeBar.DataContext = resource.ResourceItems;
}
Yavor
Telerik team
 answered on 19 Jun 2012
1 answer
150 views
Hello,

How can I bind to a dateTime for the xvalues for the sparkline control? It gives me an argumentException if I try.  It seems to want a double value for the xvalue.

Thanks,
Eric
Evgenia
Telerik team
 answered on 19 Jun 2012
2 answers
123 views
Hi,

How do you disable the background colour of an editable region when a document is protected?

See my attached image. Notcie that the editable areas appear yellow. I want to make them transparent.

Thank you,

Rob
Robert
Top achievements
Rank 1
 answered on 18 Jun 2012
0 answers
83 views
Removed
Sam
Top achievements
Rank 1
 asked on 18 Jun 2012
8 answers
1.7K+ views
How do you hide the first column in the grid.  It's the selected row indicator column.  So when you select a cell in a row, the arrow indicator moves to that row.  It's the column that shows up before you data columns are generated.

THanks
Nikhil
Top achievements
Rank 1
 answered on 18 Jun 2012
2 answers
484 views
I can create RadContextMenu with a DropShadowEffect if I just show it in a Grid; however if I try and attach it to a Window.ContextMenu (or any other control) the shadow doesn't appear.  I've tried all sorts of variations using Resource Styles and ResourceDictionaries, and nothing works.  I'm including the MainWindow.xaml source and a screen shot showing the results.

<Window
    x:Class="WpfApplication2.MainWindow"
    x:Name="Window"
    Title="MainWindow"
    Width="640" Height="480"
    >
    <telerik:RadContextMenu.ContextMenu>
        <telerik:RadContextMenu ClickToOpen="True"
                                InheritDataContext="False">
            <telerik:RadContextMenu.Effect>
                <DropShadowEffect ShadowDepth="3" Opacity="0.445" RenderingBias="Quality"/>
            </telerik:RadContextMenu.Effect>
                <telerik:RadMenuItem Header="Copy" />
                <telerik:RadMenuItem Header="Paste" />
                <telerik:RadMenuItem Header="Cut" />
                <telerik:RadMenuItem IsSeparator="True" />
                <telerik:RadMenuItem Header="Select All" />
            </telerik:RadContextMenu>
    </telerik:RadContextMenu.ContextMenu>
 
    <Grid x:Name="LayoutRoot">
        <telerik:RadContextMenu
            Margin="105,53,247,147"
            ClickToOpen="True"
            InheritDataContext="False">
            <telerik:RadContextMenu.Effect>
                <DropShadowEffect ShadowDepth="3" Opacity="0.445" RenderingBias="Quality"/>
            </telerik:RadContextMenu.Effect>
            <telerik:RadMenuItem Header="Item 1">
                <telerik:RadMenuItem Header="Sub Item 1"/>
                <telerik:RadMenuItem Header="Sub Item 2"/>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Header="Item 2">
                <telerik:RadMenuItem Header="Sub Item 3"/>
                <telerik:RadMenuItem Header="Sub Item 4"/>
                <telerik:RadMenuItem Header="Sub Item 5"/>
            </telerik:RadMenuItem>
        </telerik:RadContextMenu>
    </Grid>
</Window>



What am I doing wrong?

Thanks in advance,
Steve



Steve
Top achievements
Rank 1
 answered on 18 Jun 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?