Telerik Forums
UI for WPF Forum
3 answers
51 views
Hi!

We have been using Telerik controls for the past 3 years and have built extensive WPF Controls with RadGrids for our customers to view their data. More and more we are getting asked for the ability to have the reports automatically created and emailed in a PDF format every night to them. We built our own service to do this that exports the Grid to a .XPS file to get the identical look and feel of the screen then use a .XPS to PDF converter to do the final conversion so that we didn't have to recreate all of the controls in another format. The challenge is the service is proving unreliable due to having may different dependencies.

My question is:
Does Telerik have something in their suite of controls and libs that would facilitate the scheduling and emailing of reports in a more "Industry standard" fashion that wold move the report creation closer to the data? How to other people accomplish this task, as I know it is nothing new.

Thanks,
Ryan
Dimitrina
Telerik team
 answered on 06 May 2013
2 answers
331 views
After the 'x' button on a floating RadPane is clicked, the ToolWindow is gone, but the pane can still be found in Docking.Panes .
Try to use pane.MakeFloatingDockable() but failed, the pane won't show.
Is there any way to restore the closed floating RadPane or even the ToolWindow?
Chang
Top achievements
Rank 1
 answered on 06 May 2013
0 answers
84 views
I have an hierarchy gridview with 2 levels.  We use MVVM with data annotation for validation.  The parent item have a data annotation on the child collection to validate that we have at least one child item.  The validation error shows on the parent row but when I add the item to the child collection the parent row remains marked with an error.  Any idea?
Alex Martin
Top achievements
Rank 1
 asked on 06 May 2013
10 answers
291 views
Hi

Is it possible to add a gradient (shown in attachment) at the top and bottom of the gridviewVirtualizingPanel (or ColumnCollection)?
Currently I do this by setting a LinearGradientBrush on my Radgridview.background and set the rowbackground transparent. But when I resize my window, the gradient disappears. 

<t:RadGridView.Background>
    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="White" Offset="0" />
        <GradientStop Color="Gray" Offset="0.07" />
        <GradientStop Color="White" Offset="0.1" />
        <GradientStop Color="White" Offset="0.97" />
        <GradientStop Color="Gray" Offset="1" />
    </LinearGradientBrush>
</t:RadGridView.Background>


Thanks in advance
Lowie
Lowie
Top achievements
Rank 1
 answered on 06 May 2013
3 answers
258 views
I'm using the RadTreeListView v4.0.30319 to display my hierarchical data set. I know this is an older version but breaking changes in the newer version of the GridView (the ones that cause data duplication on refreshing) mean I can't upgrade.

My problem is this.

My TreeListView has a two-way binding on the SelectedItem property. If I add a new item to the underlying hierarchical data, it appears in the grid and is selected how I would expect, but only if the branch of the tree I am adding to is expanded. If I add a new item to a currently collapsed group, the proeprty I am binding to (SelectedLocation in my case) updates as expected but the parent branch remains collapsed and the tree's rendering does not change. This makes it look like the previously selected item is still selected.
Is there a solution to this that is pure MVVM (ie. no code behind the window)?

I have tried setting the AutoExpandGroups to true to see if this helped. However, there appears to be a bug in this. In my data I have two root objects, each with several children, grandchildren, etc. When I have AutoExpandGroups set to true, only the first root and the first child are displayed. Everything else only appears if you collapse and re-expand nodes. I'm assuming I'm stuck with this because of not being able to upgrade to the later version of the controls due to the breaking change in the GridView.

