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

I got some axis on the left and right side and it turns out the left margin of the plot area is a few pixels thick when the right margin is not. 
Left side: https://dl.dropboxusercontent.com/u/55589036/Pictures/Screenshots/20150210105316.png
Right side: https://dl.dropboxusercontent.com/u/55589036/Pictures/Screenshots/20150210105510.png

How can I add the same margin to the right side as it appears on the left side?
Petar Marchev
Telerik team
 answered on 12 Feb 2015
1 answer
133 views
Is there a way to limit which shapes can be connected? 

For example, my diagram has three shapes, Ellipse, Hexagon and Star. Ellipse can be connected to Star and Hexagon can be connected to Star; however, Ellipse can never be connected to a Hexagon.

Milena
Telerik team
 answered on 12 Feb 2015
6 answers
480 views
Hi

Want to export RadGridView data to PDF document. Tried to do this by following link below

http://demos.telerik.com/silverlight/#GridView/PrintAndExportWithRadDocument

Able to export and format document but unable to display grid header on each page. Need your assistance on this.

I am using .net 4.0 and Telerik version: UI for WPF Q3 2014

Sheraz
Top achievements
Rank 1
 answered on 12 Feb 2015
1 answer
302 views

How can I get the source and target of a connection in runtime?
I tried this event from RadDiagram ConnectionManipulationCompleted, but it gives me the target is null, while I'm sure I linked it to the second shape.
If there is a way to get all connections for for each RaddiagramShape it would be much better than hitting an event inside the RadDiagram.
Please, reply me as fast as possible.

Thank you. 
Milena
Telerik team
 answered on 12 Feb 2015
3 answers
239 views
hello,

I need to dynamically mark on a map a few locations in the described way:
1. each location should be marked by a circle 
2. the center of the circle should be the location (latitude and longtitude)
3. and the radius of the circle needs to be 4KM (4000 meters) 

so when the user changes zoom level
the center of the circle should stay on the same exact location
and the radius should change according to the zoom level to reflect a 4KM at all times

i would also like the circles to be drawn dynamically, via code (not static file)  
and also fade out after, lets say, 15 seconds

is that possible?
should i use mapshape? or hotspots?
should i use information layer or dynamic layer
i am very confused with all the options
can you please make an example like that?

i need to know if radmap supports such a scenario
and can manage that

thank you very much
i realy hope this can be done..

Pavel R. Pavlov
Telerik team
 answered on 12 Feb 2015
1 answer
275 views
Dear Telerik,

I have a Master-Details window where the Master list is a ListView, and the SelectedItem of this ListView binded to a "SelectedObject" property in my ViewModel. 

The Details view should be a RadPropertyGrid, so the RadPropertyGrid's DataItem binded to this "SelectedObject" property as well.
This works fine, however it's very slow to change the selected Item. After I logged the runtime binding errors and warnings, I found that there are lots of "Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=FieldIndicatorVisibility" warnings in the logs.

It seems that the DataItem is null for some reason, however the PropertyGrid shows the properties perfectly. I'm not sure, maybe the PropertyGrid tries to get the "SelectedObject" when it's null, but it is never null, I tried many things to fix the issue, but still nothing. The SelectedObject is not a big ViewModel and the ViewModel implmenets the INotifyPropertyChange.

Let me show you high scope exampe:

View:

<!--The master list in the View (The Objects property is an ObservableCollection<MyObject>, the SelectedObject is a MyObject, both implement INotifyPropertyChanged)-->
<ListView ItemsSource="{Binding Objects}" SelectedItem="{Binding SelectedObject, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ... />

