Telerik Forums
UI for WPF Forum
1 answer
48 views
Can someone tell me what this property represents?  I am using this through code but it would be nice to get the control representing this, also.

Can I add an array of values like [1, 15, 45] to represent I want this scheduled on the 1st, 15th and 45th minute of every hour?

A working example would rock my world. 
Thanks,
Joel.
Kalin
Telerik team
 answered on 07 Jun 2013
5 answers
273 views
I have a RadGridView containing 20+ columns, a couple of which are bound to Enum properties.  Both row and column virtualization is turned on.  When I scroll horizontally to bring the enum columns into view, I often get binding errors on the enum columns such as:

System.Windows.Data Error: 6 : 'StringFormat' converter failed to convert value 'Cleared' (type 'BookingStatus'); fallback value will be used, if available. BindingExpression:Path=Value; DataItem='GridViewCell' (Name=''); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String') FormatException:'System.FormatException: Format String can be only "G", "g", "X", "x", "F", "f", "D" or "d".
   at System.Enum.ToString(String format)
   at System.Enum.ToString(String format, IFormatProvider provider)
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at System.Windows.Data.BindingExpression.ConvertHelper(IValueConverter converter, Object value, Type targetType, Object parameter, CultureInfo culture)'

My cell template for the Enum columns is very simple, with no explicit StringFormat:

<DataTemplate x:Key="Cell.Enum" DataType="telerik:GridViewCell">
        <TextBlock Text="{Binding Value, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}}" />
</DataTemplate>

The values for the columns actually do end up displaying correctly, with the enum values such as 'Cleared' all ok.  

I suspect something is wrong with the virtualization - perhaps a column for another type is being reused for my Enum column as I scroll across, and that column's template is being applied to my enum column before all the column's settings are updated to the new column type?

Thanks in advance for your help, this is a fairly big issue for us as it's affecting scroll performance considerably.

I'm using version 2012.3.1017.40.
Rossen Hristov
Telerik team
 answered on 07 Jun 2013
1 answer
156 views
I am new to Silverlight. I have a xaml which contains a picker button. On click, its calls a 'Show' function. The Showfunction is handled in the xaml.cs file. IThe showfunction displays a RadContextMenu. A listbox is added to the RadContextMenu. The RadContextMenu/Listbox does not contain a vertical scrollbar. How do I add a scrollbar? And what do I add it to, Listbox or RadContextMenu? 


Rosen Vladimirov
Telerik team
 answered on 07 Jun 2013
4 answers
383 views
We are evaluating your tools to see if they will fit our needs.  One of our requirements is that we need to be able to get an image of each page of a PDF so that we can further process it in our application.  I noticed on another thread that there is a ThumbnailFactory that can be used to create an ImageSource from a RadFixedPage.  I tried to use the PdfDocumentSource like so:
ThumbnailFactory tf = new ThumbnailFactory();
PdfDocumentSource docSource = new PdfDocumentSource(new MemoryStream(myPdfByteArray), FormatProviderSettings.ReadAllAtOnce);
 
foreach (RadFixedPage pdfPage in docSource.Document.Pages)
      {
        ImageSource pageImg = tf.CreateThumbnail(pdfPage, new System.Windows.Size(myWidth, myHeight));
        // Do additional work here
      }

...but docSource.Document is always null.

How can I get an image of each page in the PDF file?

Thanks,
Clayton
Clayton
Top achievements
Rank 1
 answered on 06 Jun 2013
7 answers
210 views
Hi,

is it possible to disable the Add New Item Button in RadDataForm? I just want to load some products to edit them.
But the user is not allowed to add a new item.

thanks
best Regards
rene
Yoan
Telerik team
 answered on 06 Jun 2013
2 answers
63 views
Hello ,
When scheduling appointments, the length defaults to 440min(24hours) in month view definition
How can I change the duration value?
Thanks in advance
hiwa
Hiwa
Top achievements
Rank 2
 answered on 06 Jun 2013
1 answer
645 views
Hi,

I am trying to do a gridview that has only one column that should size to the remaining area of the container it sits in. I set it to '*' but it will not take up the remaining size of the containing grid. The column that needs to size to the rest of the grid is the 'Patient' column. All others colums are required to be a fixed size.

