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



I tried to use the InformationLayer.GetBestView(items), but it requires to be called several times to have correct result.

(If it is called with MapPinPoint)



Here is the template of the MapPinPoint :



<DataTemplate x:Key="ObstructionPointItemTemplate"><br>
            <telerik:MapPinPoint <br>
                BorderBrush="{StaticResource ObstructionPointColor}"<br>
                Template="{StaticResource PointControlTemplate}" <br>
                telerik:MapLayer.Location="{Binding }"><br>
                <telerik:MapLayer.HotSpot><br>
                    <telerik:HotSpot X="0.5" Y="0.5" /><br>
                </telerik:MapLayer.HotSpot><br>
            </telerik:MapPinPoint><br>
</DataTemplate>






In order to eliminate any side effects with the databinding or the map provider latency, the call to 'GetBestView' is made by an event handler attached to a user interaction (MouseRightButtonDown).



I have a lightweight VS2012 solution were I reproduced the issue, if needed





Can you please help me ?





Thanks in advance
Andrey
Telerik team
 answered on 10 Dec 2013
1 answer
397 views
Hello, I'm using the RichTextBox and cannot get the alignment to work. Here's my code:
radRichTextBox.Insert("Sample Text");
radRichTextBox.ChangeTextAlignment(Telerik.Windows.Documents.Layout.RadTextAlignment.Center);

I would like "Sample Text" to be center aligned but it doesn't work. When adding the control I select the "Text Box or Rich Text Box" option and all the defaults after that. If I select "Word Processor", the alignment code works. Does alignment only work when selecting "Word Processor"? Maybe there's a property I need to add to get the alignment to work when selecting "Text Box or Rich Text Box".

Thanks,
Scott
Svetoslav
Telerik team
 answered on 10 Dec 2013
3 answers
101 views

I have a WPF application that uses the RadGridView control to display search results:


<telerik:RadGridView AutoExpandGroups="True"
                                         AutoGenerateColumns="False"
                                         CanUserDeleteRows="False"
                                         CanUserFreezeColumns="False"
                                         CanUserInsertRows="False"
                                         CanUserResizeColumns="True"
                                         CanUserSortColumns="True"
                                         EnableColumnVirtualization="True"
                                         EnableRowVirtualization="True"
                                         FontSize="{x:Static res:Car.Common_DataEntryFontSize}"
                                         FontWeight="Bold"
                                         IsBusy="{Binding Path=IsLoadingReads, RelativeSource={RelativeSource AncestorType={x:Type cs:Searcher}}}"
                                         IsReadOnly="True"
                                         MouseDoubleClick="ReadsGrid_MouseDoubleClick"
                                         Name="ReadsGrid"
                                         RowIndicatorVisibility="Collapsed"
                                         RowStyleSelector="{StaticResource StyleSelector}"
                                         SelectionChanged="ReadsGrid_SelectionChanged"
                                         SelectionUnit="FullRow"
                                         ScrollViewer.CanContentScroll="True"
                                         ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                         ScrollViewer.VerticalScrollBarVisibility="Auto"
                                         ShowGroupFooters="True"
                                         ToolTip="{x:Static res:Car.Searcher_ReadsGrid_ToolTip}">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Plate,     Mode=OneWay}"
                                                        Header="{x:Static res:Car.Common_Plate}"
                                                        Width="*" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding State,     Mode=OneWay}"
                                                        Header="{x:Static res:Car.Common_State}"
                                                        Width="75" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding TimeStamp,  Mode=OneWay, Converter={StaticResource DateConverter}}"
                                                        Header="{x:Static res:Car.Common_DateNTime}"
                                                        Width="Auto" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding GPSInformation.Position.Latitude, Mode=OneWay, Converter={StaticResource CoordConverter}, ConverterParameter={x:Static res:Car.GpsStatus_NS}}"
                                                        Header="{x:Static res:Car.Searcher_Latitude}"
                                                        Width="Auto" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding GPSInformation.Position.Longitude, Mode=OneWay, Converter={StaticResource CoordConverter}, ConverterParameter={x:Static res:Car.GpsStatus_EW}}"
                                                        Header="{x:Static res:Car.Searcher_Longitude}"
                                                        Width="Auto" />
                            <telerik:GridViewImageColumn DataMemberBinding="{Binding GpsQuality, Mode=OneWay, Converter={StaticResource DeviceStatuses}}"
                                                         Header="{x:Static res:Car.Searcher_GpsQuality}"
                                                         ImageStretch="None"
                                                         Width="125" />
                        </telerik:RadGridView.Columns>
                        <telerik:RadGridView.CommandBindings>
                                    <CommandBinding CanExecute="DisplayEditRecordDetails_CanExecute" Command="cs:CarSystemCommands.DisplayEditRecordDetails" Executed="DisplayEditRecordDetails_Executed" />
                        </telerik:RadGridView.CommandBindings>
                    </telerik:RadGridView>


This works well when the machine culture is set to en-US.  However, when the machine culture is set to es-CL (Chile), the Group By Panel is still in English.  How do I get the Group By panel to display in Spanish?

