Telerik Forums
UI for WPF Forum
1 answer
292 views
Hello!

I'm creating menu using DataBing. For some reason RadMenuItem is wrapped with other menu item. Here is how my XAML looks like:

        <telerikNavigation:RadMenuItem ItemsSource="{Binding SupportedThemes}" >
........
          <telerikNavigation:RadMenuItem.ItemTemplate>
            <DataTemplate>
              <telerikNavigation:RadMenuItem
                Header="{Binding DisplayName}"
                Command="{Binding ChangeThemeCommand}"
                CommandParameter="{Binding}"
              />
            </DataTemplate>
          </telerikNavigation:RadMenuItem.ItemTemplate>

What needs to be done order to get menu item look like static menu items? Is something special need to be added to templated?

I would like to pay your attention that suggested solution need to work in WPF.
Dani
Telerik team
 answered on 04 Oct 2011
4 answers
172 views
Cut and paste from IE 9 doesn't appear to work to a richtextbox bound with the HtmlDataProvider.  I can cut & paste from the same web page using Firefox and it works fine.
2011.1.419.40
Iva Toteva
Telerik team
 answered on 04 Oct 2011
1 answer
179 views
Hi.
    I want to change mm/dd/yyyy to yyyy-mm-dd. Is it possible ?
please give me a xaml example.
thank you.
Ivo
Telerik team
 answered on 04 Oct 2011
1 answer
85 views
Hello,

If I cancel the selection of an item within the PreviewSelectionChanged event of the RadOutlookBar there are different behaviors depending on where the selection was made.

1) Selection in the 'normal' items-area -> Everthing is fine. The selected Item stays highlighted.
2) Selection in the MinimizedArea -> The wrong item gets highlighted.

Is it possible to workaround this ?

Regards
Rainer

Here is the sample-code:

<telerik:RadOutlookBar x:Name="obMenu"
               PreviewSelectionChanged="obMenu_PreviewSelectionChanged">
    <telerik:RadOutlookBarItem Header="Item 1">
        <Border Background="Blue">
            <TextBlock Text="Item1"/>
        </Border>
    </telerik:RadOutlookBarItem>
    <telerik:RadOutlookBarItem Header="Item 2">
        <Border Background="Green">
            <TextBlock Text="Item1"/>
        </Border>
    </telerik:RadOutlookBarItem>
    <telerik:RadOutlookBarItem Header="Item 3">
        <Border Background="Red">
            <TextBlock Text="Item1"/>
        </Border>
    </telerik:RadOutlookBarItem>
</telerik:RadOutlookBar>

private void obMenu_PreviewSelectionChanged(object sender, SelectionChangedEventArgs e) {
    if (MessageBoxResult.Yes == MessageBox.Show("Cancel selection ?", "Cancel", MessageBoxButton.YesNo, MessageBoxImage.Question)) {
        e.Handled = true;
    }
}

Petar Mladenov
Telerik team
 answered on 04 Oct 2011
1 answer
204 views
Hello all.

I have (double) from latitude and longitude.
Now i want show the real adress from this location in the map.
And i must wait for the answer before i can do anything else.

I´ve tried:

var reverseGeocodeRequest = new ReverseGeocodeRequest();
reverseGeocodeRequest.Location = new Location(tt.Latitude,tt.Longitude);
 
var geocodeService = new GeocodeServiceClient();
GeocodeResponse geocodeResponse = geocodeService.ReverseGeocode(reverseGeocodeRequest);
 
if (geocodeResponse.Results.Length > 0)
    results = geocodeResponse.Results[0].DisplayName;
 
}

I get an error
Fehler 3 Argument "1": Konvertierung von "Telerik.Windows.Controls.Map.ReverseGeocodeRequest" in "Telerik.Windows.Controls.Map.WPFBingGeocodeService.ReverseGeocodeRequest" nicht möglich. 
GeocodeResponse geocodeResponse = geocodeService.ReverseGeocode(reverseGeocodeRequest); 

