Telerik Forums
UI for WPF Forum
1 answer
88 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
604 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
112 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
128 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
111 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
380 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
1 answer
91 views
Hello Everyone,

What I am looking for is a way to have the legend sidebar have scrolling. Is this possible with the RadChart?

Thanks,
Chris
Evgenia
Telerik team
 answered on 30 Sep 2011
2 answers
147 views
Hi, I need to set my own text to the current cell.  I tried with this instruction:

RadGridView1.CurrentCell.Value = "sometext";

But the cell remains empty.  Thanks in advance
Maya
Telerik team
 answered on 30 Sep 2011
2 answers
135 views
Hi,

I have several controls in my app that uses grid. Grid is being used on all of them in the same way:
        <telerik:RadGridView x:Name="RadGridView1" ItemsSource="{Binding Items}" Margin="0"
                             RowIndicatorVisibility="Collapsed" IsReadOnly="True"                           
                             AutoGenerateColumns="False" CanUserFreezeColumns="False"
                             CanUserResizeColumns="True" MouseDoubleClick="RadGridView1_MouseDoubleClick" IsFilteringAllowed="True">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding BusinessItem.Name}" Width="*" />
...

however on some of those grids filtering and sorting is working properly, on some grids it is working only on bool columns and on some it is not working at all (I cannot see the 'tube' symbol for filtering and I cannot sort the column by clicking its header).

What may be wrong?
Rossen Hristov
Telerik team
 answered on 30 Sep 2011
3 answers
183 views
When binding a gridview to a datatable.defaultview and autogenerating columns, what is the best way to assign data formats to columns? In particular datetime columns to short format? All I can find in documentation is to use XAML DataFormatString of column, but I don't see the C# option to set this in the column objects.
Vlad
Telerik team
 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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?