Telerik Forums
UI for WPF Forum
4 answers
447 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
291 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
118 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
696 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
259 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
194 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
133 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
8 answers
176 views
Hi,
Is there any way to style a column in the GridView without using Expression Blend? I couldn't find any guidance.

Thanks!

Vanya Pavlova
Telerik team
 answered on 06 Jun 2013
1 answer
200 views
1) I start dragging a connection from a node's connector. ConnectionManipulationStarted is correctly called.
2) I release the mouse outside the diagram window.
3) I then click inside the diagram window. ConnectionManipulationStarted is called again!

Clearly, this is a bug. You should capture the mouse during dragging operations. Not sure how I can work around this issue. As it is now, I end up with an orphaned connection...
Tina Stancheva
Telerik team
 answered on 06 Jun 2013
3 answers
200 views
I need radgridview's cell tool tip to be auto opened when e.IsValid is set to false. Currently it opens when mouse hovers over the corner of the cell.

Any Suggestions.
Vanya Pavlova
Telerik team
 answered on 06 Jun 2013
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?