Telerik Forums
UI for WPF Forum
1 answer
62 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
162 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
193 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
133 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
120 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
411 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
170 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
1 answer
87 views
Hi,

If i create a wpf project using the following xaml definition, i'm able to move the "Soccer" treeviewitem before the "futsal" element. When I start draging my element, i can see the option that allow me to insert the item before the previous element.

        <telerik:RadTreeView x:Name="radTreeView" Grid.Row="2" IsDragDropEnabled="True"
                             IsDropPreviewLineEnabled="True">
            <telerik:RadTreeViewItem Header="Sport Categories">
                <telerik:RadTreeViewItem Header="Football">
                    <telerik:RadTreeViewItem Header="Futsal" />
                    <telerik:RadTreeViewItem Header="Soccer" />
                </telerik:RadTreeViewItem>
            </telerik:RadTreeViewItem>
        </telerik:RadTreeView>

If I take the previous control, and I add it in a word 2010 add-in,the option is not available. It doesn't matter where i put my mouse, the "before" or "option" command never show up. I can only insert item inside other item.

Any Ideas why i'm having this behavior? I will try to attach a sample project showing this behavior.

Best Regards,

P.S. It's seem there an issue ID associate with this problem: 1299 - TreeView: Built-in drag and drop does not work in ElementHost. Have you any workaround to suggest me to solve this behavior? 
Pavel R. Pavlov
Telerik team
 answered on 06 Nov 2012
5 answers
193 views
I can't seem to get the hour interval to work the way I expect it to.

If I use either this:

<Rad:RadTimeBar.Intervals>
	<Rad:MonthInterval />
	<Rad:DayInterval />
	<Rad:HourInterval />
</Rad:RadTimeBar.Intervals>

or this:

<Rad:RadTimeBar.Intervals>
	<Rad:MonthInterval />
	<Rad:DayInterval />
	<Rad:HourInterval  IntervalSpans="1" />
</Rad:RadTimeBar.Intervals>

I am unable to zoom into the 'hourly mode' (see first screenshot).  However 

<Rad:RadTimeBar.Intervals>
	<Rad:MonthInterval />
	<Rad:DayInterval />
	<Rad:HourInterval  IntervalSpans="1,8" />
</Rad:RadTimeBar.Intervals>

allows me to get into the hourly mode but shows the 8 hour interval (which I don't really want). Am I doing something wrong?
The rest of the xaml ( mPlotsGrid is populated with RadLinearSparklines at runtime):
                  <Rad:RadTimeBar Name="mTimeBar"
                                  PeriodStart="{Binding Path=BeginHistory, Mode=TwoWay}"
                                  PeriodEnd="{Binding Path=EndHistory, Mode=TwoWay}"
                                  VisiblePeriodStart="{Binding Path=BeginView, Mode=TwoWay}"
                                  VisiblePeriodEnd="{Binding Path=EndView, Mode=TwoWay}"
                                  SelectionStart="{Binding Path=BeginDetail, Mode=TwoWay}"
                                  SelectionEnd="{Binding Path=EndDetail, Mode=TwoWay}"
                                  IsSnapToIntervalEnabled="True"
                                  MinSelectionRange="00:01:00"
                                  Margin="5">
                     <Rad:RadTimeBar.Intervals>
                        <Rad:MonthInterval />
                        <Rad:WeekInterval />
                        <Rad:DayInterval />
                        <Rad:HourInterval  IntervalSpans="1,8" />
                     </Rad:RadTimeBar.Intervals>
                     <Grid x:Name="mPlotsGrid" />
                  </Rad:RadTimeBar>


Tsvetie
Telerik team
 answered on 06 Nov 2012
1 answer
112 views
I have just downloaded the trial to asses the suitability of the control for an upcoming project.

I am trying to get the load on demand working.
When I try to follow the example the event is fired but on the screen a spinny arrow icon just goes round and round.

Could you please advise.

xaml:

<telerik:RadTreeView Height="250" HorizontalAlignment="Left" Margin="18,24,0,0" Name="radTreeView1" VerticalAlignment="Top" Width="150" IsLoadOnDemandEnabled="True" LoadOnDemand="OnLoadOnDemand"/>

cs:
private void OnLoadOnDemand(object sender, Telerik.Windows.RadRoutedEventArgs e)

{

 

RadTreeViewItem item = e.OriginalSource as RadTreeViewItem;

 

// Adding child items

 

RadTreeViewItem product = new RadTreeViewItem();

product.Header =

 

"Product1.1";

item.Items.Add(product);

product =

 

new RadTreeViewItem();

product.Header =

 

"Product1.1";

item.Items.Add(product);

}


Pavel R. Pavlov
Telerik team
 answered on 06 Nov 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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?