Telerik Forums
UI for WPF Forum
5 answers
187 views
Hi,

I'm interested to implement some sort of annotation tool using the WPF RadImageEditor as a basis. I'm glad there is already a Text Tool in the demo version. But there are a few things lacking which I would like to implement.

1) Currently seems that once a text object is created, it cannot be reselected and moved/edited. Is it possible to implement such that a previously created text object can still be selected upon clicking on it?

2) Are there any existing tool for drawing lines/arrows/borders? If not, do you have some sample code to create such tools? Would be good to have such features in an annotating software.

3) Does the ImageEditor have a panning feature? I.e. mouse click and hold and drag to pan the image? Any idea how to implement this?

Thanks for your help.
Iva Toteva
Telerik team
 answered on 13 Sep 2013
1 answer
106 views

Hi,
We noticed that the export to pdf function do not realy generate a good pdf files.

In fact we use the export function to generate pdf files, then these pdf files should be indexed to simplify our search function.

But when we try to index the pdf file generated by the RadDocument, we have an exception because the the pdf files is corrupted

and we try to open the file by Adobe Reader, it opened as modified file. 

Do you know how to prevent this issue? 
Kammen
Telerik team
 answered on 13 Sep 2013
4 answers
140 views
Hi,

  1. I installed a demo version from a website just to see what controls there are that I can use and it installs a clickonce app with version 2013.2.805.40
  2. I install an actual msi from file server which has a separate set of dlls with different version 2013.2.0724.45 (which is supposed to be used for development, not demo)
  3. Aparently there isn’t a proper 805 version of msi downloadable from the website
  4. When I try to compile my project that uses MSI version I constantly get this
    1. "Could not load file or assembly. Telerik.Windows.Controls, Versrion=2013.2.805.40, Culture=...."
    2. Which is saying that dll I have referenced needs version 805 instead of the one I have 724 even though I never installed 805 other than demo app
    3. There are no references to 805 anywhere in my project, why it wants to link to those dlls is beyond me...
  5. When I try to remove demo app (which is supposed to remove any trace of that 805 version), I get the same error
  6. When I try a different version msi installed after I blew 805 version (I think I tried 905) I get the same error. One would think that getting a fresh set of dlls without any remnants to 805 left in the system would fix, but no….

Your help is very much appreciated... I'm at a halt stop where I can't use any Telerik controls, and I don't know how to clean it up...
Petya
Telerik team
 answered on 13 Sep 2013
3 answers
200 views
Hi,

i use your orgchart example which is great, is it possible to create a contextmenu on each node?

thanks
best Regards
rene
Pavel R. Pavlov
Telerik team
 answered on 13 Sep 2013
3 answers
91 views
Hi Need a control which could allow drag drop and populate filed vertical rather then horizontal what we have in telerik datagrid view
also it should allow column and row at the same time .i am attaching the png file to see the outlook of control
if we drag drop the run in the grid it will fill vertical and populate it
Rosen Vladimirov
Telerik team
 answered on 13 Sep 2013
1 answer
152 views
I've been working with a chart and I've been running into a number of binding issues. The current exception I'm getting is 

"Cannot modify the data points that belong to a databound ChartSeries instance."
 at Telerik.Charting.ChartSeriesModel.OnDataPointsModified() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Engine\Series\ChartSeriesModel.cs:line 89

I'm using an MVVM programming model where the VM utilizes a timer to refresh all the chart data every 30 seconds. All the items I'm binding to are Observable Collections. The chart will operate over several hours without problem but running over the course of a few days the chart will crash. I need to be able to run the application continuously without crashing. 

Here is my view:
public partial class SystemStatusChart : UserControl
    {
        public SystemStatusChart()
        {
            InitializeComponent();
            vm = new SystemStatusChartViewModel();
            DataContext = vm;
 
            MainWindow.CloseDataContext += MainWindow_CloseDataContext;
        }
 
        void MainWindow_CloseDataContext()
        {
            vm = (SystemStatusChartViewModel)DataContext;
 
            if (vm != null)
            {
                vm.RefreshTimer.Stop();
                vm = null;
                DataContext = null;
            }
        }
        private SystemStatusChartViewModel vm;
    }


