Telerik Forums
UI for WPF Forum
1 answer
146 views
I'm sure I am just missing something simple. I would like to limit to just a single appointment selected, not multiple appointments. Just can't find any documentation on it.

Thanks
Yana
Telerik team
 answered on 14 Feb 2014
2 answers
202 views
Hi,

I'm using the WeekViewDefinition and I would like to determine when the user click using his mouse right button if he clicked on an appointment, an empty slot or in the header of a columns where the control display the date, is so, I need to know on whivh volumn he clicked.

Thank's
Alain
Christie Admin
Top achievements
Rank 1
 answered on 13 Feb 2014
7 answers
338 views
Hello all! I'm currently evaluating Telerik's tools for a green field LoB project. Skipping to the nitty gritty, I'm currently trying to use the RadOutlookBar as a Prism region. I've followed the instructions here, but the solution feels a little, well... cheesy. In particular, I'm not really grooving on this recommendation...

public void Initialize()
{
   // Register views here.
   this.regionManager.RegisterViewWithRegion("OutlookBarRegion", () =>
   {
      return new ModuleAView().OutlookBarItem;
   };
}

See, in our app, the shell contains an OutlookBar and the idea is that modules will register views that contain an OutlookBarItem. Okay, so the solution above works, but it's really just a work-around. Our issue is that this forces us to handle views that contain OutlookBarItems in a wholly different manner than all of our other views. Blech. Ideally, I should be able to simply register the view without the lambda silliness.

So any ideas on alternatives? Do I need to write a Region Adapter that will enumerate each OutlookBarItem in each item found in the NewItems list when items are added to a region? Does Telerik have a suggestion?

-Greg
Pavel R. Pavlov
Telerik team
 answered on 13 Feb 2014
2 answers
389 views
Hi,

I am using MVVM pattern to build a Pivot table per user's request. Because of the MVVM pattern, I define the LocalDataSourceProvider for the pivot grid and assign its ItemsSource in the ViewModel. My issue is that the pivot is showing the data that was assigned to the ItemsSource first time. E.g.: When I bind the the ItemsSource to my list on first time, the Pivot is showing the correct data on screen. After that, no matter how I change the ItemsSource, the Pivot is always showing the data assinged on the first assignment.

Here is the code that relate to the issue.

In xaml:
                    <pivot:RadPivotGrid x:Name="pivot1" Grid.Column="0" DataProvider="{Binding DataSource}"  
                                          VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5"
                                        UseLayoutRounding="False" d:LayoutRounding="Auto" FontSize="10" >
                    </pivot:RadPivotGrid>

                    <pivot:RadPivotFieldList Grid.Column="1" DataProvider="{Binding DataSource}" Margin="-1,0,1,0" FontSize="10" />

In ViewModel:
        private LocalDataSourceProvider _dataSource;
        public LocalDataSourceProvider DataSource
        {
            get { return _dataSource; }
            set
            {
                _dataSource = value;
                RaisePropertyChanged("DataSource");
            }
        }

        private void InitialDataSource()
        {
            _dataSource = new LocalDataSourceProvider();
            _dataSource.RowGroupDescriptions.Add(new PropertyGroupDescription { PropertyName = "ProductType" });
            _dataSource.RowGroupDescriptions.Add(new PropertyGroupDescription { PropertyName = "CashType" });

            _dataSource.ColumnGroupDescriptions.Add(new DateTimeGroupDescription { PropertyName = "ValueDate",Step=DateTimeStep.Day});
            _dataSource.AggregateDescriptions.Add(new PropertyAggregateDescription { PropertyName = "Value", StringFormat = "#,#; -#,#" });
        }

        private void GetDataSource()
        {
            DataSource.ItemsSource = _reports;

            RaisePropertyChanged("DataSource");
        }

A button click event will trigger re-assignment of the _reports and calls the GetDataSource function.

Please take a look and let me know how I can correct.

Many thanks,
guobian
guobian
Top achievements
Rank 1
 answered on 13 Feb 2014
1 answer
180 views
We are using the RadRichTextBox for a TextEditor and ran into an issue where we could freely paste content that was copied from inside of our editor but could not paste from external sources (Word, Notepad, etc.). I did some searching and found http://www.telerik.com/help/wpf/radrichtextbox-features-clipboard-support.html which tells me that the FormatProviders DLLs have to be "referenced" by the application.

I go digging and find that I do indeed have the DLLs included with my application but they are in a sub-folder named Common. I have many other DLLs also in the Common sub-folder and all are loading fine via the app.config entry <probing privatePath="Common" />.

Just because I'm curious I copy all of the FormatProvider DLLs out of the Common sub-folder and into the same folder as the application and now I can paste from Word and Notepad. Move them back to Common and can no longer paste.

I've also had to move the Dictionary DLL out of the Common folder to get it to work properly.

Is there anything that I can do to have the privatePath recognized by the Telerik DLLs so that I can store them with the rest of my Common files?

Many thanks!
Boby
Telerik team
 answered on 13 Feb 2014
3 answers
236 views
Hi,

i have a chart based on a list of some X,Y-Values displayed by the ScatterLineSeries. Everything works fine so far. 

Now I need to be able to zoom in to the chart, but after adding the ChartPanAndZoomBehavior the line “jumps” between the points during zooming or moving.  
See attached image for an example. On the first image the line is correct, on the secon image after moving the chart or continuing zooming the point 3 is no longer part of the line.

How can I assure, that the line does not change during zooming in?


Thanks,
Carsten



Some parts of the XAML
          <telerik:RadCartesianChart.Resources>
 <DataTemplate x:Key="DataPoint">
              <Ellipse Width="8"
                     Height="8"
                     Fill="DarkGray"
                     ToolTip="{Binding DataItem.ToolTipText}"/>
            </DataTemplate>
            <Style TargetType="telerik:PanZoomBar">
              <Setter Property="Visibility" Value="Collapsed"/>
            </Style>
          </telerik:RadCartesianChart.Resources>
  
          <telerik:RadCartesianChart.Behaviors>
            <telerik:ChartSelectionBehavior 
            DataPointSelectionMode="Single" 
            HitTestMargin="4"/>

            <telerik:ChartPanAndZoomBehavior
            MouseWheelMode="Zoom"
            DragMode="Pan"
            ZoomMode="Both"/>
            
          </telerik:RadCartesianChart.Behaviors>

          <telerik:RadCartesianChart.Grid>
            <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
          </telerik:RadCartesianChart.Grid>

          <telerik:RadCartesianChart.HorizontalAxis>
            <telerik:LinearAxis LabelFitMode="MultiLine" Minimum="0">
              <telerik:LinearAxis.LabelTemplate>
                <DataTemplate>
                  <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding}"/>
                    <TextBlock Text="..."/>
                  </StackPanel>
                </DataTemplate>
              </telerik:LinearAxis.LabelTemplate>
            </telerik:LinearAxis>
          </telerik:RadCartesianChart.HorizontalAxis>

          <telerik:RadCartesianChart.VerticalAxis>
            <telerik:LinearAxis Minimum="0" >
              <telerik:LinearAxis.LabelTemplate >
                <DataTemplate>
                  <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding}"/>
                    <TextBlock Text="..."/>
                  </StackPanel>
                </DataTemplate>
              </telerik:LinearAxis.LabelTemplate>
            </telerik:LinearAxis>

          </telerik:RadCartesianChart.VerticalAxis>

          <telerik:ScatterLineSeries
          PointTemplate="{StaticResource DataPoint}"
          ItemsSource="{Binding myCurveName.CurvePoints}"
          XValueBinding="myXValuePropertyName" 
          YValueBinding="myYValuePropertyName" >
         </telerik:ScatterLineSeries>
