Telerik Forums
UI for WPF Forum
8 answers
88 views
Hi,

I would like to know how I can achieve what I'm trying to do on the attached picture...

Thank's
Al
Yana
Telerik team
 answered on 30 Oct 2013
1 answer
113 views
Hello,
in a WPF application, when using a theme, we can use the them for the main application window, the dialog boxes, but not for some system dialogs, such as OpenFile, SaveFile, BrowseFolder and Print. These dialogs keep their Windows look and are not themed.
Thence, the following questions:
  1. Do you have a solution to theme these dialog boxes?
  2. Do you plan to have a solution to theme them?
  3. Do you plan to have replacement dialog boxes for them?
  4. Do we need to make replacement ourselves?
Patrick
Vanya Pavlova
Telerik team
 answered on 30 Oct 2013
1 answer
117 views
Button click events now work when contained in a Tile. But they stop working if you change the implcit style to Office2013 or Windows8. Office_XXX, Expression_Dark and Windows7 is working as expected.

I've got a simple sample project showing the bug, but upload of zip files are not allowed?
Maya
Telerik team
 answered on 30 Oct 2013
1 answer
98 views
Hi,
     
     I am using RadDocking in my Application. I want to display the MainWindow(not the Floating Child Window) to appear Front when I focused or clicked. Any way to do this???


Thanks in Advance,
M.Vinnarasi

Kalin
Telerik team
 answered on 30 Oct 2013
1 answer
96 views
Hi,

to anyone having the same Issue:

When you use the Windows8 theme (or Windows8Touch theme) and you place a TextBlock inside a RadTabItem, the TextBlock's Foreground is set to white, which makes the TextBlock effectively invisible.
To work around this issue you have to set the ContentTemplate of the RadTabControl like this:

<telerik:RadTabControl>
  <telerik:RadTabControl.ContentTemplate>
    <DataTemplate>
      <ContentControl Content="{Binding}" TextBlock.Foreground="Black" />
    </DataTemplate>
  </telerik:RadTabControl.ContentTemplate>
</telerik:RadTabControl>

This will set the Foreground of all TextBlocks placed inside the TabControl to Black, so that they are visible again.

Please note that this will not work if the IsContentPreserved Property of the RadtabControl is set to true.

I hope this helps someone.

Sincerely yours,
David Liebeherr
Pavel R. Pavlov
Telerik team
 answered on 30 Oct 2013
1 answer
116 views
Hi,
It seems there is an error in the demo application for GridView.
As you can see in the attached picture, the currency in the data table is dollar, while the currency of the aggregation result is krone.

I'm using Windows 7, and the Region and Language is set to Danish - Denmark.

Regards,
Gong
Dimitrina
Telerik team
 answered on 30 Oct 2013
2 answers
108 views
How can we prevent that the editdialog is showing?

This does not work:

        private void ScheduleView_OnAppointmentEditing(object sender, AppointmentEditingEventArgs e)
        {
            //....
            
           e.Cancel = true;
           e.Handled = true;
        }
Kalin
Telerik team
 answered on 30 Oct 2013
0 answers
171 views
I have a RadGridView in which the ItemsSource is bound to an ObservableCollection of "Incident" objects. The XAML also defines a RadGridView.HierarchyChildTemplate so the RadGridView will show a "+" next to each row allowing the user to expand each row to edit additional information about the Incident. Since the code I'm working on is proprietary, I've created a watered down sample of that code, which is shown below:

Here is the xaml:

   <TelerikGridView:RadGridView ItemsSource="{Binding Incidients}" x:Name="radGridViewMain">
 
            <TelerikGridView:RadGridView.ChildTableDefinitions>
                <TelerikGridView:GridViewTableDefinition>
                    <TelerikGridView:GridViewTableDefinition.Relation>
                        <TelerikWindowsData:PropertyRelation ParentPropertyName="IncidientID"/>
                    </TelerikGridView:GridViewTableDefinition.Relation>
                </TelerikGridView:GridViewTableDefinition>
            </TelerikGridView:RadGridView.ChildTableDefinitions>
 
 
            <TelerikGridView:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <Grid DataContextChanged="Grid_DataContextChanged">
                        <TextBox Text="{Binding CommentsText, Mode=TwoWay}" ></TextBox>                       
                    </Grid>
 
                </DataTemplate>
            </TelerikGridView:RadGridView.HierarchyChildTemplate>
 
                                                <TelerikGridView:RadGridView.Columns>
                                                    <TelerikGridView:GridViewDataColumn x:Uid="gridViewDataColumnUnitCode" Header="Unit Code" DataMemberBinding="{Binding UnitCode}" IsFilterable="False"/>
                                                    <TelerikGridView:GridViewDataColumn x:Uid="gridViewDataColumnStatus" Header="Status" DataMemberBinding="{Binding AssignmentStatusNameDisplay}" IsFilterable="False"/>
                                                    <TelerikGridView:GridViewDataColumn x:Uid="gridViewDataColumnLocation" Header="Location" DataMemberBinding="{Binding Location}"  IsFilterable="False"/>
                                                    <TelerikGridView:GridViewDataColumn x:Uid="gridViewDataColumnETA" Header="ETA" DataMemberBinding="{Binding RelativeETAFromNowDisplay}" IsFilterable="False"/>
                                                    <TelerikGridView:GridViewDataColumn x:Uid="gridViewDataColumnElapsed" Header="Elapsed" DataMemberBinding="{Binding ElapsedTimeDisplay}" IsFilterable="False"/>
                                                </TelerikGridView:RadGridView.Columns>
 
 
            <TelerikGridView:RadGridView.SortDescriptors>
                <TelerikControlsGridView:ColumnSortDescriptor  x:Uid="columnSortDescriptorPriorityNumber" Column="{Binding Columns[\IncidientID
