Telerik Forums
UI for WPF Forum
15 answers
751 views
I was trying the new VS2010 with Blend 4 RC, Edit a copy is unavailable/grayed out. All styles under Edit additional styles are grayed out from Telerik components. Now I cannot edit RoyStyle and such, please help me.
Vanya Pavlova
Telerik team
 answered on 29 May 2012
3 answers
129 views
Hello,

I am having big performance issues with UI coding in Visual Studio 2010. The IDE itself hangs for few seconds when scrolling or editing few characters in the project XAML file. The code behind is not a problem and it works okay. There are no other extensions installed than Telerik WPF Extensions and the Visual Studio has all latest updates.

So my guess is, it has something to do with controls, because it works much faster on a project without Telerik controls. The problem is frustrating, I spend hours coding a simple interface instead of minutes, just because I wait for IDE to respond. I have already tried changing the Visual Studio settings such as: disabling Toolbox auto population, changing to software rendering, and few tweaks. The Studio hangs when editing XAML code, no matter what, so it must be something in connection with my Telerik setup. I tried this on my workstation and my laptop and it works the same.

The problem is either bad XAML code (too long perhaps - 285 lines), or something with controls configuration.

Can you please help me?

Thank you,

Dal Rupnik
Vlad
Telerik team
 answered on 29 May 2012
3 answers
206 views

We identified several issues with our new Upgrade Wizard shortly after our Q2 2011 release.

The following circumstances are known to cause issues when using the Upgrade Wizard:

  • Having any invalid references in your project (marked with a warning sign in Visual Studio)
  • Having COM references in your project
  • Holding a project reference to a project which has not yet been built
  • Holding a project reference to a project whose output assembly name differs from the project's name

All of the above issues have already been addressed and an update has been released through the Visual Studio Online Gallery:
Telerik WPF VSExtensions

You should be able to use the Visual Studio 2010 Extension Manager to download the update.



Best regards,
The Telerik Team

Legoless
Top achievements
Rank 1
 answered on 29 May 2012
3 answers
150 views
Hello all,

I am trying to create a hierarchical tree view (about 3 levels), where the user can drag/drop to re-order, or move items only within the same level, but cannot move items between levels.  Basically I want to maintain a strict hierarchy of items (C's belong only to B's and B's belong only to A's).

I have tried using a hierarchical data template for my view model (which implements INotifyPropertyChanged) but can only reorder the top level nodes and cannot reorder the child nodes.


Thanks for any help!
Petar Mladenov
Telerik team
 answered on 29 May 2012
3 answers
110 views
This is driving me nuts.
When I allow the columns to be AutoGenerated I can they can be editted, that is the original values are shown and can be modified ( and the data persists ). If I define the fields manually, as below, then the cell is blanked prior to editiing and when the cell loses focus the editted cell reverts to its original value. I'm sure that I am doing something stupid but cannot work this out.

<telerik:RadGridView
              Name="rgv1"
              RowIndicatorVisibility="Visible"
              Grid.Column="1" Grid.Row="2"
              ItemsSource="{Binding ValidUsers}"
              SelectedItem="{Binding SelectedValidUser, Mode=TwoWay}"
              IsSynchronizedWithCurrentItem="True"
              AutoGenerateColumns="False"
              EditTriggers="CellClick">
             <telerik:RadGridView.Columns>
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding userPassword, Mode=TwoWay}" />
            </telerik:RadGridView.Columns>
</telerik:RadGridView>

Thanks
Peter
Top achievements
Rank 1
 answered on 29 May 2012
3 answers
103 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
944 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
135 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
336 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
132 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?