Petar Marchev
Telerik team
 answered on 13 Feb 2014
5 answers
137 views
Trying to dynamically create TileGroups in code behind, but for some reason, Telerik.Windows.Controls doesn't not contain the TileGroup type.

Any help?
Maya
Telerik team
 answered on 13 Feb 2014
6 answers
455 views
hi i am having troubles reusing the one of the tab content
i need to dynamically adding tab with the given content. but i tried all the method i can that couldnt help me loading the xaml into tab

i need to load xaml usercontrol into 2nd radtabcontrol/radtabItems
thanks in advance

<telerik:RadTabItem Padding="4 3" x:Name="radTabLoanDetails">
                <telerik:RadTabItem.Header>
                    <TextBlock Text="Loan Detials"  Margin="19 2 19 0" />
                </telerik:RadTabItem.Header>
                <telerik:RadTabItem.Content>
                    <Border   Style="{StaticResource borderStyle}" >
                        <telerik:RadTabControl x:Name="newTab" />
                    </Border>
                </telerik:RadTabItem.Content>
            </telerik:RadTabItem>

Zarko
Telerik team
 answered on 12 Feb 2014
2 answers
187 views
Hi Guys,

we are showing a simple doughnut series chart and would like to implement drilldown after user selects a part

<telerik:RadPieChart>
            <telerik:RadPieChart.Series>
            <telerik:DoughnutSeries  ShowLabels="False" ItemsSource="{Binding Items}" ValueBinding="Value">
                    
                <telerik:DoughnutSeries.LabelDefinitions>
                        <telerik:ChartSeriesLabelDefinition Binding="Name"/>
                    </telerik:DoughnutSeries.LabelDefinitions>
 
                    <telerik:DoughnutSeries.LegendSettings>
                        <telerik:DataPointLegendSettings TitleBinding="Name" />
                </telerik:DoughnutSeries.LegendSettings>                  
 
                </telerik:DoughnutSeries>
            </telerik:RadPieChart.Series>
             
            <telerik:RadPieChart.Behaviors>
                <telerik:ChartSelectionBehavior DataPointSelectionMode="Single"
                                                SelectionChanged="ChartSelectionBehavior_SelectionChanged"   />
            </telerik:RadPieChart.Behaviors>
        </telerik:RadPieChart>

The ChartSelectionBehavior_SelectionChanged is never fired.

Note that this works fine with PieSeries, but does not work with DoughnutSeries

Any ideas?
Stevo
Stevo
Top achievements
Rank 1
 answered on 12 Feb 2014
1 answer
188 views
I read this table http://www.telerik.com/help/wpf/touch-support.html
What events generated for tab control? Swipe, example?
Boris
Telerik team
 answered on 12 Feb 2014
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?