Telerik Forums
UI for WPF Forum
1 answer
143 views
Hello,
I currently group data as follow:

<telerik:RadScheduleView.ViewDefinitions>

<telerik:DayViewDefinition Title="{res:Res Static=loc:ResourceIntervention.DayPlanning, Default='Jour!'}"/>

<telerik:WeekViewDefinition Title="{res:Res Static=loc:ResourceIntervention.WeekPlanning, Default='Semaine!'}"/>

<telerik:MonthViewDefinition Title="{res:Res Static=loc:ResourceIntervention.MonthPlanning, Default='Mois!'}"/>

</telerik:RadScheduleView.ViewDefinitions>

<telerik:RadScheduleView.GroupDescriptionsSource>

     <telerik:GroupDescriptionCollection>

         <telerik:DateGroupDescription />

         <telerik:ResourceGroupDescription ResourceType="Technicians" />

     </telerik:GroupDescriptionCollection>

</telerik:RadScheduleView.GroupDescriptionsSource>

I would like to group data by "date" and"Technicians" only in the day view definition.
In the week view definition, I would like to group by "Date" only.
Is it possible?

Kind regards,
Sebastien

Kalin
Telerik team
 answered on 29 Nov 2013
2 answers
83 views
Hello everyone,
I want to export StepLine to image in a console application, I have the same issue as in this thread, but with StepLine, I downloaded the attached solution, and I think that I have to change the ExportStyle but I dont know how.
Dotneter
Top achievements
Rank 1
 answered on 29 Nov 2013
4 answers
258 views

I have a ResourceDictionary xaml file that I use for centralized styling.  In it I'm trying to use the style below but am getting an error:
Error 1 The type 'telerik:ThemeResourceKey' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. C:\Development\BestpassEM\WPFInfrastructure\Styles\ControlStyles.xaml 36 65 Miscellaneous Files
I have the namespace def at the top of my file (xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" ) what else would I need?

I did have this working but then had to switch my target framework from 4.0 Client Profile to the full verion of 4.0 (to support the telerik ReportViewer control).  What could that have broken?

<Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType=TextBox}}" x:Key="EditTextStyle">
  <Setter Property="HorizontalAlignment" Value="Left" />
  <Setter Property="Margin" Value="2" />
  <Setter Property="Foreground" Value="#333333" />
  <!--<Setter Property="Height" Value="22" />
  <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />-->
  <Setter Property="Validation.ErrorTemplate" Value="{StaticResource validationTemplate}"/>
  <Style.Triggers>
    <Trigger Property="Validation.HasError" Value="True">
      <Setter Property="ToolTip"
      Value="{Binding RelativeSource={RelativeSource Self},
                      Path=(Validation.Errors).CurrentItem.ErrorContent}"/>
    </Trigger>
  </Style.Triggers>
</Style>
Evgenia
Telerik team
 answered on 29 Nov 2013
4 answers
146 views
Here's my xaml:

<telerik:RadMaskedNumericInput HorizontalAlignment="Stretch" Grid.Row="3" Grid.Column="1" Value="{Binding Port}"
                               IsClearButtonVisible="False" IsEnabled="{Binding IsReady}" Margin="0,5,0,0" Mask="d5"
                               AutoFillNumberGroupSeparators="False" AllowSkipPlaceholders="False" HorizontalContentAlignment="Left"
                               SelectionOnFocus="CaretToBeginning" Placeholder=" " AutoFillZeros="False" TextMode="PlainText"
                               InputBehavior="Insert"/>

This is a simple text field for a TCP/IP port. It should have 5 digits. When the input field is not in focus and the port is only 4 digits (e.g. 8000) the text is left-aligned. When the input field is in focus and being edited, it places what I believe is a placeholder for the empty left-most digit. It really should just leave it as a left-aligned 4-digit number. This is truly annoying.

In general, this control is horribly complicated and could be made simpler by making much of the above xaml the default values.
Joel
Top achievements
Rank 1
Iron
 answered on 29 Nov 2013
2 answers
179 views
Hello,

I have a RadMap with many information layers. I want to change any map item location by dragging it to a new position. I looked at DragDropManager but I don't think it's suitable for my needs, it seems to be more usefull for transferring data from one control (or application) to another rather than for changing location.

Is DragDropManager the way to go or should I use MouseMove events?
Also, is there any good example of a solution to my problem ?

Thanks
Abder Rezak
Top achievements
Rank 1
 answered on 28 Nov 2013
1 answer
60 views
Hi,

