Telerik Forums
UI for WPF Forum
1 answer
178 views
Hi,

I got following exception when I drop the the RadChartesianChart to the empty WPF project, move it and then resizing the chart size in design time?!

System.InvalidOperationException

Cannot set a property on object 'System.Windows.Media.TranslateTransform' because it is in a read-only state.

at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value) at Telerik.Windows.Controls.ChartView.CartesianAxis.UpdateAxisLine(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\CartesianAxis.cs:line 78 at Telerik.Windows.Controls.ChartView.LineAxis.UpdateUICore(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\LineAxis.cs:line 64 at Telerik.Windows.Controls.ChartView.PresenterBase.UpdateUI(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\PresenterBase.cs:line 204 at Telerik.Windows.Controls.ChartView.RadChartBase.UpdateUICore(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 461 at Telerik.Windows.Controls.ChartView.PresenterBase.UpdateUI(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\PresenterBase.cs:line 204 at Telerik.Windows.Controls.ChartView.RadChartBase.CallUpdateUI() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 1001 at Telerik.Windows.Controls.ChartView.RadChartBase.ArrangeOverride(Size finalSize) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 708

....

XAML:

 

 

 

<Grid>

 

 

 

 

<telerik:RadCartesianChart HorizontalAlignment="Left" Margin="12,12,0,0" Name="radCartesianChart1" VerticalAlignment="Top" Height="265" Width="453">

 

 

 

 

<telerik:RadCartesianChart.HorizontalAxis>

 

 

 

 

<telerik:CategoricalAxis />

 

 

 

 

</telerik:RadCartesianChart.HorizontalAxis>

 

 

 

 

<telerik:RadCartesianChart.VerticalAxis>

 

 

 

 

<telerik:LinearAxis />

 

 

 

 

</telerik:RadCartesianChart.VerticalAxis>

 

 

 

 

<telerik:BarSeries>

 

 

 

 

<telerik:BarSeries.DataPoints>

 

 

 

 

<telerik:CategoricalDataPoint Label="10" Value="10" />

 

 

 

 

<telerik:CategoricalDataPoint Label="20" Value="20" />

 

 

 

 

<telerik:CategoricalDataPoint Label="30" Value="30" />

 

 

 

 

</telerik:BarSeries.DataPoints>

 

 

 

 

</telerik:BarSeries>

 

 

 

 

</telerik:RadCartesianChart>

 

 

 

 

</Grid>

 



I'm using 2012.1.326.40 version of radControls

What could be the reason?

Regards,
Auvo
Nikolay
Telerik team
 answered on 17 May 2012
9 answers
267 views
Hello everybody :)

My scenario is the following: 

I have a TreeView with services grouped by category just like this:

Cateogory 1:
Service 1
Service 2
Category 2:
Service 3
Service 4:

And another empty TreeView. The user can drag and drop services from the "services-tree" to the "empty-tree".
I have set the IsDragDropEnable = true, and the default behavior is great but I want to customize the default behavior of the TreeView to achieve the following:

1.- When the user drag an drop successfully a service, this service should not be removed from the "service-tree".
2.- Prevent that the user drop the same service into the "empty-tree" more than once. The "empty-tree" cannot host the same item more than once.
3.- Allow that the user reorder the services on the "empty-tree", i.e. allow drag and drop for the items of the "empty-tree" before or after it current position but no inside of each other.

Can you tell me please which events I have to handle to achieve this behavior? If possible I really appreciate if you add some code snippets.  

Is this possible?
I hope you can help me.

Best Regards
Jorge

Petar Mladenov
Telerik team
 answered on 17 May 2012
10 answers
469 views
Good afternoon,

I'm trying to build my own Autocomplete (intellisense) RadRichTextBox. For the autocomplete popup I'm using your RadListView.

<
Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<!-- RichTextBox -->
<telerik:RadRichTextBox x:Name="radRichTextBox" AcceptsReturn="True" Width="800" Margin="10" Grid.Column="0" DocumentContentChanged="radRichTextBox_DocumentContentChanged">
<telerik:RadRichTextBox.Effect>
<DropShadowEffect ShadowDepth="10" Color="Gray" Opacity=".4" Direction="320" RenderingBias="Performance" />
</telerik:RadRichTextBox.Effect>
<telerik:RadRichTextBox.LayoutTransform>
<ScaleTransform ScaleX="{Binding ElementName=Scale, Path=Value}" ScaleY="{Binding ElementName=Scale, Path=Value}" />
</telerik:RadRichTextBox.LayoutTransform>
<telerik:RadDocument x:Name="radDocument" />
</telerik:RadRichTextBox>
<!-- AutoCompltete ListBox-->
<telerik:RadListBox Width="100" Height="100">
<ListBoxItem Content="Item 1" />
<ListBoxItem Content="Item 2" />
<ListBoxItem Content="Item 3" />
<ListBoxItem Content="Item 4" />
</telerik:RadListBox>
</Grid>

Do you know how I can get the caret position and set the RadListBox position next to it / slightly offset?

Thank you very much for your time,

Rob
Robert
Top achievements
Rank 1
 answered on 16 May 2012
1 answer
105 views
We are using HtmlFormatProvider to export the content of a RichTextBox, you can set the styles to be exported Inline instead of creating classes, but, is there a way to export it on Html markup only? 
<i>tag</i>
instead of 
<span style="font-style: italic"> tag</span>
Thanks in advance

Mihail
Telerik team
 answered on 16 May 2012
2 answers
388 views
I know this is an odd request and probably not Ideal but is there anyway to set a wpf checkbox to be checked when the binding value is false and unchecked when it is true?  The checkbox is bound to a field in a database object and because of a legacy application I can't just reverse the values in the table. 
Dev
Top achievements
Rank 1
 answered on 16 May 2012
2 answers
121 views
Good morning,
I've followed the example provided by BreadCrumb control, but when I try to enter in TextMode text path isn't display (BreadCrumb is white).
In my output console there are two strange errors:
1) "System.Windows.Data Error: 25 : ItemTemplate and ItemTemplateSelector are not valid for item.; Type='RadBreadcrumbBarItem'"; it occurs at application startup.
2) "System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=(0); DataItem=null; target element is 'RotateTransform' (HashCode=36078627); target property is 'Angle' (type 'Double')"; it occurs if I try to enter in TextMode.

Could you help me?

NOTE: problems occur with dlls version 2012.1.0326.35 and also with the last nightly build 2012.1.0507.35 
NOTE 2: my program is build on Framework 3.5 and I'm using telerik dll for 3.5 (but I've tested also with 4.0 but problems persist)
Elfo
Top achievements
Rank 1
 answered on 16 May 2012
1 answer
629 views
Hi 

I am having issues setting the RadWindow.Alert window from Code. The method I tried is as follows:

RadWindow.Confirm(
                new DialogParameters
                    {
                        Content = new ContentControl { Width = 800, Height = 600, Content = editorView },
                        DialogStartupLocation = WindowStartupLocation.CenterScreen,
                        Closed = (sender, e) => this.AddChartSeriesGroupClosed(sender, e, newChartSeriesGroup),
                    });

The window size using the above code seems to be 400x600 which is coincidental i.e. it is the size regardless of the Width and Height values used above. I have tried MinWidth and MinHeight as well.

Any ideas?
Yana
Telerik team
 answered on 16 May 2012
7 answers
594 views
Hello,

I'm using WPF RadGridView which loades a large database table (about 200000 rows).
I bind the GridView to VirtualQueryableCollectionView object which makes async calls to WCF service in the ItemsLoading  event.
The data from the WCF web service is, of course, retured after the VirtualQueryableCollectionView.ItemsLoading event is ended.
When the data is retured from the WCF web service I load the data to the VirtualQueryableCollectionView using the VirtualQueryableCollectionView.Load method.
The problem is when I drag the scroller, for example, to the middle of the grid it doens't show the loaded data, because the data is loaded a little later after the VirtualQueryableCollectionView.ItemsLoading is finished.
When I scroll to other point in the grid and return back to that place, the data which was loaded earliear is shown correctly.
It seems like it needs to send some notify to the GUI that the data is loaded after the VirtualQueryableCollectionView.ItemsLoading is finished (like INotifyPropertyChanged interface or something).

BTW, when I use sync WCF web service, it works correctly because the data is loaded within the VirtualQueryableCollectionView.ItemsLoading event.

How can I resolve this problem?

Thanks,
Alex Vr.
Rolf
Top achievements
Rank 2
 answered on 16 May 2012
3 answers
230 views
Hi,

Is there any reason why the richtextbox TextInput event doesn't fire? Does it have something to do with it hosting a document?

DocumentContentChanged etc events fire. I am just wondering why TextInput doesnt?... mainly for reference purposes.

Thanks,

Rob
Boby
Telerik team
 answered on 16 May 2012
0 answers
159 views
I've added a resource file to my WPF application and in it I have:

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">

<Style TargetType="telerik:RadGridView" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Office_BlueTheme, ElementType=telerik:RadGridView}}" />
</ResourceDictionary>

and in App.xaml I have:
<Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Dictionary1.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>


And in a usercontrol I've added a RadGridView; Now the group section and gridline borders are blue but the header remains black.
why the theme dosen't apply to column header?
Mehrdad
Top achievements
Rank 1
 asked on 16 May 2012
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?