Telerik Forums
UI for WPF Forum
9 answers
416 views
Hi,

I use VS2008 and Telerik V2012.2.912.35 and in our project we have a resource file that contain specific style for our controls and I would like to use Telerik resource keys in our style (for Telerik theming purpose) but I don't know how, here is my style and the Telerik keys I want to use:

    <Style x:Key="RadExpander" TargetType="{x:Type telerik:RadExpander}">       
        <Setter Property="Background" Value="{StaticResource Item_AlternateBackground}" />
        <Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Margin" Value="5" />
        <Setter Property="Padding" Value="3" />
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect />
            </Setter.Value>
        </Setter>
    </Style>

Thank's
Tina Stancheva
Telerik team
 answered on 25 Oct 2012
6 answers
353 views
Hi,
I am using a radgridview , in which i have few gridviewdatacolumn , i am adding a group descriptor for one of the column , and my requirement is, that column should be hidden from radgridview since i have grouped based on that, 
further GridViewColumn.ShowColumnWhenGrouped Property is not available to me as i am using an older version of telerik Dll, is their any other way to solve this problem?

 following is the xaml of code for more clarity, so i want column Element Path to be hidden as it is used in group descriptor -

 <telerik:RadGridView.Columns>
                                                <telerik:GridViewDataColumn  IsReadOnly="True"  IsGroupable="True"  Header="Element Path" DataMemberBinding="{Binding ElementPath}" Focusable="False" Width="Auto" TextAlignment="Left" IsEnabled="False"/>
                                                <telerik:GridViewDataColumn  IsReadOnly="True"  IsGroupable="True"  Header="Category" DataMemberBinding="{Binding CategoryName}" Focusable="False" Width="Auto" TextAlignment="Left" IsEnabled="False" />
                                                <telerik:GridViewDataColumn IsReadOnly="True"  IsGroupable="False"  Header="Name" DataMemberBinding="{Binding Name}" Width="Auto" Focusable="False" TextAlignment="Left" IsEnabled="False" />
                                                <telerik:GridViewDataColumn IsReadOnly="True"  IsGroupable="False"  Header="Description" HeaderTextAlignment="Left" DataMemberBinding="{Binding Description}" Focusable="False" Width="200" TextAlignment="Left" IsEnabled="False" />
                                                <telerik:GridViewDataColumn IsReadOnly="True"  IsGroupable="True"  Header="Type" DataMemberBinding="{Binding CannonicalType}" Focusable="False" TextAlignment="Left" Width="Auto" IsEnabled="False" />
                                                <telerik:GridViewDataColumn  Header="Value"  IsGroupable="False"  Width="180"  DataMemberBinding="{Binding Value,Mode=TwoWay,ValidatesOnExceptions=True}"  CellTemplateSelector="{StaticResource CellTemplate}" CellEditTemplateSelector="{StaticResource EditTemplateSelector}"  SortingState="None" IsSortable="True"  TextAlignment="Left" IsEnabled="True">
                                                    <telerik:GridViewDataColumn.CellStyle>
                                                        <Style  BasedOn="{StaticResource {x:Type tt:GridViewCell}}" TargetType="tt:GridViewCell">
                                                            <Setter Property="FontWeight" Value="Normal" />
                                                            <Style.Triggers>
                                                                <DataTrigger Binding="{Binding Path=IsDefaultValueModified,Mode= TwoWay}" Value="true">
                                                                    <Setter Property="FontWeight" Value="Bold" />
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{Binding Path=ParameterInEditMode, Mode=TwoWay}"  Value="true">
                                                                    <Setter Property="FontStyle" Value="Italic" />
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{Binding IsEnabled}" Value="true">
                                                                    <Setter Property="IsEnabled" Value="true" />
                                                                    <Setter Property="Focusable" Value="true" />
                                                                </DataTrigger>
                                                                <DataTrigger Binding="{Binding IsEnabled}" Value="false">
                                                                    <Setter Property="IsEnabled" Value="false" />
                                                                    <Setter Property="Focusable" Value="false" />
                                                                </DataTrigger>
                                                            </Style.Triggers>
                                                        </Style>
                                                    </telerik:GridViewDataColumn.CellStyle>
 
                                                </telerik:GridViewDataColumn>
                                                <telerik:GridViewDataColumn  IsGroupable="False" IsReadOnly="True" Header="Resolved Value" DataMemberBinding="{Binding ResolvedValue}" TextAlignment="Left" Width="180" IsEnabled="False"/>
 
                                            </telerik:RadGridView.Columns>
                                            <telerik:RadGridView.GroupDescriptors>
                                                <telerik:ColumnGroupDescriptor>
                                                    <telerik:ColumnGroupDescriptor.Column>
                                                        <telerik:GridViewColumn Header="Element Path"  GroupMemberPath="ElementPath" />
                                                    </telerik:ColumnGroupDescriptor.Column>
                                                </telerik:ColumnGroupDescriptor>
                                            </telerik:RadGridView.GroupDescriptors>




