Telerik Forums
UI for WPF Forum
4 answers
157 views
Hi,

I have a requirement to have the focus on RadMap when the form is loaded.I tried both:

FocusManager.FocusedElement="{Binding ElementName=radMap1}"
and
private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            radMap1.Focusable = true;
            radMap1.Focus();
        }

But with no luck.I need to use the mouse wheel to move to different areas in the map.This is not working until i click once on the map.The reason i want to avoid clicking on the map is that I am drawing a MapPolygon by combining each click point on the map.

Thanks in advance.
DMC Helpdesk
Top achievements
Rank 1
 answered on 02 Oct 2011
2 answers
143 views
Hi again, another radGridView question for the experts :)

I have a radGridView that has itemsource bound to a datatable, and I have xaml & code that successfully performs a cell editing template swap based on certain events.  The columns are automatically generated, and the two-way-bound datasource is all text fields. The cell editing templates are either text, or datetime (if the datetime template is turned on, then that cell uses a radDateTimeView object).

Everything works great, except that when the radDateTime templated cells go to commitEdit, nothing in the itemSource gets updated, I beleive do to the types being incorrect.

What I would like to do, is go ahead and override the telerik CommitEdit() function, to make the data selected in the radGridView object match the allowable types in the itemsource of the datagrid, namely making it text not a date object at this point, and then call your telerik commit edit afterwords. For whatever reason, visual studio is not recognizing 'base.CommitEdit' or properly overriding it, is there any examples of overridign this function and also would you recommend a different approach to converting this data?

Thanks again.

-Chris

Chris
Top achievements
Rank 1
 answered on 30 Sep 2011
4 answers
96 views
We are using a GridView that does not auto generate columns.
When the GridViewDataColumns are created, a custom CellTemplateSelector and CellStyleSelector are applied.
These work fine - until a Filter is applied from the Header.
After the Filter is applied, it doesn't appear that our custom Selectors are applied.
Is there a way to force that to happen?  (i.e. force SelectTemplate() and SelectStyle() to be called)

Thank you.
Charlie
Top achievements
Rank 2
 answered on 30 Sep 2011
3 answers
148 views
How do I style the RichTextBox popups?  I set the theme on the RichTextBox to be Windows7, but the Find/Replace dialog buttons are not Windows7 themed.

Also, can I control where the popup dialogs appear?  They cover the text that I want the user to see.

Thanks!
Iva Toteva
Telerik team
 answered on 30 Sep 2011
1 answer
76 views
Hi,

I am implementing a charting series that shows forcasted charts and their historical information. So I wanted to ask whether I could use the same line series and change the path to a dotted line when I wanted to show projected information. Is it possible by keeping in a flag in the data structure and then using that flag in the data trigger to draw the path as a dotted line instead of a solid line.

Right now my approach is to keep a pair of series in my collection - one for historical and one projected. If I have ten comparisons, I would simply keep 20 series in my collection. Would it be possible to avoid this situation and implement an optimized design as I have to cater to this approach since I wasn't able to work around the fact that we could have only one type of path per series.
Opinions on this would be helpful and I would appreciate a quick response.

Thanks,
Farhan
Evgenia
Telerik team
 answered on 30 Sep 2011
5 answers
573 views
Hello everyone,

Quite new to all of this, so I'm hoping someone can nudge me in the right direction.  I'm trying to load a KML file, but I can't seem to get my head around the URI part.  Can someone provide me with an idiot-proof example?  For instance, if I have a project called "Map_Test" and within that project I have a folder called "Recources" and within that folder I have a file called "doc.kml", what would be the uri?

This is what I tried and I get the message that "Cannot locate resource 'Map_Test;resources/doc.kml'.

Any help is greatly appreciated.  Here is my code:

Private Sub LoadKMLData()
    Dim streamResource As StreamResourceInfo = Application.GetResourceStream(New Uri("pack://application:,,,/Map_Test;Resources/doc.kml", UriKind.RelativeOrAbsolute))
    Dim elements As List(Of FrameworkElement) = KmlReader.Read(streamResource.Stream)
    For Each element As FrameworkElement In elements
        Me.informationLayer.Items.Add(element)
    Next element
End Sub





Also tried this with no luck either.  Gives me a "Cannot locate resouce 'doc.kml':





