Telerik Forums
UI for WPF Forum
3 answers
109 views
I'm currently evaluating switching our charting solution to Telerik.  I've noticed that small changes in the Y values can be magnified when fully zoomed out.  I'm not sure why this is or how I can minimize it.

It certainly makes the data look as though there are values that don't really exist.

As an example I have two screen shots of the chart.  I've put the trackinfo at the same point in both so that you can see that the massive spike to the right of it is the same tiny ripple seen in the other shot.

Telerik_ChartViewer_LineSeries_ExaggeratedValues1.png - Zoomed out version, large spikes
Telerik_ChartViewer_LineSeries_ExaggeratedValues2.png - Zoomed in version, little ripples

Thanks
Yavor
Telerik team
 answered on 29 May 2012
2 answers
984 views
Hi,

I came across this thread where they are asking the same question I have, however it's for Silverlight and two years old so I'd like to see if there's any change in WPF and 2012. The question is: 
Is it possible to disable text selection and editing in an RTB but keep the scrollbars active so people can view all the content?

Thanks
Peter
Top achievements
Rank 1
 answered on 28 May 2012
0 answers
137 views
I am trying to build a simple context menu for changing column visibility that is virtually identical to the sample file included in this post http://www.telerik.com/community/forums/wpf/gridview/changing-column-visibility-in-a-context-menu.aspx. But I'm encountering the following error: 

An unhandled exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll

Additional information: Specified element is already the logical child of another element. Disconnect it first.

Here's a snippet of my markup:

<telerik:RadGridView Name="MyGridView" ItemsSource="{Binding Source={x:Static local:MainWindow.MyData}}" AutoGenerateColumns="False">
<telerik:RadGridView.Columns> 
<telerik:GridViewDataColumn DataMemberBinding="{Binding Item}" UniqueName="Item" TextAlignment="Center">
<telerik:GridViewDataColumn.Header>
<TextBlock Text="Item Name" HorizontalAlignment="Center"></TextBlock>
</telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Category}" UniqueName="Category" TextAlignment="Center">
<telerik:GridViewDataColumn.Header>
<TextBlock Text="Item Category" HorizontalAlignment="Center"></TextBlock>
</telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Desc}" UniqueName="Desc" TextAlignment="Center">
<telerik:GridViewDataColumn.Header>
<TextBlock Text="Description" HorizontalAlignment="Center"></TextBlock>
</telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn> 
</telerik:RadGridView.Columns>
<telerik:RadContextMenu.ContextMenu>
<telerik:RadContextMenu Opened="RadContextMenu_Opened">
<telerik:RadContextMenu.ItemTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsVisible}" Content="{Binding Header}" />
</DataTemplate>
</telerik:RadContextMenu.ItemTemplate>
</telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>
</telerik:RadGridView>

I am evaluating trial version 2012_1_326.
Your help is appreciated.

Vic
Top achievements
Rank 1
Iron
 asked on 28 May 2012
1 answer
354 views
Hi,

thank's for all xour help my listbox ist fine, but one more question. I have a EventSetter on my ListBoxItem

<EventSetter Event="MouseDoubleClick" Handler="ListBoxItem_MouseDoubleClick"/>

Code:
void ListBoxItem_MouseDoubleClick(object sender, RoutedEventArgs e)
{
    Frame pageFrame = null;
    pageFrame = helper.FindChild<Frame>(Application.Current.MainWindow, "MainFrame");
   
     if (pageFrame != null)
     {
         var content = pageFrame.Content as Page;
         var targetPage = content is Trichter1 ? new KontaktDetailAnsicht(myContact) as Page : new Trichter1() as Page;
          pageFrame.NavigateToExample(targetPage);
      }
 }

But how do i get the ViewModel? I tried Contact myContact = e.OriginalSource as Contact, but myContact is null? How do i get Values of my doubleclicked ListboxItem as my ViewModel?

Thanks
Regards
Rene
George
Telerik team
 answered on 28 May 2012
