Telerik Forums
UI for WPF Forum
4 answers
277 views

Hi all,

I think i'm missing something obvious...

I want to have some friendly names on my mail merge fields. (namely spaces in the field names)
So i have a class for instance


Public Class someclass
{
<DisplayName("This is the complex description of the field")>
Public property thisfieldnamehasacomplexdescription as string
  
Public property anothercomplexfield as string
  
}


This is the only way i know to get "Friendly" names in the dropdown that is the mail merge.
So the two fields turn up okay as :
"This is the complex description of the field" 
"anothercomplexfield"

but only 
anothercomplexfield  actually populates with data when you do the merge.

Am i going to have to template the raddropdownbutton that holds the mail merge fields?
Is there an example of this somewhere?


Also a sub question. How do i add a scroll bar??

Petya
Telerik team
 answered on 18 Aug 2014
3 answers
75 views
I've a RadGridView in few of my property pages.
The grid works fine, but I have a strange "rectangle" in the middle of the grid that I have no idea where it came from:
It looks like a scroll bar position marker, but it doesn't respond to anything, and it just "floats" there.
If I remove the grid, it is gone as well. 

(image attached)

Here is the grid code (binding names and header were replaced...)

<telerik:RadGridView Name="gdScoreGrid" DockPanel.Dock="Bottom" AutoGenerateColumns="False" IsScrolling="True" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Auto" 
                           IsReadOnly="True"  ClipboardCopyMode ="All" SelectionMode="Extended"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ShowColumnFooters="True">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding a}" Header="a" IsEnabled="False">
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:CountFunction Caption="aaa:"></telerik:CountFunction>
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aa}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ab}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ac}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ad}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ae}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding af}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ag}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ah}" Header="a a" IsEnabled="False"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aai}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aj}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ak}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding al}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding am}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding an}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ao}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ap}" Header="a a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding aq}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ar}" Header="a?" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding as}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding at}" Header="a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding au}" Header="?a" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding av}" DataFormatString="{} {0:dd/MM/yyyy}" Header="ddd" IsEnabled="False" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ax}" Header="a a" IsEnabled="False" />


            </telerik:RadGridView.Columns>

        </telerik:RadGridView>

Any Ideas what might cause this to appear ? 

Ivan Ivanov
Telerik team
 answered on 18 Aug 2014
2 answers
124 views
I'm having a hard time finding an example of a gridview pulling data from a database. I've looked through the SDK, documentation, and google results for hours to no avail. This really should be easier to find as it has to be a very common request. While I'm at it, there should definitely be an example of this in the SDK (if it's already there, it's not obvious).

I want to do something that should be really easy:
1) Use a datagrid to view rows in a database
2) add/modify rows using buttons and another window
3) filter and sort

I found this overview to help explain what should happen, but I have no idea how to actually implement it: http://www.telerik.com/help/wpf/entityframework-overview.html

I don't fully understand all the differences between MVVM, code behind, etc., but the key statement from the link that I want to implement is this: "All operations such as paging, filtering, sorting, and grouping will automatically happen on the server without a single line of code." I'm guessing insert and update operations will require some code, but maybe not.

I have entity 6.1.x, telerik SDK, and an mssql database with example data already setup. I also have a project based on an example in the SDK that compiles and runs with no issues. All of the pieces should be in place, but I'm missing the critical component that explains how to transact data with entity/databases/whatever it's called.
Dimitrina
Telerik team
 answered on 18 Aug 2014
1 answer
148 views
Hi.

I have a RadCartesianChart with ScatterLineSeries like a polygon (closed figure) and i'd like fill result area like on the attached image.  RangeSeries is not suitable for this case. What ChartSeries class is better to use? How implement this feature correctly?

Sorry for my English.

Thanks.

Inna.
Petar Marchev
Telerik team
 answered on 18 Aug 2014
2 answers
263 views
Hi,

I want to show a RowDetails on a RadTreeListView but only when a row is selected AND only on spesifics rows.

So i try to bind the DetailsVisibility like this:

<telerik:RadTreeListView.RowStyle>
<Style TargetType="telerik:TreeListViewRow">
<Setter Property="DetailsVisibility">
<Setter.Value>
                            <MultiBinding Converter="{StaticResource ParameterStepSynchronizeRowDetailsVisibilityConverter}">
                                <Binding Path="HasDetails"></Binding>
                                <Binding Path="GridSelected"></Binding>
                            </MultiBinding>
                        </Setter.Value>
                    </Setter>
<Setter Property="IsSelected" Value="{Binding GridSelected, Mode=OneWayToSource}"></Setter>
</Style>
</telerik:RadTreeListView.RowStyle>

It works fine but when i scroll down until can't see this item and them i go top, i don't know why but when my selection change my converter is never call again.

How can i perform this?

Thank you in advance
Jerome
Top achievements
Rank 1
 answered on 18 Aug 2014
1 answer
120 views
Hi, the GridViewHeaderRow VerticalContentAlignment and VerticalAlignment properties don't seem to work. 

The VerticalContentAlignment and VerticalAlignment have no affect on the grid and the header text always appears aligned to the bottom.

I'm using your Office Black style as a base style and the xaml below.

Can you help me correct this issue please?


            <Style TargetType="telerik:GridViewHeaderRow">
                <Setter Property="Height" Value="18"/>
                <Setter Property="MinHeight" Value="18"/>
                <Setter Property="MaxHeight" Value="18"/>
                <Setter Property="VerticalContentAlignment" Value="Top"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
                <Setter Property="BorderThickness" Value="0,0,0,0"/>
            </Style>
Vanya Pavlova
Telerik team
 answered on 18 Aug 2014
3 answers
121 views
Is there a way for me to highlight the cell with a background when it's selected?
By default, the row highlight is completely suppressed by setting the background (attached screenshot)

Thanks
Vanya Pavlova
Telerik team
 answered on 18 Aug 2014
3 answers
133 views
Hi!

The new theme "VisualStudio2013" looks nice, but how do I apply it to my application?

Windows8 theme, I just added StyleManager.ApplicationTheme = new Windows8Theme(); before InitializeComponent(); But I cant find this for VisualStudio2013 Theme.

I get the color settings like: VisualStudio2013Palette.LoadPreset(VisualStudio2013Palette.ColorVariation.Dark);

Is there any simple WPF C# example I look at?

Thanks!
Yana
Telerik team
 answered on 18 Aug 2014
4 answers
158 views
Hi,

I am overriding the Addlink method of my custom graphsource object that is derived the ObservableGraphSourceBase<NodeViewModelBase, MyLink>. I want to control the creation of the link  on certain conditions. If the conditions are met, I call the base.AddLink() method, otherwise I want to prevent the creation of link. How can I do this?

I tried not calling base.AddLink() but the link still appears on the diagram while it is not contained in the graphsource. How can I prevent or delete this link to be shown on the diagram?

Thanks,

Semih
Martin Ivanov
Telerik team
 answered on 15 Aug 2014
20 answers
939 views
Hi,
I am using Telerik WPF control rad calendar.
I want to highlight some dated in that and  want to disable some dates in runtime. Is it possible?

--Thanks
Shraddha
Lerner
Top achievements
Rank 1
 answered on 15 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?