Telerik Forums
UI for WPF Forum
4 answers
269 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
154 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
189 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
63 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
270 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
261 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
171 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
62 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
1 answer
149 views

The first time I click on the expander for a load on demand item, the little circle appears, but never goes away.  The LoadOnDemand event doesn't appear to fire as well.  When I click on a second on demand item I receive the following exception...


 'LoadingVisualAngleTransform' name cannot be found in the name scope of 'System.Windows.Controls.ControlTemplate'.



Here is the xaml...

<telerik:RadTreeView x:Name="ExtendedTreeView"
     ItemsSource="{Binding TreeViewItems}"
     BorderThickness="0"
     IsEditable="True"
     IsLoadOnDemandEnabled="True"
     LoadOnDemand="ExtendedTreeView_LoadOnDemand"
     telerikAnimation:AnimationManager.IsAnimationEnabled="False"
     FocusVisualStyle="{x:Null}">


















Steve
Top achievements
Rank 1
 answered on 27 Nov 2013
1 answer
119 views
Hi,

is it possible to reset grid columns layout on demand, as if new data was just loaded? Sometimes the users resize/reorder columns and we would like to reset all those changes to original (auto size)

Thanks,
Stevo
Dimitrina
Telerik team
 answered on 27 Nov 2013
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?