My current TreeListView's XAML is:

    <Grid Visibility="{Binding .,Converter={StaticResource PermissionCodeConverter},ConverterParameter='SHOW LOCATIONS'}">
        <telerik:RadTreeListView Name="LocationTree"
                                 ItemsSource="{Binding Locations}"
                                 SelectedItem="{Binding SelectedLocation,Mode=TwoWay}"
                                 IsReadOnly="True"
                                 AutoGenerateColumns="False"
                                 CanUserFreezeColumns="False"
                                 CanUserReorderColumns="False"
                                 RowIndicatorVisibility="Collapsed"
            <telerik:RadTreeListView.SortDescriptors>
                <telerik:SortDescriptor Member="Name" SortDirection="Ascending"/>
            </telerik:RadTreeListView.SortDescriptors>
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding ChildLocations}" />
            </telerik:RadTreeListView.ChildTableDefinitions>
            <telerik:RadTreeListView.Columns>
                <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" Width="200">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <Image Source="{Binding IconResourcePath}" Width="16" Height="16" HorizontalAlignment="Left" Margin="0 0 8 0"/>
                                <TextBlock Text="{Binding Name}"/>
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding LocationType.Description}" Header="Type" Width="175" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding CheckDigits}" Header="Check Digits" Width="115" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding DisplayablePalletLimit}" Header="Maximum Pallets" Width="125" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Status}" Header="Status" Width="100" />
            </telerik:RadTreeListView.Columns>

            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu x:Name="GridContextMenu">
                    <telerik:RadContextMenu.Items>
                        <telerik:RadMenuItem Header="Create Child" Command="{Binding CreateChildLocationCommand}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Create.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Header="Edit" Command="{Binding EditLocationCommand}" Style="{StaticResource DefaultContextMenuItem}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Edit.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Header="Delete" Command="{Binding DeleteLocationCommand}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Delete.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Header="Enable" Command="{Binding EnableLocationCommand}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Enable.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Header="Disable" Command="{Binding DisableLocationCommand}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Disable.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Header="Refresh" Command="{Binding RefreshCommand}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Refresh.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                    </telerik:RadContextMenu.Items>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>

        </telerik:RadTreeListView>

Nick
Telerik team
 answered on 06 May 2013
12 answers
341 views
I have a GridView in its own window which opens from a menu click. It's bound to a table in an SQLite database using an ObjectQuery on an Entity Data Model. The table has 150,000 rows and 50 columns. It takes 15 seconds from the window opening before the first page of data is displayed, with a blank window displayed. I then set the DataLoadMode to Asynchronous, and now when the window opens, I get the column headers displayed, and the 'busy' indicator, which is an improvement, but it still takes 15 seconds to show the first page of data.

If your demo is loading a million rows in 2 seconds, what am I doing wrong?

One problem with setting the DataLoadMode to Asyncronous is that when I edit a cell, the 'busy' indicator comes back on, and the first page of the data is displayed again. My CellEditEnded handler just calls the SaveChanges() method of my Entities object. Should I be doing it a different way to avoid being taken back to the start of the data?

Steve
Rossen Hristov
Telerik team
 answered on 06 May 2013
7 answers
64 views
I'm binding a RadGridView to a collection of objects that implement INotifyPropertyChanged. Sometimes the properties on those objects are changed by a thread that isn't the gui thread. This causes a "calling thread cannot access this object" error.

I understand that normally non gui threads can't access gui objects, but in this case it should work, in every other WPF control I use it works fine, presumably because behind the scenes they use Dispatcher.Invoke(...) on all propertychanged notifications.

thanks
Rossen Hristov
Telerik team
 answered on 06 May 2013
7 answers
563 views
Hello,

I am using this control and am having negative feedback because users cannot type in .6 for example and get the control to display 0.6.
Instead if you type .6 the control actually displays 6.0. Is there anything that can be done about this??

Thanks.


<RadMaskedNumericInput Value="{ Binding BgsPremiumRate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}"  FormatString="n2" InputBehavior="Replace" Mask="" SelectionOnFocus="SelectAll"  TextMode"PlainText" />
Petar Mladenov
Telerik team
 answered on 06 May 2013
0 answers
219 views

Dear All,

I am create a Point Of Sales System in WPF. I want to print invoice while completion of Order. Data Will be provided from TextBox for Invoice,

(txtinvoices, txtQty, txtTotalPrice, txtAmountPaid and txtDate) are some textbox i want to print on Invoices. There is one barcode Image as well for each order that is needed to print on Invoice.

Anyone can help me in printing in WPF ???

Thanks in Advance

Jazaib Hussain
Jazaib
Top achievements
Rank 1
 asked on 05 May 2013
11 answers
280 views
Hello
I am trying to save the RadPivotGrid after user has defined the pivot through the RadPivotFieldList, so when i will load it 
it will load with all of the definition. I understand that most of it is stored in the LocalDataSourceProvider.
is there way to save and restore the LocalDataSourceProvider to a file?

Regards,

Amir

 . 

										
Rosen Vladimirov
Telerik team
 answered on 04 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?