We are experiencing a strange behaviour with GridViewHeaderRow Indicator (top left corner cell of the grid, see http://www.telerik.com/help/wpf/radgridview-styling-indent-cells.html)

It simply disappears when the Theme is changed (between Expression_Dark and Office_Blue), which messes up the grid layout. The Theme change is applied changing Application Resource file containing required Resource Dictionaries from resource dll.

Application.Current.Resources.Source = ...Uri

Any ideas?
Stevo
Yoan
Telerik team
 answered on 28 Nov 2013
1 answer
255 views
Hi,

I seem to have come across an issue with setting the StartPoint and EndPoint properties of a RadDiagramConnection.  The connection is not redrawn.  Only when I move one of the end does it redraw properly.

It only happens when a StartPoint AND EndPoint is specified (ie not attached to any other shapes via the Source and Target properties).
So I cant programmatically move the connector at the moment which is an issue.  Can you help me please?


Here's a quick sample:

XAML:

<Grid>

<Grid.RowDefinitions>

<RowDefinition Height="*"/>

<RowDefinition Height="Auto"/>

</Grid.RowDefinitions>

<telerik:RadDiagram x:Name="_diagram" Grid.Row="0">

<telerik:RadDiagramConnection x:Name="_connector"

StrokeThickness="2"

StartPoint="100,100"

EndPoint="200,200" />

</telerik:RadDiagram>

<Button x:Name="_do"

Grid.Row="1"

Content="Move" Click="_do_Click" />

</Grid>


Code behind:
 
public partial class MainWindow : Window

{

public MainWindow()

{

InitializeComponent();

 

}

private void _do_Click(object sender, RoutedEventArgs e)

{

_connector.EndPoint = new Point(300, 300);

}

}


Pavel R. Pavlov
Telerik team
 answered on 28 Nov 2013
5 answers
252 views
Hello!

I'm using RadDataGridView. I expect, that when data is changed
(i'm using INotify, so that with PropertyChanged event is all ok), aggregate functions have to be recalculated. But this don't happening without additional moves.
On forums there are a lot of advices to use Grid.CalculateAggregate, no matter that it is not good for MVVM. But this function doesn't recalculate anything.
So i tested a lot of variants and i found one, that works how expected, but i think this solve is too complex for this problem.
After data changed i use this code
//Refreshing aggregate functions
            var items = MyGrid.Items;
            foreach (var item in items)
            {
                items.EditItem(item);
                items.CommitEdit();
            }

So my question is: can i recalculate aggregate functions more easily?
More over, attached code works only when i am grouping my collection only by Second property - this is huge problem too.
Here is the simple project which resolve the problem.
Dimitrina
Telerik team
 answered on 28 Nov 2013
1 answer
165 views
Hello,

        I am able to use all the functionality like zoom pan behavior,tooltip etc in my charts. So i have become more familiar with radcartesian chart but I am facing problem in implementing the Zoom and pan behavior in different way.
    
       Currently the built in functionality for pan and zoom behavior functionality works with mouse but i need to develop functionality on button click. i.e. if the user clicks the button then the chart should zoom or get to original state.

 Is there any way to do this functionality?

Thank You in Advance
Petar Marchev
Telerik team
 answered on 28 Nov 2013
2 answers
61 views
I'm trying to give the ability to the user to change between two modes ( with/without clustering). Right now I'm "nulling" the itemtemplate and removing the datamappings. what is the best and clean way to achieve this ?

ObservableCollection<MapItem> _dataItems = this.GetMapData();
 if (MapConfigurationProperties.IsClusteringEnabled)
 {
    this.informationLayer.DataMappings.RemoveAll();
    this.informationLayer.ItemTemplate = null;
    this.informationLayer.ClusteredDataSource = _dataSource;
 }
else
{
    this.informationLayer.ClusteredDataSource = null;
    this.informationLayer.ItemTemplate = this.radMap.Resources["itemTemplate"] as DataTemplate;
    this.informationLayer.DataMappings.Add(new DataMapping("Location", DataMember.Location));
    this.informationLayer.DataMappings.Add(new DataMapping("BaseZoomLevel",
                                           DataMember.ZoomLevel));
    this.informationLayer.DataMappings.Add(new DataMapping("ZoomRange", DataMember.ZoomRange));
    this.informationLayer.ItemsSource = _dataItems;
}

One strage thing that happen swithing from one mode to another is that the points one the map are translated despide the fact the the underline data are unchanged.



BOARD LAB
Top achievements
Rank 1
 answered on 28 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?