Telerik Forums
UI for WPF Forum
2 answers
229 views
Hello

I'm showing an icon for every item in my RadGridView. For this, I create a GridViewImageColumn the following way:
GridViewImageColumn imgCol = new GridViewImageColumn(); 
imgCol.ImageStretch = System.Windows.Media.Stretch.None; 
imgCol.ImageWidth = 16; 
imgCol.ImageHeight = 16; 
imgCol.DataMemberBinding = binding; 

The icon is 16x16px and it's set to not stretched - still it's blurry. Now I know that this probably is not a Telerik problem because this also happens in other WPF situations. But I was trying to find something like the "SnapPixelsToDevice" or "RenderOptions.SetBitmapScalingMode" property/method.

Is there any way I can make the images look better? The Telerik-TreeView seems to work perfectly without setting any property and it uses the same images.

Thanks
NoRyb
Top achievements
Rank 1
 answered on 30 Apr 2010
7 answers
179 views
When displaying very long text using RadWindow.Alert(myText), RadWindow displays a window with capped off right part and no Exit Button. One must kill the app to get out.

See screenshot attached.
Konstantina
Telerik team
 answered on 29 Apr 2010
1 answer
112 views
anybody has quick reference code for radopen in c# for silverlight app.

Thanks.

Suresh
Konstantina
Telerik team
 answered on 29 Apr 2010
4 answers
161 views
I have a gridview inside a usercontrol inside a elementhost, i tried to activate tha vertical scrollbar but nothing happens. I setted the property Scrollviewer.verticalscrollbar = visible (i dont remember the exact sentence right now). but doesnt show up.

IM using las version.
dennis
Top achievements
Rank 1
 answered on 29 Apr 2010
1 answer
140 views
Hi,

I was wondering if you have some sample code, that describes creating DataGrid Programmatically (not through XAML) - Multiple columns, and each with their own CellDataTemplate and CellEditTemplate? I searched through Documentation but couldn't find it.

Thanks,
Pavel Pavlov
Telerik team
 answered on 29 Apr 2010
1 answer
113 views

I have two Docked windows on the Left and Right side of my GUI (Similar to Visual Studio: Solution Explorer on the Left, Properties on the Right). I want to do the following

1. If I auto-hide the window on the left, it should auto-hide the window on the Right as well (and vice-versa)
2. If I dock the window on the left, it should dock the window on the right as well (and vice-versa)
3. If the windows are in Auto-Hide mode, and if the user clicks on the auto-hide window on left, the auto-hide window on the right should also expand, and when lost focus. Both should hide at the same time.

Can you tell how can I do this? If possible can you point to some sample code that accomplishes this?

Also is there a event that is fired, when a pane is docked or pinned?

Miroslav Nedyalkov
Telerik team
 answered on 29 Apr 2010
2 answers
57 views
Hi everyone

Quick question:

Is there a way to group the same Member several times? Take a look at the following code:

                         
                        <telerik:GridViewDataColumn Header="Jahr" DataMemberBinding="{Binding datum}" DataFormatString="{}{0:yyyy}" /> 
                        <telerik:GridViewDataColumn Header="Monat" DataMemberBinding="{Binding datum}" DataFormatString="{}{0:MMM}" /> 
                        <telerik:GridViewDataColumn Header="Tag" DataMemberBinding="{Binding datum}" DataFormatString="{}{0:dd}" /> 
 
         

I would like to group by Year (Jahr) and Month (Monat). Because the Member is always "datum" (date), I only can group one at a time.
Is there  a way to achieve this within or outside the RadGridView?


Martin Egger
Top achievements
Rank 2
 answered on 29 Apr 2010
1 answer
120 views
Hi guys,

I think you are missing ThicknessConverter declaration in "Customizing appearance of the radial gauge" help topic.
Like:
<telerik:ThicknessExpressionConverter x:Key="ThicknessConverter" />

Nikolay
Telerik team
 answered on 29 Apr 2010
1 answer
252 views
I am looking at needle customization documentation topic: "Customizing appearance of the radial gauge " and the following template:
<Style x:Key="TriangleNeedleTemplate" TargetType="{x:Type telerik:Needle}"
                <Setter Property="Template"
                    <Setter.Value> 
                        <ControlTemplate TargetType="{x:Type telerik:Needle}"
                            <Grid Width="{TemplateBinding ActualWidth}" Height="{TemplateBinding ActualHeight}"
                                <Grid.ColumnDefinitions> 
                                    <ColumnDefinition Width="{TemplateBinding ActualHeight}"/> 
                                    <ColumnDefinition Width="*" /> 
                                </Grid.ColumnDefinitions> 
 
                                <Grid.RowDefinitions> 
                                    <RowDefinition Height="{TemplateBinding ActualHeight}" /> 
                                </Grid.RowDefinitions> 
                                <Border Background="Red" /> 
                                <Polygon Grid.ColumnSpan="2" Points="0,0 1,0.5 0,1 0,0" Stretch="Fill"  
                                         Fill="White" /> 
                            </Grid> 
                        </ControlTemplate> 
                    </Setter.Value> 
                </Setter> 
            </Style> 

produces templatebinding (attached) picture. Note the red rectangle that should be ActualHeight x ActualHeight big, yet it is much wider (1/2 of the grid).
However, the "should be equivalent" binding
{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight
produces the correct result (see expandedbinding picture).
Correct style:
<Style x:Key="TriangleNeedleTemplate" TargetType="{x:Type telerik:Needle}"
                <Setter Property="Template"
                    <Setter.Value> 
                        <ControlTemplate TargetType="{x:Type telerik:Needle}"
                            <Grid Width="{TemplateBinding ActualWidth}" Height="{TemplateBinding ActualHeight}"
                                <Grid.ColumnDefinitions> 
                                    <ColumnDefinition Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}"/> 
                                    <ColumnDefinition Width="*" /> 
                                </Grid.ColumnDefinitions> 
 
                                <Grid.RowDefinitions> 
                                    <RowDefinition Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}" /> 
                                </Grid.RowDefinitions> 
                                <Border Background="Red" /> 
                                <Polygon Grid.ColumnSpan="2" Points="0,0 1,0.5 0,1 0,0" Stretch="Fill"  
                                         Fill="White" /> 
                            </Grid> 
                        </ControlTemplate> 
                    </Setter.Value> 
                </Setter> 
            </Style> 



Andrey
Telerik team
 answered on 29 Apr 2010
1 answer
84 views
Looks like the editor doesn't recover anymore after the first comment keyword (see attached pic)
Kaloyan
Telerik team
 answered on 29 Apr 2010
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?