Telerik Forums
UI for WPF Forum
3 answers
116 views
Hello,
I'm mainly using Summer theme as implicit styles. However I realized that System.Windows.xaml of this theme is causing exception in WPF designer on Visual Studio 2012. When I'm exclude these styles from resources everything is correct, after including I have crash again. I've started testing and realized that this is happening with summer theme but e.g. Windows8 is working without issue. I've checked office and it has the same issue. The issue is only with System.Windows.xaml  file. I tried to find where it is but I couldn't

There is other issue that I have which is related to .NET 4 and Visual Studio 2010:
in your implicit styles there can be found e.g. following clause:
<DiscreteObjectKeyFrame.Value>
<Thickness>0,0,-1,0</Thickness>
</DiscreteObjectKeyFrame.Value>
Becaue I'm using Polish operating system designer (becuase of VS bug) cannot parse this (it doesn't like commas). Could you please change commas to spaces? Which is proper as well and you already using that in most places but not always. I can find examples where commas can be found. It is taking me a lot of time to upgrade project properly becuase I need to take care with this bug.
Vanya Pavlova
Telerik team
 answered on 01 May 2013
1 answer
573 views
I couldn't able to apply rounded corners to the SubMenu's in the RadContextMenu. I do like to know how to set the minwidth for submenu just like in the TopLevelMenu and How to change the highlightcolor. Any help would be great. Thank you in advance.
<Window.Resources>       
        <Style x:Key="MenuItemStyle" TargetType="{x:Type telerik:RadMenuItem}">
            <Setter Property="Icon" Value="{Binding Icon}" />
            <Setter Property="IsSeparator" Value="{Binding IsSeparator}" />           
        </Style>
        <Style x:Key="ContextMenuStyle" TargetType="telerik:RadContextMenu">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:RadContextMenu">
                        <Border CornerRadius="5" BorderBrush="Gray" BorderThickness="1" Background="White" SnapsToDevicePixels="True">
                            <ItemsPresenter />
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Grid>
        <Border Background="Gray" >
            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu x:Name="textcontext" IconColumnWidth="0" MinWidth="150" 
                                        Style="{StaticResource ContextMenuStyle}" HorizontalAlignment="Right"
                                        NotifyOnHeaderClick="True" ItemContainerStyle="{StaticResource MenuItemStyle}" ItemsSource="{Binding}" >
                    <telerik:RadMenuItem Header="New" />
                    <telerik:RadMenuItem IsSeparator="True" />
                    <telerik:RadMenuItem Header="Edit" >
                        <telerik:RadMenuItem Header="New" />
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Header="Edit">
                            <telerik:RadMenuItem Header="New" />
                            <telerik:RadMenuItem IsSeparator="True" />
                            <telerik:RadMenuItem Header="Edit"/>
                            <telerik:RadMenuItem Header="Delete" />
                            <telerik:RadMenuItem Header="Select" />
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Header="Delete" />
                        <telerik:RadMenuItem Header="Select" />
                    </telerik:RadMenuItem>                                    
                    <telerik:RadMenuItem Header="Delete" />
                    <telerik:RadMenuItem IsSeparator="True" />
                    <telerik:RadMenuItem Header="Select" />
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>
        </Border>
    </Grid>



Hristo
Telerik team
 answered on 01 May 2013
1 answer
297 views
Hi,
The problem:
  On the click of a row I have to show the child records (more suitable for HierarchicalTemplate but for some unknown reasons it failed in our project, though worked in the demo I prepared). Basically it seems that the row is not expanding to show rowDetailTemplate which contains another radgridview. The issue was due to some properties in style. I don't find a link to delete, please delete this link. I am facing another issue but will open an appropriate thread.

So I am using RowDetailsTemplate, which contains RadGridView  again. I have moved binding logic from the XAML file to code behind for testing in the OnRowDetailsVisibilityChanged. The problem is binding is working fine in all the cases, but detail grid shows exactly over the parent row. I am attaching the image. I have trying doing the same with GridViewToggleRowDetailsColumn but result is the same. Here is my grid Code and thanks in advance for the help.

