Telerik Forums
UI for WPF Forum
5 answers
429 views
Hi,

we want to bind a RadGridView to a collection of objects that implement DynamicObject. However, we don't want to bind to the dynamic properties, but only classical properties (e.g. the Name property in the following example).

public class MyDynamicObject : DynamicObject
{
    public string Name { get; set; }
 
    public override bool TryGetMember(GetMemberBinder binder, out object result)
    {
        return base.TryGetMember(binder, out result);
    }
 
    public override bool TrySetMember(SetMemberBinder binder, object value)
    {
        return base.TrySetMember(binder, value);
    }
}

However, the RadGridView only tries to bind to the dynamic members and throws exceptions if the dynamic member is not found. It does not even check if there is a normal property with the same name. This affects not only binding, but also sorting, grouping and filtering.
The typical behavior in WPF (e.g. when using a binding) and C# (when using the dynamic keyword) is to check for normal properties first! This should be the same in the RadGridView.

Alex
Ivan Ivanov
Telerik team
 answered on 24 Jan 2015
4 answers
253 views
What's the easiest way to style the border of the WPF DropDownButton popup?
Hans
Top achievements
Rank 2
 answered on 23 Jan 2015
11 answers
499 views

I was reading this thread:

http://www.telerik.com/community/forums/wpf/gridview/column-chooser.aspx

Can you please post a working wpf example since I cannot get the code to compile when I replace the rad context menu with the standard windows context menu. Can you please post a working copy using the wpf rad grid view for all of us to use?

Bill

Stefan
Telerik team
 answered on 23 Jan 2015
2 answers
317 views
I have a RadGridView with MultiSelect turned on. When this Grid is instantiated, I need to select rows that are determined from a List passed into the ViewModel. Any ideas on how to do this?  The "SelectedItems" property of the RadGridView is readonly and cannot be set via markup.

Thank you!
Steve
Top achievements
Rank 1
 answered on 23 Jan 2015
3 answers
408 views
Dear sir,

I was wondering how to draw orthogonal line connection on a diagram like visio.
RadDiagram provide three types of connection( polyline, beizer, spline.), but I couldn't find a way to draw orthogonal line.
I have looked over Routing service in the manual, but I couldn't understand it.

I need this function because my application is similar to MS visio.

Could you show me a example for this?

Thank you.
Petar Mladenov
Telerik team
 answered on 23 Jan 2015
6 answers
137 views
I'm experimenting with AsyncShapeFileReader using the provided example. It works as expected with AsyncShapeFileReader's Source and DataSource properties set. The only thing I wish to change in the example is to use AsyncReaderSourceCollection to asyncronously load multiple shape files and benefit UI Virtualization.

01.<telerik:VisualizationLayer.VirtualizationSource>
02.    <telerik:MapShapeDataVirtualizationSource>
03.        <telerik:MapShapeDataVirtualizationSource.Reader>
04.            <telerik:AsyncShapeFileReader x:Name="mapShapeDataReader">
05.                <telerik:AsyncReaderSourceCollection>
06.                    <telerik:AsyncReaderSource Source="/MyProject;component/Resources/myshape1.shp" DataSource="/MyProject;component/Resources/myshape1.dbf" />
07.                    <telerik:AsyncReaderSource Source="/MyProject;component/Resources/myshape2.shp" DataSource="/MyProject;component/Resources/myshape2.dbf" />
08.                </telerik:AsyncReaderSourceCollection>
09.            </telerik:AsyncShapeFileReader>
10.        </telerik:MapShapeDataVirtualizationSource.Reader>
11.    </telerik:MapShapeDataVirtualizationSource>
12.</telerik:VisualizationLayer.VirtualizationSource>


Visualization layer displays only the last AsyncReaderSource (myshape2.shp), although ReadShapeDataCompleted is called twice without exception. I wonder is it possible to load multiple shapes asynchronously and benefit Items Virtualization?

Petar Mladenov
Telerik team
 answered on 23 Jan 2015
6 answers
232 views
Hi,

I want to lock my merge Fields, but fields get in word docx file and i get with regex in ExpandoObject. How can i lock my fields?
burk
Top achievements
Rank 1
 answered on 23 Jan 2015
1 answer
164 views
I am trying to setup the Executive Dashboard to run on a local machine as a starting point so I can move into developing it to work with our own DB. I've changed the app.config to look at the localhost/webservice (e.g. http://localhost:3931/AWDWDataService.svc/) and changed the web.config to point to a local Adventureworks labs DB.

I updated the model from the local database which required an upgrade to Entity Frame Work 6, but now it's giving the error:

The type 'ExecutiveDashboard.Web.AdventureWorksDWAZ2008R2XLabsEntities' cannot be used as type parameter 'TContext' in the generic type or method 'System.ServiceModel.DomainServices.EntityFramework.LinqToEntitiesDomainService<TContext>'. There is no implicit reference conversion from 'ExecutiveDashboard.Web.AdventureWorksDWAZ2008R2XLabsEntities' to 'System.Data.Objects.ObjectContext'

Has anyone got an idea of how to fix this or managed to get it running locally?
Peshito
Telerik team
 answered on 23 Jan 2015
1 answer
117 views
Please see attach file.
I do not know how to change from '10 /10/81 ' to '10/10/1981'.
It shouldn't be '10/10/2081'
please guide me
thanks.

Kalin
Telerik team
 answered on 23 Jan 2015
3 answers
151 views
Our clients typically import data into our application using known coordinate systems, such as UTM. However, now we need to add support for unknown, arbitrary coordinate systems (we won't show an underlying basemap). I am struggling with this. My understanding is I should use an EmptyProvider and the EPSG900913Projection. I have several issues, but the first is the Center. In your Mercator (meters) example, the Center is set using meters:

Center="296247.258782387,426130.145788193"

However, when I create a blank project and set the Center using meters, the value contained in the center is still in decimal degrees:

moMap.Center = New Location(5643603, 2559429)

Printing moMap.Center shows the following:
{85.05112878,180}
    CalculationMethod: ""
    Description: ""
    Empty: {-Infinity,-Infinity}
    IsEmpty: False
    Latitude: 85.05112878
    Longitude: 180.0

What am I doing wrong? Once working, will all the other map methods and properties return values in meters instead of degrees, too?
Petar Mladenov
Telerik team
 answered on 23 Jan 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
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?