The view model is relatively long so I've made an abbreviated version. This should give you an idea of what I'm doing.
class SystemStatusChartViewModel : ViewModelBase
    {
        public Timer RefreshTimer;
 
        public SystemStatusChartViewModel()
        {
            RefreshTimer = new Timer();
            RefreshTimer.Elapsed += DataService;
            RefreshTimer.Interval = 1000;
            RefreshTimer.Enabled = true;
        }
 
        public async void DataService(object oEventArgs e)
        { 
	    RefreshTimer.Stop();

	    //Capture Data, error checking, logging
	    StatusData = temp1;		//update data
	    ForecastData = temp2;	//update data
            RefreshTimer.Start();         }         /// <summary>         /// The <see cref="StatusData" /> property's name.         /// </summary>         public const string StatusDataPropertyName = "StatusData";         private RadObservableCollection<StatusChartItem> _statusData = new RadObservableCollection<StatusChartItem>();         /// <summary>         /// Sets and gets the StatusData property.         /// Changes to that property's value raise the PropertyChanged event.          /// </summary>         public RadObservableCollection<StatusChartItem> StatusData         {             get             {                 return _statusData;             }             set             {                 if (_statusData == value)                 {                     return;                 }                 RaisePropertyChanging(StatusDataPropertyName);                 _statusData = value;                 LastUpdate = new ObservableCollection<DateTime>() { DateTime.Now };                 FirstUpdate = new ObservableCollection<DateTime>() { DateTime.Now.AddDays(-2) };                 RaisePropertyChanged(StatusDataPropertyName);             }         }         /// <summary>         /// The <see cref="ForecastData" /> property's name.         /// </summary>         public const string ForecastDataPropertyName = "ForecastData";         private RadObservableCollection<StatusChartItem> _forecastDataList = new RadObservableCollection<StatusChartItem>();         /// <summary>         /// Sets and gets the "ForecastData property.         /// Changes to that property's value raise the PropertyChanged event.          /// </summary>         public RadObservableCollection<StatusChartItem> ForecastData         {             get             {                 return _forecastDataList;             }             set             {                 if (_forecastDataList == value)                 {                     return;                 }                 RaisePropertyChanging(ForecastDataPropertyName);                 _forecastDataList = value;                 RaisePropertyChanged(ForecastDataPropertyName);             }         }

-Alan
Petar Kirov
Telerik team
 answered on 13 Sep 2013
2 answers
258 views
I'm trying to use the RadMaskedNumericInput control in non-masking mode, and using the StringFormat to define an integer. According to the Standard Numeric Format Strings article from Microsoft, which Telerik references for using string formats, I should use either a "D" or "d" for the format string to get the desired result. However on running the code where I set it to that I get an exception that says "Format specifier was invalid" with the following stack trace:

   at System.Number.FormatDouble(Double value, String format, NumberFormatInfo info)
   at System.Double.ToString(String format, IFormatProvider provider)
   at Telerik.Windows.Controls.RadMaskedNumericInput.CoerceTextNoMask(Nullable`1 value)
   at Telerik.Windows.Controls.RadMaskedNumericInput.CoerceText(Nullable`1 value, Int32& selectionStart)
   at Telerik.Windows.Controls.RadMaskedNumericInput.CoerceTextOverride(Int32& selectionStart)
   at Telerik.Windows.Controls.RadMaskedInputBase.CoerceText()
   at Telerik.Windows.Controls.RadMaskedInputBase.ProcessValueChanged()
   at Telerik.Windows.Controls.RadMaskedInputBase.OnFormatStringChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.Baml2006.WpfMemberInvoker.SetValue(Object instance, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)

Is there any way to limit the box to integers in no-mask mode?  Thanks!
Robert
Top achievements
Rank 1
 answered on 12 Sep 2013
1 answer
92 views
Hello,

We discovered a case when the RtfDataProvider doesn't work properly. A project to reproduce this case is included here: TestSolution.

The project contains a test.msg which is an email containing a line. When the contents of this mail are copied to the richtextbox the dataprovider cannot convert the line and instead produces no rtf at all. Could you please fix this?

Regards,

Ivar Tiller
ReflexSystems

Petya
Telerik team
 answered on 12 Sep 2013
2 answers
436 views
hi there,

I'm loading a bunch of JPG files in one ListBox and then when the final user do doble-click mouse event my aim is just load the one JPG into Telerik control.
How can I do that??


Private Sub ListBox_MouseDoubleClick(sender As Object, e As MouseButtonEventArgs)
 
       Dim s As String = ""
 
       BodyWorkAndPaintingTool.?????????????  = TryCast(sender,ListBox).Items(0).ToString
   End Sub


  <telerik:RadImageEditorUI x:Name="BodyWorkAndPaintingTool" ContextMenuOpening="BodyWorkAndPaintingTool_ContextMenuOpening" Grid.ColumnSpan="4" Margin="10,49,33,10" Grid.Row="1" Grid.RowSpan="4">
            <telerik:RadImageEditorUI.ImageToolsSections>
                <telerik:ImageToolsSection Header="{Resx DisenadorBlur}"  >
 
                    <telerik:ImageToolItem ImageKey="Resize" Text="Resize" Command="commands:ImageEditorRoutedCommands.ExecuteTool">
                        <telerik:ImageToolItem.CommandParameter>
.....
.....
.....

Thanks in advance,
Petya
Telerik team
 answered on 12 Sep 2013
2 answers
168 views
Hi -

I have 2 user controls which are bound to the same ViewModel. See attached diagram. I am using the Aggregate Functions to get Sum,Count and average. 
UC2 - where the grid exists - doesnt need to show these aggregate values
UC1 - has textboxes which will be displaying the aggregate values. 

Since they both have the datacontext of the a same CommonViewModel - how can i set a property from UC2 of an aggregate value to a ViewModel Property - so then be leveraged in UC1. 

Obviously if I had to show the values in UC2 directly - then i can do XAMl based simple stuff like this - but this doesnt help me here - since I want to show these values in UC1 (and not UC2)
<StackPanel Grid.Row="1">
           <TextBlock Margin="10,0,0,0" Text="{Binding AggregateResults[\AppCount\].FormattedValue, ElementName=FIBRE_App_Stats}" />
           <TextBlock Margin="10,0,0,0" Text="{Binding AggregateResults[\GrandTotal\].FormattedValue, ElementName=FIBRE_App_Stats}" />
 </StackPanel>


Am attaching a complete working sample solution also to highlight the issue. Please see the CommonViewmodel and the 3 properties in there which i want to set with the aggregate value calculated from the gird in UC2.

Link for the working solution is as follows (since i cant upload it here) - https://github.com/pratikrshah/telerikaggsample


Can somebody please help

Thanks
Dimitrina
Telerik team
 answered on 12 Sep 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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?