The xaml is as follows:
<UserControl x:Class="HCF.Enterprise.Module1.Views.ServiceDetail"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignWidth="1000" >
    <Grid x:Name="LayoutServiceDetails" Width="Auto" VerticalAlignment="Top">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition x:Name="grdServiceDetailsHeader" Height="15"/>
            <RowDefinition x:Name="grdServiceDetailsLines" Height="*"/>
        </Grid.RowDefinitions>
        <Rectangle Margin="0,0,0,0" Grid.RowSpan="2" Fill="#FFFFFFFF" Stroke="#FFEDF7FA" x:Name="mainBackgroundServiceDetails"/>
        <Rectangle Margin="0,0,0,0" Fill="#FFEDF7FA" Stroke="#FFEDF7FA" x:Name="backgroundServiceDetailsHdr"/>
        <TextBlock Height="Auto" VerticalAlignment="Stretch" Text="Service Details" Margin="5,0,0,1" Foreground="#FFA70639" x:Name="lblServiceDetailsHdr" />
        
        <telerik:RadGridView x:Name="serviceItemGridView" Grid.Row="1" Margin="5,0,5,5"
                             IsFilteringAllowed="False" BorderThickness="0"
                             ShowGroupPanel="False"
                             RowIndicatorVisibility="Collapsed"
                             CanUserResizeColumns="False"
                             CanUserReorderColumns="False"
                             CanUserFreezeColumns="False"
                             FontSize="11" FontFamily="Segoe UI" ColumnWidth="*"
                             VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                             AutoGenerateColumns="False" >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn x:Name="LineNo" Width="26" MaxWidth="26" >
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:CountFunction Caption="Count: " />
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
                <telerik:GridViewSelectColumn x:Name="BulkCheck" HeaderTextAlignment="Center" Header="Bulk" Width="28" MaxWidth="28"/>
                <telerik:GridViewSelectColumn x:Name="RecordOnlyCheck" Width="32" MaxWidth="32" >
                    <telerik:GridViewSelectColumn.Header>
                        <TextBlock Text="Rec Only" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewSelectColumn.Header>
                </telerik:GridViewSelectColumn>
                <telerik:GridViewComboBoxColumn x:Name="Patient" HeaderTextAlignment="Center" Header="Patient" Width="*" MinWidth="266" >
 
                </telerik:GridViewComboBoxColumn>
                <telerik:GridViewDataColumn x:Name="DateOfService" DataFormatString="{}{0:yyyy}" Width="101" MaxWidth="101">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Date of Service" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
                <telerik:GridViewComboBoxColumn x:Name="ServiceType" Width="50" MaxWidth="50" >
                    <telerik:GridViewComboBoxColumn.Header>
                        <TextBlock Text="Service Type" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewComboBoxColumn.Header>
                </telerik:GridViewComboBoxColumn>
                <telerik:GridViewDataColumn x:Name="ProviderNo" Width="75" MaxWidth="75">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Provider No." TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn x:Name="FindProvider" Width="22" MaxWidth="22" >
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn x:Name="ItemNo" Width="55">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Item No." TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn x:Name="FindItem" Width="22" MaxWidth="22" >
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn x:Name="Quantity" Width="38" MaxWidth="38">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Qty" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn x:Name="Charge" Width="60" MaxWidth="60">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Charge" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction Caption="Total Charge: " />
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
                <telerik:GridViewComboBoxColumn x:Name="Paid" Width="45" MaxWidth="45" >
                    <telerik:GridViewComboBoxColumn.Header>
                        <TextBlock Text="Paid" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewComboBoxColumn.Header>
                </telerik:GridViewComboBoxColumn>
                <telerik:GridViewComboBoxColumn x:Name="AdjustmentCode" Width="45" MaxWidth="45" >
                    <telerik:GridViewComboBoxColumn.Header>
                        <TextBlock Text="Adjust Code" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewComboBoxColumn.Header>
                </telerik:GridViewComboBoxColumn>
                <telerik:GridViewDataColumn x:Name="ScheduleFee" Width="60" MaxWidth="60">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Schedule Fee" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn x:Name="TotalBenefit" Width="60" MaxWidth="60">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Total Benefit" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction Caption="Total Benefit: " />
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn x:Name="ExplanationCode" Width="45" MaxWidth="45">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Explain Code" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn x:Name="OriginalItem" Width="55" MaxWidth="55">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Orig Item" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn x:Name="RemoveRow" Width="50" >
                    <telerik:GridViewDataColumn.Header>
                        <StackPanel Orientation="Horizontal">
                            <telerik:RadButton HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="3,3,3,3" Cursor="Hand" x:Name="AddItemService" CornerRadius="10" Height="17" Width="17" FontFamily="Verdana" FontSize="10" FontWeight="Normal" Content="+" IsTabStop="False" BorderBrush="#FF003366" Foreground="White" >
                                <telerik:RadButton.Background>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFBEDEFD" Offset="0"/>
                                        <GradientStop Color="#FF00478B" Offset="0.5"/>
                                        <GradientStop Color="#FF003366" Offset="0.5"/>
                                        <GradientStop Color="#FF2C97FF" Offset="1"/>
                                    </LinearGradientBrush>
                                </telerik:RadButton.Background>
                            </telerik:RadButton>
                            <TextBox Text="4" VerticalAlignment="Center" MaxLength="2" Width="25" />
                        </StackPanel>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</UserControl>

Ivan Ivanov
Telerik team
 answered on 06 Jun 2013
6 answers
193 views

This seems like it would be a common issue but I have not been able to find a reference in either the documentation or forums. I have a class that I want to edit using the RadPropertyGrid and one of the public properties is a string that contains a file path. I want to use the OpenFileDialog (or equivalent) to edit this property. Any help would be appreciated...

Thanks
Dave Goughnour
Ivan Ivanov
Telerik team
 answered on 06 Jun 2013
1 answer
151 views
hi 

I want to change the format of Points which are displayed. I tried a lot of ways but dont know how to solve it.

I am attaching a sample Image with the problem description

We are displaying Points Labels as "123456.0123" but I wants to format it as "123,456" for all the series type.

thanks in advance
Evgenia
Telerik team
 answered on 06 Jun 2013
6 answers
81 views
Hi,

I've done some searches and found conflicting reports of the current status of printing the RadGridView control.  Can someone say where we are today with this important, yet elusive, task?

I need a data grid control that can be printed effectively, including pagination, orientation, paper size etc.  Is Telerik's RadGridView that control?

Thanks.

Aaron
Nick
Telerik team
 answered on 06 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?