Ankush
Top achievements
Rank 1
 answered on 25 Oct 2012
1 answer
180 views
Hi
I facing a problem of cope content Rich Text Box to MS Word. The problem are when i create a multilevel list in rich text box then copy this list and past this list in ms word the last element of the list lose style of the list see the attachment.
please help me any one
Vasil
Telerik team
 answered on 25 Oct 2012
3 answers
217 views
What is the best way to set a minimum width on a slider while having it still function correctly?

I have a timeline that can be zoomed out to a number of years and zoomed into a few minutes.  When zooming in, the slider's width is shrinking down to the point the middle thumb is unusable.

I thought this may be an existing forum discussion,but I was unable to spot it in a search so my apologies if I missed it.
Tsvetie
Telerik team
 answered on 25 Oct 2012
1 answer
158 views
Hi,

is there any Example with datasource binding?
What is possible (xml, sqlite,...)?
Whats the best way?

Thanks
Best Regards
Rene
Rosen Vladimirov
Telerik team
 answered on 25 Oct 2012
5 answers
298 views
Hello,

I am having problems with the grid's built in ScrollViewer when the grid is resized. I am using AutoGenerateColumns to set up the grid from a DataTable. There are enough columns in the table that no matter the size of the window.

When I start the application the horizontal scrollbar in the ScrollViewer is active, but when I maximize the application it goes away, even though there are still too many columns to fix on a screen.

The structure of the view is

<Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <telerik:RadGridView AutoGenerateColumns="True"
                           Other properties to set bindings/>

        <View:SomeView Grid.Row="1"
                           MinHeight="75"
                           Visibility="{Binding ShowThisView, Converter={StaticResource BooleanToVisibilityConverter}}" />

</Grid>

In the other view there is basically a grid and a chart. Selecting an item from the grid selects data for the view and opens it. If I select a row *before* maximizing then the scrollbar updates automatically, if not then it will not.

Also, if I seize the vertical scrollbar and  scroll down part of the way, then the horizontal scrollbar snaps back into place.

Not sure what the problem is, something to do with the resize event, or how the columns are generated.

Thank you,

Eli
Dimitrina
Telerik team
 answered on 25 Oct 2012
2 answers
179 views
Hi,

i use a RadGridView with a "GridViewImageColumn" like this:
<telerik:GridViewImageColumn DataMemberBinding="{Binding Bild}" Width="50" IsEnabled="False" ImageStretch="None" />

But how do i bind an image to this column:
public class Calls
{
public string Name { get; set; }
public string Tele { get; set; }
public string time { get; set; }
public string Datum { get; set; }
public Image bild { get; set; }
}
ObservableCollection<Calls> _CallCollection = new ObservableCollection<Calls>();
_CallCollection.Add(new Calls
{
Name = name_s,
Tele = tele_s,
time = time_s,
Datum = datum_s,
bild = image
});

Name, Tele, time and Datum is ok, but i can't see an image. How do i solve this?

i tried:
var image = new Image();
image.Source = new BitmapImage(new Uri("pack://application:,,/Images/settings.png", UriKind.Absolute));

But this is wrong...

thanks a lot
Rene
ITA
Top achievements
Rank 1
 answered on 25 Oct 2012
1 answer
522 views

Hi,
I am using radGridView with 2 level hierarchy with 
HierarchyChildTemplate. I don't want to show any column headers for the lowest level grid and I set ShowColumnHeaders to False. I  do not want to show that there's an inner grid at the first child level. How can I remove the space around the  radGridView? 

I do not have any margins, padding, border thickness properties. I tried removing the whole HierarchyChildTemplate
but still there is empty space. Can anyone please help where that space is coming. Please refer to attached pictures for clarity. Requirement is that the area marked with green should not appear.
Thanks,
Rosy



Dimitrina
Telerik team
 answered on 25 Oct 2012
1 answer
96 views
On my RichTextBox if you type something in, select the text, and increase the font size the width of the selector is no longer spanning the width of the text.  See attached please.  Works fine with decreasing the font.
Vasil
Telerik team
 answered on 25 Oct 2012
1 answer
119 views
I asked this in the webinar yesterday but I failed to get a good answer on this.

Is it possible to add the themes found in those Sales Dashboard demos as selectable themes? I think
they look far better than the default themes.
Kalin Milanov
Telerik team
 answered on 25 Oct 2012
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?