<telerik:RadGridView  Name="gridCountEntry" MinHeight="500" 
RowDetailsVisibilityChanged="GridCountEntry_OnRowDetailsVisibilityChanged" ItemsSource="{Binding CurrentRecord.StockTicketLines, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ShowGroupPanel="False" AutoGenerateColumns="False" CanUserFreezeColumns="False" RowDetailsVisibilityMode="Collapsed" >

       <!--        <telerik:RadGridView.ChildTableDefinitions>                <telerik:GridViewTableDefinition>                    <telerik:GridViewTableDefinition.Relation>                         <telerik:PropertyRelation ParentPropertyName="LineStockTransactions"></telerik:PropertyRelation>                    </telerik:GridViewTableDefinition.Relation>                </telerik:GridViewTableDefinition>            </telerik:RadGridView.ChildTableDefinitions>            -->      
<
telerik:RadGridView.Columns>        
<
telerik:GridViewDataColumn DataMemberBinding="{Binding LineProductCode}" Header="Code" IsReadOnly="True" Width="55"/>
       <telerik:GridViewDataColumn DataMemberBinding="{Binding LineRowAttribute}"  Header="Attribute" IsReadOnly="True" Width="70"/>
       <telerik:GridViewDataColumn DataMemberBinding="{Binding LineColumnAttribute}"  Header="Attribute" IsReadOnly="True" Width="70"/>  
      <
telerik:GridViewDataColumn DataMemberBinding="{Binding LineProductDescription}" Header="Description" IsReadOnly="True" Width="150"/>  
      <
telerik:GridViewDataColumn DataMemberBinding="{Binding LineStorageLocation}" Header="Storage Location" IsReadOnly="True" Width="130"/>   
     <
telerik:GridViewDataColumn DataMemberBinding="{Binding LineOwnerShip}" Header="Ownership" IsReadOnly="True" Width="100"/>    
    <
telerik:GridViewDataColumn DataMemberBinding="{Binding LineOnHand}" Header="On Hand" IsReadOnly="True" Width="70"/>    
    <
telerik:GridViewDataColumn DataMemberBinding="{Binding LineCounted}" Header="Counted"  Width="55"/>        <telerik:GridViewDataColumn DataMemberBinding="{Binding LineChange}" Header="Change" IsReadOnly="True"  Width="70"/>
     <telerik:GridViewToggleRowDetailsColumn />

     </telerik:RadGridView.Columns>  
      <
telerik:RadGridView.RowDetailsTemplate>
         <DataTemplate>
           <telerik:RadGridView ShowGroupPanel="False" AutoGenerateColumns="False" CanUserFreezeColumns="False" MinHeight="90" Margin="15,15,15,15">
         <telerik:RadGridView.Columns>
       <telerik:GridViewDataColumn DataMemberBinding="{Binding TransactionDate}" UniqueName="TransactionDate" Header="Trans Date" IsReadOnly="True" Width="70"/>
           <telerik:GridViewDataColumn DataMemberBinding="{Binding PerformedBy}" UniqueName="PerformedBy" Header="Who" IsReadOnly="True" Width="70"/>
             </telerik:RadGridView.Columns>
         </telerik:RadGridView>
         </DataTemplate>
       </telerik:RadGridView.RowDetailsTemplate>
   </telerik:RadGridView>


Rossen Hristov
Telerik team
 answered on 01 May 2013
3 answers
111 views
Any progress? In a post you where writing this.

Hi Branko,

Currently RadPropertyGrid does not support DataErrors validation (It supports exception validation only). However, as it is not a major feature we can implement it for you and include it in an internal build. I believe that we will manage to introduce this change in two weeks. I will keep in touch with you, in order to notify you as soon as the mentioned IB is available for download.

Regards,
Ivan Ivanov 
the Telerik team

and later on:

Posted on Feb 29, 2012 (permalink)

Hi Branko,

I will notify you as soon as the IB is released (it should be the next Monday/Tuesday). I will prepare a simple test project for your referense, as well. Please, do not hesitate to contact us if you have any further inquiries. 

Kind regards,
Ivan Ivanov 
the Telerik team

I need this badly, so please respond.. 

Posted on Feb 21, 2012 (permalink)

Hi Branko,

Currently RadPropertyGrid does not support DataErrors validation (It supports exception validation only). However, as it is not a major feature we can implement it for you and include it in an internal build. I believe that we will manage to introduce this change in two weeks. I will keep in touch with you, in order to notify you as soon as the mentioned IB is available for download.

Regards,
Ivan Ivanov 
the Telerik team

Posted on Feb 21, 2012 (permalink)

Hi Branko,

Currently RadPropertyGrid does not support DataErrors validation (It supports exception validation only). However, as it is not a major feature we can implement it for you and include it in an internal build. I believe that we will manage to introduce this change in two weeks. I will keep in touch with you, in order to notify you as soon as the mentioned IB is available for download.

