Telerik Forums
UI for WPF Forum
3 answers
1.0K+ views

How can i set the Background to the AccentColor from Telerik Theme?

<StackPanel x:Name="Test" Background="{telerik:Office2013Resource ResourceKey=AccentColor}"></StackPanel>

This does not work.

Stefan Nenchev
Telerik team
 answered on 07 Mar 2016
1 answer
251 views
Hi!

On my RadDiagram control I have generated elements with connections. How to prevent moving connection?
I want to allow the user only to detach and attach the connection. Forbidden situation is visualised in forbiddenSituation.PNG.  If the user unpin the connection and he/she doesn't drag connection to another item, the connection shouldn't be changed. So all connections should have Target and Source element.

I use ConnectionManipulationCompleted event. When ManipulationStatus is Moved I want to Undo this, but the truth is only the previous change will be undone, not current connection moving.

I was thinking I can cache previous state of connection (target and source) on ConnectionManipulationStared and set those if on ConnectionManipulationCompleted target or source are null. But it doesn't work.
Martin Ivanov
Telerik team
 answered on 07 Mar 2016
1 answer
178 views

In my chart I have dashed grid line custom lines but they're on the top of my customized data points. This doesn't happen on the regular Y axis lines.(see Screenshot)

I don't want my grid lines annotations to be on the top of my data points - How to fix this?

Thanks!

Ivan
Telerik team
 answered on 07 Mar 2016
1 answer
103 views
How can I reset a clod control? I want an event to clear the uploaded files on subscribe of an event.
Petar Marchev
Telerik team
 answered on 07 Mar 2016
3 answers
116 views

Hi,

 

 Currently I am trying to automate a Test flow in an application which uses Telerik controls ( RadControls for WPF Q2 2013, file version: 2013.2.611.45) using Visual studio 2012 (Coded UI Test). But while trying to find the controls I am facing issues as it is finding only very few properties. [Control type, control tag, technology name = UIA].

 

Is this correct functioning of Visual studio coded UI. If not can you please guide me about what steps to follow to rectify the error. 

 

N.B. we already followed the steps mentioned in  "http://docs.telerik.com/devtools/wpf/coded-ui-support.html" to install the telerik control support dll in visual studio. But still facing issues.

 

ANy help is appreciated.

 

THanks 

AR

Tanya
Telerik team
 answered on 04 Mar 2016
6 answers
145 views

Hi,

I have two different AggregateFunctions in a GridViewDataColumn, and I would like to show the results in different objects. The first one should be shown in a TextBox, and the second, in a TextBlock.

This is the closer I got so far, but, obviously, both AggregateFunctions results are shown in a TextBox:

<telerik:GridViewDataColumn DataMemberBinding="{Binding StadiumCapacity}" Header="Stadium capacity">
    <telerik:GridViewDataColumn.AggregateFunctions>
        <local:CapacityAggregation />
        <local:YearsLeftAggregation />
    </telerik:GridViewDataColumn.AggregateFunctions>
    <telerik:GridViewDataColumn.Footer>
        <StackPanel Orientation="Vertical">
            <telerik:AggregateResultsList ItemsSource="{Binding}" VerticalAlignment="Center">
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <TextBox VerticalAlignment="Center" Text="{Binding FormattedValue}" />
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </telerik:AggregateResultsList>
        </StackPanel>
    </telerik:GridViewDataColumn.Footer>
</telerik:GridViewDataColumn>

How can I achieve this? Any help would be appreciated.

Leonardo
Top achievements
Rank 1
 answered on 04 Mar 2016
1 answer
160 views

I'm using the RadGridView.ExportToXlsx() to export my grid to an Excel (.xlsx) file. The exported File works perfectly in Excel 2016, but in OpenOffice (Apache_OpenOffice_4.1.2_Win_x86_install_de) I get the error "Wrong Format".

The only workaround is to open the exported file in Excel and save it. After that the file can be opened in OpenOffice.

I can reproduce the error with the WPF Controls Examples Q1 2016 SP1 (Exporting to Xlsx and Pdf fromats).

 

Is there any way to solve this?

Yoan
Telerik team
 answered on 04 Mar 2016
5 answers
230 views

Hi!

Let's say I have a list of 100 items with an Id ranging from 1 to 100. I put them in a QCV, ordered by Id, with a page-size of 20 resulting in 5 pages. I bind that QCV to a GridView and a DataPager. Page 1 is displayed which means Ids 1 to 20 are visible in the Grid.

Question: what is the most efficient way to find and display the item with a specific Id without loading all pages and skipping through all items in a page? Please give an example!

Regards
Heiko

Maya
Telerik team
 answered on 04 Mar 2016
2 answers
136 views

Hi,

Say I have a timeline with a duration of 180hours. If I add events with duration of for instance 1 minute and zoom the timeline all the way out, the events become completely hidden. Zooming in on the area of the event will eventually make the event appear again.

Is there a way to set a minimum event width - at the very least a dot or a small vertical mark - to visually indicate that there exists an event here? 

I am using custom templates for the events. 

Thanks,

Kato

Kato
Top achievements
Rank 1
 answered on 04 Mar 2016
13 answers
206 views

Hello!

I have a question about Hierarchy and IsExpandable, In my GridView ,user can add and remove father and son items.

I tried the code like this two way,they can set  IsExpandable to false or true when loaded or add items,

but when I remove all the sub items of a father item, the IsExpandable can not set to false,is there any way to solve it? thanks a lot.

<telerik:RadGridView.RowStyle>
    <Style TargetType="telerik:GridViewRow">
   <Setter Property="IsExpandable" Value="True"/>
   <Style.Triggers>
    <DataTrigger Binding="{Binding Converter={StaticResource integerToBooleanConverter}, Path=SubList.Count}" Value="False">
    <Setter Property="IsExpandable" Value="False"/>
    </DataTrigger>
    </Style.Triggers>
 </Style>
 </telerik:RadGridView.RowStyle>
<i:Interaction.Behaviors>
  <behavior:IsExpandableBehavior IsExpandableSourcePropertyName="SubList.Count" />
 </i:Interaction.Behaviors>

Wang
Top achievements
Rank 1
 answered on 04 Mar 2016
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?