And i don´t  know why...

Can anyone help please?

Reinhard




Andrey
Telerik team
 answered on 04 Oct 2011
1 answer
262 views
Hi,

I am using RadTimePicker in a WPF desktop application. But not able to find out how to format the display time to "HH:mm:ss".

Thanks

Ashish
Dani
Telerik team
 answered on 04 Oct 2011
1 answer
144 views
Hi,
We have scatter plot in our client/server application where the data is aggregated on the server.
We use the scatterplot with different colored series, to product a weigthed scatterplot, where the color corresponds to the number of points with the given x-y values. (where the x and y are ranges of values instead of individual points)

When zooming/scrolling we would like to implement custom logic instead of the default zoom/sort. (to actually go back to the server and recalculate a more precice set)

During design we ran into 2 issues.
1. When Zomming on both X and Y Axis using the normal zoom function you would not get the exact zoom you would expect.

We then changed to the application to only Zoom on the X-Axis, with both Autogenerates and non autogenerated X-Axis.
We tried implementing the ZoomSettings_OnPropertyChanged, but we are unable to recalculate the actual values.
ChartArea.AxisX.ActualMinValue + (ChartArea.AxisX.ActualRange * ChartArea.ZoomScrollSettingsX.RangeStart)
ChartArea.AxisX.ActualMinValue + (ChartArea.AxisX.ActualRange * ChartArea.ZoomScrollSettingsX.RangeEnd)
Do not match the visual selection of the Zoom. We have an Amount Range on the XAxis, ranging from -2 mil, to 8 mil, selecting -0.5 mil to 1 mil, gives +1.2 mil to 1.4 mil give or take.
We even sometimes got a RangeEnd greater then 1 ?

2. Since we do our own zooming, is there a way to cancel the Client Zoom,
resetting the RangeStart&RangeEnd to 1 fires off the OnPropertyChanged Event again.

I think we are overlooking sometimes, so your help would be appriciated.

Regards,
Marinus
Nikolay
Telerik team
 answered on 04 Oct 2011
3 answers
103 views
Hi
I am implementing print preview in rich textbox,there is no print preview in rich textbox so im using from System.Drawing but im getting the following error

 Cannot implicitly convert type 'Telerik.Windows.Documents.Model.RadDocument' to 'System.Drawing.Printing.PrintDocument' 

Is there any other way of doing this?how can i achieve print preview with RadDocument?

Thanks
Boby
Telerik team
 answered on 04 Oct 2011
15 answers
815 views
Hi,
I want to design a grid that should contain 4 columns, first column is data column with dynamic image, second & third column is Data column and the fourth column is image button column, the column contains 4 images like rename, edit, delete, etc..

Refer the attached image as i described above.

When i click the fourth column each image i want to do a different operations.

How do i achive this in WPF rad GridView? suggest me a better approach.

I am using WPF 3.5
Rajasekaran S
Top achievements
Rank 1
 answered on 04 Oct 2011
2 answers
1.5K+ views
Hello Telerik Team,
I am new to Telerik. we are upgrading the project to 2011 version. In the RadGridview we have a date column display. It was working fine in the 2009 version. Now it is displaying the date with default time 12:00. How do I take out the time part and display only the date.
I have used the  DataFormatString = "{0: mm/dd/yyyy}. I could see the format change in the result. But the months are always showing 00 for all the row. What is the correct syntax? I tried this format DataFormatString = {mm/dd/yyyy} , getting error in the page load itself.
<telerik:GridViewDataColumn DataType="{x:Null}" IsReadOnly="True" IsVisible="True" IsFilterable="False" IsGroupable="False" IsSortable="True" Width="100" UniqueName="RunDate" Header="Birth Date"  TextAlignment="Left"  DataFormatString=" {0:mm/dd/yyyy} "/>
-Arun
Arun
Top achievements
Rank 1
 answered on 03 Oct 2011
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?