Telerik Forums
UI for WPF Forum
1 answer
198 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
90 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
211 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
268 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
153 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
110 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
828 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
1 answer
145 views
Does radRichTextBox editor supports following features?
1. can be able to specify headings to the text like MS Word Styles?
2.Can be able to insert heading number and heading characters into the text like MS Word cross reference?
3.Can be able to create new style like MS Word style?
4.Does it supports Outline view like  MS word outline view?
5. Does it supports styles and formatting?
6.Does the graphics in rich textbox are movable?

Let me know information on these features...I just want to know radRichTextBox supports above features or no..
Thanks
Iva Toteva
Telerik team
 answered on 03 Oct 2011
3 answers
233 views

Hi,

Base on this example:

http://www.telerik.com/community/code-library/wpf/gridview/radgridview-print-and-print-preview.aspx

I made a custom reporting service for our home application needs. I installed 2010 Q3 SP1 Telerik new controls, and I steel have problem with this specific line:

element.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));

 

When the grids as too much rows (3000 can go over 300 000) that throw a out of memories exceptions in the print preview. I read a couple of article on Telerik forum that said that this issue was supposed to be fixed in Q3…  and can be cause by GridViewRowInfo objects which occupy most of the memory…

http://www.telerik.com/community/forums/winforms/gridview/memory-usage-where-s-the-problem-in-my-code.aspx

Can you please help me with that?

Gabriel

Chad
Top achievements
Rank 1
 answered on 03 Oct 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?