Regards,
Ivan Ivanov 
the Telerik team

Posted on Feb 21, 2012 (permalink)

Hi Branko,

Currently RadPropertyGrid does not support DataErrors validation (It supports exception validation only). However, as it is not a major feature we can implement it for you and include it in an internal build. I believe that we will manage to introduce this change in two weeks. I will keep in touch with you, in order to notify you as soon as the mentioned IB is available for download.

Regards,
Ivan Ivanov 
the Telerik team

Posted on Feb 29, 2012 (permalink)

Hi Branko,

I will notify you as soon as the IB is released (it should be the next Monday/Tuesday). I will prepare a simple test project for your referense, as well. Please, do not hesitate to contact us if you have any further inquiries. 

Kind regards,
Ivan Ivanov 
the Telerik team

Posted on Feb 29, 2012 (permalink)

Hi Branko,

I will notify you as soon as the IB is released (it should be the next Monday/Tuesday). I will prepare a simple test project for your referense, as well. Please, do not hesitate to contact us if you have any further inquiries. 

Kind regards,
Ivan Ivanov 
the Telerik team
Ivan Ivanov
Telerik team
 answered on 01 May 2013
1 answer
112 views
Hi There,

I have a requirement where i used a simple wpf <Popup/> control in which i have a RadGridView control, i want to resize the popup control, i have seen a control in telerik that is <telerik:ResizeControl/> , can i use this control for my purpose ? if yes can you please tell me how i can implement this? if not then can you please guide me to achieve this?

Thanks in advance.

Regards,
Srinivas.

Vanya Pavlova
Telerik team
 answered on 01 May 2013
6 answers
624 views
Hello.

I'm using the RadTabControl with the Expression_DarkTheme.  I want to change the background of the tab headers when selected.  Is there a relatively simple way to do this  or do I have to re-template the whole tab header?

Thanks in advance.

- Don Jordan
Don
Top achievements
Rank 1
 answered on 30 Apr 2013
4 answers
104 views
I am using MVVM pattern.  I have a RadGridView and have bound the ItemsSource to a collection and SelectedItem to an individual item in the VM.    This works, and I have some buttons to reorder the collection.  They call a command on the VM that moves the SelectedItem up or down in the collection.  This works fine but it appears that after the item gets moved, the SelectedItem becomes null.  My goal is to be able to select an item in the RadGridView and then click the "Move Up" button several times to move the item up in the collection.  Currently the experienced behavior is that I click the item and get one Move Up(or Down) before the SelectedItem becomes null and I am required to select an item to continue moving items.  I have put debug statements in both the SelectionChanged and SelectionChanging events on the RadGridView. 

Upon running my app, here is the order I see:

Event

SelectedItem

SelectionChanging

null

SelectionChanged

CorrectItem

Move method

CorrectItem

SelectionChanging CorrectItem
SelectionChanged  null

I even tried manually setting the SelectedItem in the VM after reordering it, but the reset to null appears to happen sometime after this. 
I have the latest version (2013.1.220.45)  installed and referenced in my project.
   Please let me know if something is unclear.

Thanks,
Chris

Andie
Top achievements
Rank 1
 answered on 30 Apr 2013
8 answers
133 views
Hi,

I am using RadGridView in my application, in that i want to access the AddNewRow in code behind and want to apply cell values from there. Please help me by providing a solution.

Thanks,
Ramesh
velusamyr@hcl.com
Yoan
Telerik team
 answered on 30 Apr 2013
10 answers
460 views
Hi.  I'm loving these new controls, but I have a question.  Is there a way to make the background of the RadDiagram Zoom and Pan along with the shapes?  Right now, the content of the diagram is working just fine, however my background remains at the same zoom level.  I'm assuming that is default behavior, but I would like to have the background image zoom as well.  Is that possible?

Thanks.  Keep up the good work!
Hristo
Telerik team
 answered on 30 Apr 2013
1 answer
118 views
Hi,
I would like to bind a property to an Image present in a headertemplate and a title template
I tried by providing elementname, relative source, no luck!

Please help.
The scenario is:
 <telerik:RadPane.TitleTemplate>
  <DataTemplate>
  
 <StackPanel>
  <Image Name="Sample">
                                                                                               <Image.ToolTip>
                                                    <ToolTip></ToolTip>
                                                </Image.ToolTip>
                                            </Image>
Vladi
Telerik team
 answered on 30 Apr 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?