Telerik Forums
UI for WPF Forum
1 answer
262 views
During our app initialization, we invoke RadRichTextBox.SatisfyImports().  This works fine during normal runtime, but when I instrument the code via running a memory profiler (SciTech's .Net Memory Profiler), this throws a System.ExecutionEngineException.  It doesn't contain an inner exception nor any call stack data.  

Not really understanding what is happening with SatisfyImports, nor what a System.ExecutionEngineException really means, I'm kind of at a loss.  It doesn't seem like there is anything I can do with my code to prevent this and I don't want to just suppress the exception when i profile because I need the app to behave as close to normal as possible.  Any suggestions? 
Boby
Telerik team
 answered on 07 Nov 2012
6 answers
145 views
Hello,
I followed the Switching Theme at Runtime and some other help pages and blog page to create a small application that let me change the style of the application (including the main window) at runtime.
The application works great, switching the theme of all the controls, even MS controls.
The only problem I see is with the MS label control that does not switch theme automatically. As there is no Telerik control to replace this one, automatic theme switching would be nice for this control.
Patrick
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 07 Nov 2012
4 answers
71 views

Hi,
We want "click here to add new item (red highlighted one in picture)" to be at the bottom. it is telerik  wpf gridview (radgridview) we tried with different options and properties but we could not do it please help us.

Regards,
Vijay.

Dimitrina
Telerik team
 answered on 07 Nov 2012
1 answer
54 views
http://forums.infragistics.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/439/6180.Charge_2D00_Discharge.jpg
Nikolay
Telerik team
 answered on 07 Nov 2012
3 answers
141 views
Hi

I've just started using Expression Blend for UI design, instead of using the UI editor in VS2010. However, the Radcontrols in my project are not rendered in the Blend designer window. They appear as blank boxes. Regular WPF control render correctly however.

I've tried creating fresh projects from scratch and the same thing happens - no rendering of the Radcontrols, but standard WPF controls show up ok.

Is this expected?

Tom Davies
Esteban
Top achievements
Rank 1
 answered on 07 Nov 2012
2 answers
172 views
Hi, I'm using Telerik RadControls for WPF v.2012.3.1017.45 and use RadGridView in the following configuration:
<telerik:RadGridView Grid.Row="1" Grid.Column="0" x:Name="listView"
                     EnableRowVirtualization="True"
                     MouseDoubleClick="ListViewMouseDoubleClick"
                     SelectionChanged="ListViewSelectionChanged"                       
                     AutoGenerateColumns="False"
                     AlternateRowBackground="#3d3D3d3d"
                     Background="#99333333"
                     SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                     ItemsSource="{Binding VirtualizedItems}"
                     IsSynchronizedWithCurrentItem="True"
                     DataLoadMode="Asynchronous"
                     RowDetailsVisibilityMode="Collapsed"
                     ShowGroupPanel="False"
                     IsReadOnly="True"
                     CanUserSortColumns="True"
                     IsFilteringAllowed="False"
                     CanUserDeleteRows="False"
                     CanUserInsertRows="False"
                     Width="870" />

(columns are ommited, they are just databound to simple properties of one object).
Even simple mouse over causes serious peromance issues (up to 30% CPU usage from gridview application only) and bad user experience. When I moving over any other part of application - CPU usage is around zero. Any idea how to fix this? 
Evgeny
Top achievements
Rank 1
 answered on 06 Nov 2012
1 answer
119 views
It seems odd that the larger unit time scale is 'inside' the finer granularity scale:

From top to bottom, it seems like it would make more sense for the scales to be flipped.  Instead of progressing like this:

Hour
Day
Week
Month

Wouldn't it make more sense to be:

Month
Week
Day
Hour

This way the mouse over effects would be more intuitive and rather than double-clicking on the lower one to expand the selection a single click is all that would be needed.

Since this is not the default layout, is this achievable by altering the template or will code need to be changed?
Petar Kirov
Telerik team
 answered on 06 Nov 2012
1 answer
103 views

Hi,

 

I am using the radmap and placing  items onto the information layer using an example you provide. The items are an observable collection of the mapitem class:

 

Private items As New ObservableCollection(Of MapItem)()

 

This works well, but how would I get the best view for items created using this method where the items contain only the latitude and lonitude.

 

Regards,

Joe

 

 

<telerik:RadMap x:Name="radMap" DistanceUnit="Mile" ZoomLevel="6" DataContext="{Binding}" >

                            <telerik:InformationLayer Name="informationLayer">

                                <telerik:InformationLayer.ItemTemplate>

                                    <DataTemplate>

                                        <Border telerik:MapLayer.Location="{Binding Location}" x:Name="Border" ToolTip="{Binding DateofFix}"  DataContext="{Binding}">

                                            <telerik:MapLayer.HotSpot>

                                                <telerik:HotSpot X="0.5" Y="40" XUnits="Fraction" YUnits="InsetPixels" ElementName="path" />

                                            </telerik:MapLayer.HotSpot>

                                            <Grid>

                                                <Path x:Name="path" Stretch="None"

                              Stroke="{StaticResource MapPushpinStroke}"

                              StrokeThickness="4"

                              Data="M12,26.083 L16,26.083 13.916667,32.083 z M14,3 C20.075132,3 25,7.9248676 25,14 25,20.075132 20.075132,25 14,25 7.9248677,25 3,20.075132 3,14 3,7.9248676 7.9248677,3 14,3 z"

                              Fill="{Binding Background}">

                                                    <Path.Effect>

                                                        <telerik:IsFullTrust>

                                                            <![CDATA[

                                    <DropShadowEffect xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

                                        BlurRadius="7" ShadowDepth="1" />

                                    ]]>

                                                        </telerik:IsFullTrust>

                                                    </Path.Effect>

                                                </Path>

                                                <ContentPresenter Margin="0,40,0,0" Content="{Binding Content}" />

                                            </Grid>

                                        </Border>

                                    </DataTemplate>

                                </telerik:InformationLayer.ItemTemplate>

                            </telerik:InformationLayer>

                        </telerik:RadMap>

 

Andrey
Telerik team
 answered on 06 Nov 2012
4 answers
388 views
I have a RadDataForm with a number of DataFormDataField. They are bound to an object of a class that implements IDataErrorInfo, and when a field control validation, it's surrounded by a red box and an error message is displayed at the bottom of the form, prefixed by the DataFormDataField's label.

I have three problems:

  1. What if the label I want to display in the form isn't the label I want to display with the error message?  I have a couple of controls where I want the label to include a closing colon, and that results in two colons in the error message.
  2. What if the control is not a DataFormDataField? The error message for these seems to display the name of the property it is bound to - and that's usually not what I want.
  3. I have added BindingGroups to a number of GroupBoxes on the form, that return errors if something about the group is wrong. (None of the fields in the group have been selected, etc.) These display an error message that just has a colon, with no label name at all.

Seems like these are all different aspects of the same problem. Where does the form's error message display look, to get the names it includes, and how can I override this so as to use the labels I choose?

Ivan Ivanov
Telerik team
 answered on 06 Nov 2012
1 answer
151 views
I have a GanttView on a tab control.  After I set the task source for the GanttView I use ScrollingService.ScrollIntoView to scroll the first task in the list into view.  This works great if the GanttView's tab is currently selected and everything is visible.  If the GanttView is not visible it throws a NullReferenceException.  I tried to change the code to only scroll the first task into view on the IsVisibleChanged event.  I still get the same exception.  Is there something else I can check before using ScrollIntoView?

Below is the top of the stack trace for the exception: 
   at Telerik.Windows.Controls.RadGanttView.<.ctor>b__23()
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.GanttBaseScrollingService.get_ScrollService()
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.GanttBaseScrollingService.GetVerticalCoordinatesToShowIntoView(Object item)
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.GanttBaseScrollingService.CalculateVerticalCoordinates(Object item, VerticalScrollPosition scrollPosition)
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.GanttBaseScrollingService.ScrollToVerticalOffSet(Object item, VerticalScrollPosition scrollPosition, Boolean restricted)
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.ScrollIntoView(Object item, ScrollSettings settings)
   at Telerik.Windows.Controls.Gantt.Scrolling.GanttScrollingService.ScrollIntoView(Object item)

George
Telerik team
 answered on 06 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?