<!-- The details PropertyGrid. The Item binded to the same SelectedObject property. The SelectedObject is never null, but the DataItem is null sometimes -->
<telerik:RadPropertyGrid Item="{Binding SelectedObject, UpdateSourceTrigger=PropertyChanged}" AutoGeneratePropertyDefinitions="False">
      <telerik:RadPropertyGrid.PropertyDefinitions>

            <!-- Most of the properties have custom EditorTemplate, mostly NumericUpDown controls but not all of them, but it does not related to my problem -->
            <telerik:PropertyDefinition Binding="{BindingMyProperty1}" DisplayName="..." Description="... >
                  <telerik:PropertyDefinition.EditorTemplate>
                        <DataTemplate DataType="view:MyObject">
                              <telerik:RadNumericUpDown Value="{Binding MyProperty1, Mode=TwoWay}" />
                        </DataTemplate>
                  </telerik:PropertyDefinition.EditorTemplate>
            </telerik:PropertyDefinition>

            <!-- Another property ans so on... There are 20 properties in the PropertyDefinitions -->
            <telerik:PropertyDefinition Binding="{BindingMyProperty2}" DisplayName="..." Description="... >
                  <telerik:PropertyDefinition.EditorTemplate>
                        <DataTemplate DataType="view:MyObject">
                              <telerik:RadNumericUpDown Value="{Binding MyProperty2, Mode=TwoWay}" />
                        </DataTemplate>
                  </telerik:PropertyDefinition.EditorTemplate>
            </telerik:PropertyDefinition>

      </telerik:RadPropertyGrid.PropertyDefinitions>
</telerik:RadPropertyGrid>


ViewModel:

public class ExampleViewModel : BaseViewModelWithNotifyPropertyChanged
{

      // The the SelectedItem of the List and Item of the PropertyGrid. Never null
      private MyObject _selectedObject;
      public MyObject SelectedObject
      {
            get { return_selectedObject; }
            set { SetProperty(ref_selectedObject, value); }
      }

      // The ItemsSource of the ListView. Always fileld with not null MyObjects
      private ObservableCollection<MyObject> _objects;
      public ObservableCollection<MyObject> Objects
      {
            get { return _objects; }
            set { SetProperty(ref _objects, value); }
      }

}

With this settings, I've got many-many errors. Most of the errors refers the FieldIndicatorVisibility property, not sure why:

- System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=FieldIndicatorVisibility; DataItem=null; target element is 'Grid' (Name=''); target property is 'Visibility' (type 'Visibility')

The common problem is that the DataItem=null. As far as I can see, the DataItem should be a MyObject instace (the same as the SelectedObject property in the ViewModel). Also interesting that the view is working, so its like the PropertyGrid didn't find the DataItem and retry to get the DataItem, and at least the ProeprtyGrid founds the DataItem. It's slow.

It is mission critical to resolve this issue, would you please help me?

Thanks in advance,
Daniel
























Boris
Telerik team
 answered on 11 Feb 2015
1 answer
214 views
Hello,
Currently, the following languages are supported for the built-in localization mechanism in WPF:
English, German, Spanish, French, Italian, Dutch, Turkish

Are there any plans to support additional languages?

Regards,
Martin
Dimitrina
Telerik team
 answered on 11 Feb 2015
1 answer
246 views
Hi all,

Im using a RadGridView to display Data at 3 levels like so:

                <telerik:RadGridView>
                    <telerik:RadGridView.ChildTableDefinitions>
                        <telerik:GridViewTableDefinition />
                    </telerik:RadGridView.ChildTableDefinitions>
                    <telerik:RadGridView.HierarchyChildTemplate>
                        <DataTemplate>
                            <telerik:RadGridView>
                                <telerik:RadGridView.ChildTableDefinitions>
                                    <telerik:GridViewTableDefinition />
                                </telerik:RadGridView.ChildTableDefinitions>
                                  <telerik:RadGridView.HierarchyChildTemplate>
                                    <DataTemplate>
                                        <telerik:RadGridView>


What I need to do now, in code, is the following. I know a value for all of the 3 depth levels, which means expand at level 1, expand at level 2, select and scroll intoView on level 3. Unfortunately I don't know how to get the child grids in code, so that all I've achieved so far is scroll and expand at level 1.

TIA
Boris
Telerik team
 answered on 11 Feb 2015
2 answers
181 views
When using series.RenderOptions = new BitmapRenderOptions(); the drawn series line will ignore the StrokeThickness property and always use 1px thickness. I'm using StepLineSeries series. 



How can I set the thickness of my StepLineSeries objects when using bitmap rendering?
Martin Ivanov
Telerik team
 answered on 11 Feb 2015
1 answer
136 views
Hi There

I'm calling WPF RadMap usercontrol inside Window form usercontrol using elementHost. But while calling using UI Virtualization it gives error as shown below.The below code work fine in standalone WPF usercontrol.



Later I found that this is threading issue related to STA architecture, as it also throw the error "The calling thread must be STA,because many UI components require this". See the attachment.

Cheers.
 
Petar Mladenov
Telerik team
 answered on 11 Feb 2015
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?