\], ElementName=radGridViewMain}"
                                            SortDirection="Ascending" />
 
            </TelerikGridView:RadGridView.SortDescriptors>
</TelerikGridView:RadGridView>


Below is a copy of what the event handler looks like in the code-behind:

private void Grid_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
{
  System.Diagnostics.Debugger.Break();
}


The following is the issue I'm having:

The first time the row is expanded, the DataContextChanged handler is hit, as expected (i.e. e.OldValue is null, and e.NewValue is set to an instance of Incident), which, is correct. The problem is that every time a new item is added to the Incidents (ObservableCollection<Incident>) object, to which the grid is bound, the DataContextChanged event gets fired twice for the row that is currently expanded.

Here is what the values are the first time it's hit:
e.OldValue = <Incident>
e.NewValue = NULL

The second time:
e.OldValue = NULL
e.NewValue = <Incident>


The only time the DataContextChanged handler should fire is when the user initially expands the row. Moreover, even if it did fire a second time when a new row is added to the collection, why does it nullify it, just to put it back to what it was before?

What would cause this to happen?



Ryan
Top achievements
Rank 1
 asked on 29 Oct 2013
1 answer
272 views
Hello,

Using Telerik version 2013.2.611.40, i'm trying to export a (grouped) grid which contains only 1 column, that has a nested items control in a GridViewDataColumn.CellTemplate. The result (ExcelML) file doesn't contain the values from the nested list.

The result (in GUI) is just what i want (and need) the problem is with the export.

* I need to be able to export to ExcelML and to display (in GUI) the data grouped like this:
^Name
some key some value
some key2 some value2
^Name2
some key3 some value3
some key4 some value4
* the 'Items' (and SourceAttributes) is an ObservableCollection of my custom view model

(part) of the xaml:
<UserControl...
<xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
...>
<DataTemplate x:Key="sourceAttributesDataTemplate">
<ItemsControl ItemsSource="{Binding Path=SourceAttributes}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width=".3*"/>
<ColumnDefinition Width=".7*"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Content="{Binding Path=Key}"/>
<Label Grid.Column="1" Content="{Binding Path=Value}"/>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</DataTemplate>
<telerik:RadGridView ItemsSource="{Binding Path=Items}" AutoGenerateColumns="False" GroupRenderMode="Flat" AutoExpandGroups="False" ShowColumnHeaders="False">
<telerik:RadGridView.GroupDescriptors>
<data:GroupDescriptor Member="Name" SortDirection="Ascending" />
</telerik:RadGridView.GroupDescriptors>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Width="*" Header="" CellTemplate="{StaticResource sourceAttributesDataTemplate}">
</telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
</telerik:RadGridView>

Is there any way to achieve this functionality? (where is the problem?)
I know that 'DataMemberBinding' is crucial - but in this case they are nested inside the ItemsControl....

Thanks in advance,
Aviv
Yoan
Telerik team
 answered on 29 Oct 2013
2 answers
230 views
I have a GridView and use MVVM pattern, I bind SelectedItem to an object in my viewmodel, and on row edit ended pass this as a parameter to my insert method, as described in Telerik documentation here:

http://www.telerik.com/help/wpf/patterns-and-practices-eventtocommand-mvvmlight.html

Namely:

<telerik:RadGridView x:Name="xRadGridView" ItemsSource="{Binding GridItems, Mode=TwoWay}">
        <i:Interaction.Triggers>
            <i:EventTrigger EventName="RowEditEnded">
               <i:InvokeCommandAction Command="{Binding TestCommand, Mode=OneWay}"
                              CommandParameter="{Binding ElementName=xRadGridView, Path=SelectedItem}"/>
            </i:EventTrigger>
        </i:Interaction.Triggers>
</telerik:RadGridView>

Here's the problem - when I first sort the grid by some field and then add a new item, the SelectedItem property on RowEditEnded event is set to an item that was the last item in the list prior to insert. 

For example, I have a field SequenceNumber and sort the grid in descending order. When I insert an item, the field is blank; I then enter a very high value that would place the item to the top of the list; however, the SelectedItem parameter has the value of the last item in the list (which would be the case if no sort was initially performed). Is this a known issue? Please help.
Dimitrina
Telerik team
 answered on 29 Oct 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?