Telerik Forums
UI for WPF Forum
2 answers
168 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
295 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
345 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
148 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
209 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
112 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
401 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
152 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
160 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
1 answer
228 views
Hello,
I'm using the Telerik Web Editor, downloading the HTML and loading it into the RichTextBox. What do I need to do to make the RichTextBox look like the web editor?
Specifically, the bulleted lists do not match. At times, users will paste lists from Word into the web editor, and it looks great. If I get the HTML from the editor and reload it back into the editor, it looks the same, but if I load the HTML into the RichTextBox on the desktop, the bulleted list is not right. Here's my WPF code. Loading the following HTML into the web editor looks good, but loading into the RichTextBox on the desktop does not look right.

Thanks,
Scott

HtmlFormatProvider provider = new HtmlFormatProvider();           
string s = "<span style=\"font-family: Calibri;\">\r\n<ul style=\"list-style-type: square;\">\r\n    <li><span style=\"font-family: Wingdings;\">&micro;</span><span style=\"font-family: Calibri;\">You</span>\r\n    <ul style=\"list-style-type: circle;\">\r\n        <li><span style=\"font-family: Calibri;\">Are</span>\r\n        <ul style=\"list-style-type: square;\">\r\n            <li><span style=\"font-family: Calibri;\">Here</span>\r\n            <ul style=\"list-style-type: square;\">\r\n                <li><span style=\"font-family: Calibri;\">Yes</span></li>\r\n            </ul>\r\n            </li>\r\n        </ul>\r\n        </li>\r\n    </ul>\r\n    </li>\r\n</ul>\r\n</span>";
radRichTextBox.Document = provider.Import(s);
Mihail
Telerik team
 answered on 12 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?