Telerik Forums
UI for WPF Forum
3 answers
256 views
Hello,

I've just found an article explaining how to setup the RadRibbonWindow as main window
http://blogs.telerik.com/blogs/posts/10-05-03/using-radribbonwindow-with-radribbonbar-for-wpf.aspx, is it possible to do a similar thing with the RadWindow control?


Thanks.
Yana
Telerik team
 answered on 14 Feb 2014
1 answer
82 views
I'm using RadWindow.Confirm to let the user confirm some content that is wider than 400 units. 

Unfortunately RadWindow.Confirm shows the content with a horizontal scoll bar (see attachment). 

How do I change this so this, so that the RadWindow.Confirm dialog resizes to its content if it gets wider?

Yana
Telerik team
 answered on 14 Feb 2014
2 answers
219 views
I am attempting to place a RadChart with the legend collapsed within the small content RadFluidContentControl of a tileview, but setting the ChartLegend visibility to "Collapsed" does not appear to work.  However, if I utilize the same XAML code within a usercontrol and display the usercontrol in the small content RadFluidContentControl it does collapse the legend.  Any idea how to resolve this using in-line XAML within the RadFluidContentControl rather than utilize a usercontrol for the display of the chart?

My sample code for the specification of the tileview's content:

<DataTemplate x:Key="ContentTemplate">
    <telerik:RadFluidContentControl ContentChangeMode="Automatic" State="Normal" NormalToSmallThreshold="250 250" NormalToLargeThreshold="500 500">
     <telerik:RadFluidContentControl.SmallContent>
      <Grid DataContext="{Binding Source={StaticResource SampleDataSource}}">
       <telerik:RadChart x:Name="chtTrendingChart_Small" telerik:StyleManager.Theme="Windows8" ItemsSource="{Binding Collection}">
        <telerik:RadChart.DefaultView>
         <telerik:ChartDefaultView>
          <telerik:ChartDefaultView.ChartLegend>
              <telerik:ChartLegend Visibility="Collapsed" />
            </telerik:ChartDefaultView.ChartLegend>
          </telerik:ChartDefaultView>
        </telerik:RadChart.DefaultView>
       </telerik:RadChart>
      </Grid>
     </telerik:RadFluidContentControl.SmallContent>
     <telerik:RadFluidContentControl.Content>
      <local:UC_SmallGraph/>
     </telerik:RadFluidContentControl.Content>
     <telerik:RadFluidContentControl.LargeContent>
      <local:UC_LargeContent/>
     </telerik:RadFluidContentControl.LargeContent>
    </telerik:RadFluidContentControl>
   </DataTemplate>
   
Martin Ivanov
Telerik team
 answered on 14 Feb 2014
2 answers
179 views
Hi there,

I would like to share my style resource across multiple chart controls, But I am unable to do this as "SliceStyles" hasn't got setter.

In short I want to assign following resource to SliceStyles.
  <x:Array Type="Style" x:Key="styleList">
        <Style TargetType="Path">
            <Setter Property="Fill" Value="#FF5661"/>
        </Style>
        <Style TargetType="Path">
            <Setter Property="Fill" Value="#FF56DA"/>
        </Style>
         .......


.......
        <Style TargetType="Path">             <Setter Property="Fill" Value="#89638E"/>         </Style>     </x:Array>

So far I tried below code, which will not work, Is there any workaround OR How should we address this in best way.
 <telerik:PieSeries ItemsSource="{Binding Items}" SliceStyles="{Binding Path=., Source={StaticResource styleList}}"
 .....

Note: We do not want to do following.
  <telerik:PieSeries.SliceStyles>
         <Style TargetType="Path">
              <Setter Property="Fill" Value="#FF5661"/>
         </Style>
.......
        <Style TargetType="Path">             <Setter Property="Fill" Value="#89638E"/>         </Style>
  </telerik:PieSeries.SliceStyles>

Dipak
Top achievements
Rank 1
 answered on 14 Feb 2014
2 answers
136 views
Hi,

I'm creating a ScatterPointSeries at runtime and have had no problem adding it to my ChartView. I want to do this multiple times though so I want to apply a different brush to each.

ScatterPointSeries sps = new ScatterPointSeries();
brush = Brushes.Red; // This will be dynamic
sps.ItemsSource = source;
sps.XValueBinding = new PropertyNameDataPointBinding() { PropertyName = XPath };
sps.YValueBinding = new GenericDataPointBinding<T, float>() { ValueSelector = Function };

Chart.Series.Add(sps);


How can I apply the brush to the ScatterPointSeries points? I've experimented with a datatemplate, but this will only let me style all the scatterpoints to use the same brush.

Thanks,

Rob
Martin Ivanov
Telerik team
 answered on 14 Feb 2014
3 answers
704 views
I have a view where I drag from a GridView to a ScheduleView. In the constructor of the View (xaml code behind) I initialize the following events.

DragDropManager.AddDragInitializeHandler(Grid, OnDragInitialize);
DragDropManager.AddGiveFeedbackHandler(Grid, OnGiveFeedback);
DragDropManager.AddDragDropCompletedHandler(Grid, OnDragDropComplete);
DragDropManager.AddDragOverHandler(ScheduleView, OnDragOver);
DragDropManager.AddDragEnterHandler(ScheduleView, OnDragEnter);

All events are fired except for the OnDragOver...
If I subscribe the Dragover to the source Grid I get the event but only when dragging over the Grid (as expected I assume) not when entering the ScheduleView.
How can I enable the DragOver events?
Kalin
Telerik team
 answered on 14 Feb 2014
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
204 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
343 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
402 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
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?