Dimitrina
Telerik team
 answered on 10 Dec 2013
3 answers
108 views
Hi
I have a GridView hosted within a PropertyGrid.PropertyDefinition.EditorTemplate. If the grid is empty, when the Insert key is pressed a new row is not added to the grid. If the grid has data a new row is added to the grid.

When the grid is empty, before I press the Insert key, I click a column header in the grid (I can see the sort glyph change in the column header). If I click the filter button so that the filter dialog is displayed and then press Insert, a new row is added to the grid.

If I take it out of the PropertyGrid and display it independently, a new row does appear on Insert key press if the grid is empty or not.

Something doesn't seem right to me.

Regards,
Craig

RadControls for WPF Q3 2013 (2013.3.1016.40)


Dimitrina
Telerik team
 answered on 10 Dec 2013
3 answers
57 views

My name is LAZAU Florin and I am using gridview from telerik.

I want to edit the tamplate and I use blend. The problems is that after I click edit tamplate a got an error:"key cannot be null.Parameter name : key". I attach a sample image



Dimitrina
Telerik team
 answered on 10 Dec 2013
1 answer
258 views
Hi,

I'm currently using Wpf 2013 Q3 with nuget separate package.

I added merged dictionnary for all used packages.

All components work but not RadTreeView and RadDiagram.

RadTreeView and RadDiagram stay blank on the application

Regards 

Laurent

Tina Stancheva
Telerik team
 answered on 10 Dec 2013
1 answer
63 views

HI all,

        I have created a rad pane custom control in a class say

public class CustomControl:RadPane{}
and i want to use that in my user control ,added the reference of the control and used it.
But the radpane header is not seen when used with the custom control ,only seen when we added a style to it but i dont want to apply any styles to the custom rad pane how can i achieve this?

Thanks in advance...
Masha
Telerik team
 answered on 10 Dec 2013
1 answer
140 views
Hi,

I have to show some 'POIs' on a map.
The POIs collection is bound using a typical MVVM approach.
Once the map is loaded, a 'best fit' must be applied to see all the POIs as closely as possible.
Finally, I must be able to change the location of the POIs by using drap and drop.

In my first attempt, I used MapPinPoint as elements for the POIs.
The 'move' operation was working fine, but unfortunately the GetBestView gave strange results.
(In fact I had to call it several times in order to really get the best view)
Here is the xaml for the pin point :

        <DataTemplate x:Key="ObstructionPointItemTemplate" DataType="mapLayers:ObstructionPointViewModel">
            <telerik:MapPinPoint                                        
                                        telerik:MapLayer.Location="{Binding Path=Location}"                                        
                                        ToolTip="{Binding Label}"
                                        >
                <i:Interaction.Behaviors>
                    <behaviors:PointBehavior/> <!--This behavior allows the drap and drop move-->
                </i:Interaction.Behaviors>
            </telerik:MapPinPoint>
        </DataTemplate>


Based on the decompiled code, I assumed my issue with 'GetBestView' was due to the fact that MapPinPoint wasn't a 'MapShape'
Thus, I decide to give it a chance with 'MapEllipse' :

        <DataTemplate x:Key="ObstructionPointItemTemplate" DataType="mapLayers:ObstructionPointViewModel">
            <telerik:MapEllipse Width="0.1"
                                        Height="0.1"
                                        telerik:MapLayer.Location="{Binding Path=Location}"
                                        Fill="{StaticResource PointFill}"                                        
                                        ToolTip="{Binding Label}"
                                        Stroke="{StaticResource ObstructionPointColor}"                                      
                                        StrokeThickness="2"                                
                                        >
            </telerik:MapEllipse>
        </DataTemplate>

Then the 'GetBestView()' just works fine, but unfortunately, I'm don't know how I can nicely implements the 'drag and drop' feture for MapShape.


Can you please provide some help ?

Thx
Andrey
Telerik team
 answered on 10 Dec 2013
3 answers
212 views
Just upgraded to 2013.3.1204 and installing Local Demos is no longer an option. Neither during the upgrade or later after 2013.3.1204 is installed using Turn Features On/Off.

ASP.NET and Kendo still have Local Demos but not WPF. Local Demos are really useful and provide plenty of source code as reference. 

If I install the click once WPF demos from the web site will I get the source code as well?
Yana
Telerik team
 answered on 10 Dec 2013
0 answers
95 views
I have been usingDocumentFragment to assemble a RadDocument from RadDocuments, but need to maintain the section headers from the original document. Currently they get dumped when assembling the document.

			var radDocument = RadDocumentHelper.GetDefaultDocument();
			foreach (var item in ClausesSelectedList)
			{
				radDocument = item.ClauseData.GetRadDocument(FieldOrderNumber, RevNumber.Value);
				var section = new Section();
				var frag = new DocumentFragment(radDocument);
				var docPos1 = new DocumentPosition(radDocument);
				docPos1.MoveToLastPositionInDocument();
				radDocument.InsertFragment(frag, docPos1);
			}
Clifford
Top achievements
Rank 1
 asked on 10 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?