Dim
streamResource As StreamResourceInfo = Application.GetResourceStream(New Uri("/Map_Test;component/Resources/doc.kml", UriKind.RelativeOrAbsolute))
' Dim streamResource As StreamResourceInfo = Application.GetResourceStream(New Uri("doc.kml", UriKind.RelativeOrAbsolute))
Dim elements As List(Of FrameworkElement) = KmlReader.Read(streamResource.Stream)
For Each element As FrameworkElement In elements
    Me.informationLayer.Items.Add(element)
Next element


Steve
Top achievements
Rank 1
 answered on 30 Sep 2011
3 answers
99 views
Hi there,

I need to set a Dictionnary as ItemSource (with DisplayMemberPath et SelectedValueMemberPath setted as done with the regular RadComboBox), but the RadCombox.SelectedValue is never commited to the DataItem. Is that a bug ?

thanks, greg

Edit : Further investigations have shown that the value is commited when the Radcombobox editor looses focus and disapears. FurtherMore, the commited value is the one that was selected one selection step. It means that if i start with a random value and then I select one item in the grid combobox hoping for changing its value, the committed value is the one that was selected at first. If I try to change the selected Item three times in a row without living the editor, the commited value is the second one and not the third as expected.

I am missing something about GridViewComboBoxColumn ?
How could I force the value to be commited for each selection ?
Maya
Telerik team
 answered on 30 Sep 2011
1 answer
109 views
Hello,

I'd like to have show a Tooltip with the header-text on the icon of a RadOutlookBarItem when the RadOutlookBar is minimized.
This is exacltly the default behavior of MinimizedOutlookBarItem.

I tried to set the ToolTip Property of the RadOutlookBarItem. Unfortunately in that case the ToolTip also appears within the content area of the item.

I'd be glad if you have any sugesstions on this issue.

Regards
Rainer

Tina Stancheva
Telerik team
 answered on 30 Sep 2011
3 answers
86 views

I have a problem using InformationLayer.GetItemsInLocation(Location);

My InformationLayer is binded to an ObservableCollection<MyClass> myObjektCollection

<Map:InformationLayer Name="myObjektLayer" ItemsSource="{Binding myObjektCollection }" ItemTemplate="{StaticResource informationLayerFlyttObjektTemplate}" Visibility="Visible" />

While adding MyClass items to myObjektCollection , I can see that both InformationLayer(myObjektLayer) and myObjektCollection increases.

If I ,just after adding a new MyClass item to myObjektCollection, try to call

InformationLayer(myObjektLayer).GetItemsInLocation(myLocation); returns no items found.

If I later, after refreshing the map call the same method InformationLayer(myObjektLayer).GetItemsInLocation(myLocation); returns with expected items.

I know that myLocation is valid.

Ex.

myObjektItemCollection.Add(myClass);

InformationLayer(myObjektLayer).GetItemsInLocation(myLocation) -  No result

In method MapMoved()

InformationLayer(myObjektLayer).GetItemsInLocation(myLocation) -  OK result

Is there any method I should call on InformationLayer or Observablecollection before I call InformationLayer(myObjektLayer).GetItemsInLocation(myLocation)?

I tried:

InformationLayer(myObjektLayer).BeginInit();

myObjektItemCollection.Add(myClass);

InformationLayer(myObjektLayer).EndInit();

InformationLayer(myObjektLayer).GetItemsInLocation(myLocation)? No result

Andrey
Telerik team
 answered on 30 Sep 2011
2 answers
365 views
Hello,

Our team is trying to use the Export functionality of the RadGridView, which works as expected, but include a Header and Footer in the resulting ExcelML output.  We are currently using version 2010.2.924.35.  Is there currently a way to add a Header and Footer to an excel file being exported from the RadGridView?

By hooking into the ElementExporting and ElementExported events, I see how we could format the data, or add details to the existing data, but I'm not seeing a way to include a Header or Footer for the entire output.

The data for both the Header and Footer reside in our ViewModel, along with the data source for the RadGridView, but is not currently connected to the RadGridView.

Desired Result:

[Header]
<HeaderRow><HeaderCell/<HeaderCell/><HeaderCell/><.../></HeaderRow>
<Row><Cell/><Cell/><Cell/><.../></Row>
<.../>
[Footer]

Edit:  Just to clarify.  Our goal is an overall file header and footer, NOT column headers or footers.  Something like:
Header--"Report Generated on April 17, 2010"
Body--Grid Export
Footer--"Values are rounded to the nearest dollar"
Charles Jarvis
Top achievements
Rank 1
 answered on 30 Sep 2011
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?