1 answer
137 views
I have a ribbonview with 2 close buttons.
Only one button is visible at a time using the visible property binding
The problem is that when I use the KeyTip for the close button (CS for both) the first
command always fires even if that button is not visible.
I would think that it should skip over the invisible button and fire the command for the
second button.
Is this a bug/missing functionality or expected behaviour?
  




          
<!--  Close SIN (Client Info)  -->                            <telerik:RadRibbonButton CollapseToMedium="Never"                                      Command="{x:Static InfraWorkCommands:WorkCommands.CloseClientInformationCommand}"                                      LargeImage="/SC.NWS.Application;component/Resources/Icons/icn-Close_32.png"                                      Size="Large"                                      telerik:KeyTipService.AccessText="{Binding .[ClientInformationModuleResources.KeyTip_Close],                                                                                 FallbackValue=CS,                                                                                 Mode=OneWay,                                                                                 Source={StaticResource localization}}"                                      Text="{Binding .[ClientInformationModuleResources.Menu_Close_SIN],                                                     FallbackValue='Close',                                                     Mode=OneWay,                                                     Source={StaticResource localization}}"                                      ToolTip="{Binding .[ClientInformationModuleResources.Menu_Close_Client_Info_TT],                                                        FallbackValue='Close the current open page',                                                        Mode=OneWay,                                                        Source={StaticResource localization}}"                                      ToolTipService.ShowOnDisabled="True"                                      Visibility="{Binding IsNotGeneralInquiry,                                                           Mode=TwoWay,                                                           UpdateSourceTrigger=PropertyChanged}" />                       <!--  Close General Inquiry  -->                      <telerik:RadRibbonButton CollapseToMedium="Never"                                      Command="{x:Static InfraWorkCommands:WorkCommands.CloseGeneralInquiryCommand}"                                      LargeImage="/SC.NWS.Application;component/Resources/Icons/icn-Close_32.png"                                      Size="Large"                                      telerik:KeyTipService.AccessText="{Binding .[ClientInformationModuleResources.KeyTip_Close],                                                                                 FallbackValue=CS,                                                                                 Mode=OneWay,                                                                                 Source={StaticResource localization}}"                                      Text="{Binding .[ClientInformationModuleResources.Menu_Close],                                                     FallbackValue='Close SIN',                                                     Mode=OneWay,                                                     Source={StaticResource localization}}"                                      ToolTip="{Binding .[ClientInformationModuleResources.Menu_Close_General_Inquiry_TT],                                                        FallbackValue='Close the current open page',                                                        Mode=OneWay,                                                        Source={StaticResource localization}}"                                      ToolTipService.ShowOnDisabled="True"                                      Visibility="{Binding IsNotClientInformation,                                                           Mode=TwoWay,                                                           UpdateSourceTrigger=PropertyChanged}" />
Tina Stancheva
Telerik team
 answered on 28 May 2012
3 answers
161 views
I have the following code in my RowActivated EventHandler

private void dgv_RowActivated(object sender, Telerik.Windows.Controls.GridView.RowEventArgs e)
{
            dgv.SelectedItems.Clear();
 
                foreach (var t in collection)
                {
                    dgv.SelectedItems.Add(t);
                }
}

I have SelectionUnit="FullRow" and SelectionMode="Extended" 

The problem is that the rows are highlighted for a second, then only the row I double clicked on remains highlighted. Is there any way to do this?

Nedyalko Nikolov
Telerik team
 answered on 28 May 2012
1 answer
219 views
Hello,

According to this thread  (see Konstantina's answer), pressing the "Escape"  key with the Confirm dialog opened should return false.

But the following sample returns true:
bool? dialogResult = null;
Telerik.Windows.Controls.RadWindow.Confirm(
new Telerik.Windows.Controls.DialogParameters()
{
Closed = (w, e) =>
{
       dialogResult = e.DialogResult;
}
});

Is this the expected result? I would think escape would return false.

Thanks,

Simon

Konstantina
Telerik team
 answered on 28 May 2012
1 answer
97 views
Hi,

I  am using a RAD control (combobox) in my application that is a type of custom IDE, i am facing an issue with the combobox when i use it within a Isolated shell custom IDE. The issue description is as follows:-

When i click on the combobox the drop down opens and if i click on any other control or i click on the page that is contained in the IDE the drop down closes. However if i click and open the drop down and insted click on the header of the IDE (i.e. the top most part of the IDE, where the logo is diaplyed) the drop down will not close,

also if i resize the IDE and and move the window around the drop down list persists on the same position where it was opened as if it was no way attached to the combobox.

Instead if i use a normal WPF combobox it behaves normally and the drop down closes on clicking the IDE header also.

Please suggest what can be done in order to resolve the issue.

Regards,

Avinash Saxena
Boyan
Telerik team
 answered on 28 May 2012
6 answers
323 views
Hi,

How do I go about getting the character position along a given line wherever the caret is placed?

I can get the CaretPosition easily enough, but the I don't want the X & Y coordinates. I need to count how many characters there are along a line up to where the caret is placed.

Thanks for your time,

Rob
Martin Ivanov
Telerik team
 answered on 28 May 2012
1 answer
194 views
Hi,

How can i bind DocumentSource to a PDF file in network path. 

//property
public string FilePath
{
get; set;
}
DocumentSource = {Binding Filepath}

Thanks in Advance.



Kammen
Telerik team
 answered on 28 May 2012
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
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?