Telerik Forums
UI for WPF Forum
1 answer
271 views
Hi,
I want to use a RowStyleSelector in a RadGridView to make rows Expandable or not depends on the value of a column of my ItemSource.
ItemSource is a Dataset that contains a DataTable (ID, Name, Type, SerialNumber, ...).
I need to make rows expandable if the Type ='Updated'.

My actual code (below) is not working:
 
<telerik:RadGridView.RowStyleSelector>
                          <telerik:ConditionalStyleSelector>
                                <telerik:StyleRule Condition="Type = Updated">
                                    <Style TargetType="rad:GridViewRow">
                                        <Setter  Property="IsExpandable" Value="False" />
                                    </Style>
                                </telerik:StyleRule>
                            </telerik:ConditionalStyleSelector>
                      </telerik:RadGridView.RowStyleSelector> 


Yoan
Telerik team
 answered on 13 Sep 2013
1 answer
278 views
I'm evaluating the PDF Viewer and it works great! However, when I try to use the code for the thumbnail demo as a starting point in my application I'm getting an exception. The code I'm using is that which you can copy and paste from the Telerik WPF Controls Examples application, where you can switch between Example and Code.

Is it possible to get the actual .csproj project for the PDF thumbnail viewer sample?

Thank you.
Petya
Telerik team
 answered on 13 Sep 2013
5 answers
227 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
113 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
152 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
240 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
101 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
160 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
266 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
103 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
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?