Telerik Forums
UI for WPF Forum
1 answer
239 views
Hi,

I am printing GridView's and TreeListViews using the PrintAndExportWithRadDocumentModel.cs code, which I found on the forum somewhere.


public void Print(object parameter)
     {
         GridViewDataControl grid = (GridViewDataControl)parameter;
         RadRichTextBox rtb = new RadRichTextBox() { Height = 0 };
 
         rtb.Name = "RadRichTextBox1";
 
         Grid parent = grid.ParentOfType<Grid>();
         if (parent != null && parent.FindName(rtb.Name) == null)
         {
             parent.Children.Add(rtb);
             rtb.ApplyTemplate();
         }
 
         rtb.Dispatcher.BeginInvoke((Action)(() =>
         {
             rtb.Document = CreateDocument(grid);
         }));
          
         rtb.Print("MyDocument", Telerik.Windows.Documents.UI.PrintMode.Native);
     }

I need to be able to hide the PrintDialog if required, how do I achieve this using the printing functionality of the RichTextBox. Previously I was using another class  PrintExtensions.cs, but this was not able to print the TreeListView's which I need.

Thanks,

Adam


Vlad
Telerik team
 answered on 05 Mar 2012
1 answer
88 views
The code samples provide a mechanism for saving the file and then subsequently open Excel with the saved file. 

We would like to follow a more standard paradigm with regards to exporting to Excel.  We would like to stream the contents of the grid directly to Excel - similar to some other well know applications (e.g. SSRS).  The saving of the file would then becomes the prerogative of the end-user.

Is there a way to do so?
Vlad
Telerik team
 answered on 05 Mar 2012
8 answers
256 views
I read several posts that stated that you were going to have the PDFViewer for WPF in Q3 SP 1. I just downloaded it and installed it and it is not there. What is the time frame on this?
Vlad
Telerik team
 answered on 05 Mar 2012
7 answers
937 views
Hello Telerik Team,

I want to expand / collapse all hierarchy levels of a RadTreeListView in C# code. 
I have multi level hierarchy items (generally 3-4 levels deep)

When I use
 
radTreeListView.ExpandAllHierarchyItems();
 
radTreeListView.CollapseAllHierarchyItems();

This only expands or collapses the first level hierarchy, the inner levels are left unchanged.

Any ideas on how to expand or collapse recursively all the way to the last level?

Thanks in Advance.
- Kumar
Vlad
Telerik team
 answered on 05 Mar 2012
4 answers
318 views
Hi,

I use the TileView to display content that can change dynamically. I would like the tiles to adjust to their new content whenever that happens.

Is this possible?

Regards,

Alex

Edit: I realized that the RowHeight property accepted the Auto value. Although my tiles now adjust their height to their content, for some reason a large blank space appears between my tiles (my column count is 1, thus I have 1 tile per row).
Alex
Top achievements
Rank 2
 answered on 05 Mar 2012
3 answers
304 views
Hi,

With the RadGridView, is it possible to move the positon of the "Click here to add new item" button, to the bottom? (the button that appears when you set

ShowInsertRow

 

 

="True"

Thanks

Chris

 

Calvin
Top achievements
Rank 2
 answered on 03 Mar 2012
2 answers
227 views
hi,
I have a question here. Bascially I have a tree list view, they reside in the same grid. This tree list view has three columns.
In my current code, I set each of them fixed width.
Now I want the first column occupies the largest width of the grid, and the other two have fixed size.

So I tried to set the first column size as "Auto", it's not working.
Then I tried to set the first colmn size as "3*", the other two are "*". Still not working.

Anyone knows the answer? Really appreciate it.

                    <Grid Grid.Row="1">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <!-- Telerik List -->
                        <telerik:RadTreeListView Grid.Column="0">
                            <telerik:RadTreeListView.ChildTableDefinitions>
                                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
                            </telerik:RadTreeListView.ChildTableDefinitions>
                            <telerik:RadTreeListView.Columns>
                                <telerik:GridViewDataColumn     Width="350">
                                    <telerik:GridViewDataColumn.CellTemplate>
                                        <DataTemplate>
            ...
                                        </DataTemplate>
                                    </telerik:GridViewDataColumn.CellTemplate>
                                </telerik:GridViewDataColumn>

                                <telerik:GridViewDataColumn      Width="160">
                                    <telerik:GridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                  ...
                                        </DataTemplate>
                                    </telerik:GridViewDataColumn.CellTemplate>
                                </telerik:GridViewDataColumn>

                                <telerik:GridViewDataColumn      Width="160">
                                    <telerik:GridViewDataColumn.CellTemplate>
                                        <DataTemplate>
             ...
                                        </DataTemplate>
                                    </telerik:GridViewDataColumn.CellTemplate>
                                </telerik:GridViewDataColumn>
                            </telerik:RadTreeListView.Columns>
                        </telerik:RadTreeListView>
                    </Grid>

Thanks
Cynthia

Cynthia
Top achievements
Rank 1
 answered on 02 Mar 2012
20 answers
1.4K+ views
Hi Team,

    1). I want display Radgrid Header Column ToolTip. It is not displaying if  i give the value to ToolTip Property using xaml applications.

    2). I want to change the radgrid datacolumn border ro RedColor in error message( how Infopath forms will display when an error occurs) using xaml applications.

    Please help me.

   Thanks in Advance.

Regards,
Naveen Kumar.
Johnny
Top achievements
Rank 1
 answered on 02 Mar 2012
1 answer
85 views
I need to find a way to make the needle of a radial gauge pass over the numeric indicator, much as the needle of a car passes over the odometer.  Currently the needle is covered by the numeric indicator when it passes.  I am somewhat new to WPF and this may be something that is easy to do but I have not yet found out how to make this happen.  Any help would be greatly appreciated.

Thanks in advance,

James
James
Top achievements
Rank 1
 answered on 02 Mar 2012
1 answer
109 views
Hi

I have a sample solution, in which I've created a clean RadRibbonWindow that has a RadRibbonView, with a single Backstage item and a single RadRibbonTab. I've set the Backstage to be open on start.
When the window is maximised and the Backstage is open, I can not move my window by grabbing the Title bar with the mouse and dragging it around (it automatically maximises on the current screen). This only seems to be an issue in the latest Telerik control set (Version=2012.1.215.40).
If I revert to the previous versions of the Telerik dlls, ( Version=2011.3.1220.40) it works fine:

<Reference Include="Telerik.Windows.Controls, Version=2012.1.215.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />
    <Reference Include="Telerik.Windows.Controls.Navigation, Version=2012.1.215.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />
    <Reference Include="Telerik.Windows.Controls.RibbonView, Version=2012.1.215.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />
    <!--<Reference Include="Telerik.Windows.Controls, Version=2011.3.1220.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />
    <Reference Include="Telerik.Windows.Controls.Navigation, Version=2011.3.1220.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />
    <Reference Include="Telerik.Windows.Controls.RibbonView, Version=2011.3.1220.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL" />-->

I have a clean sample solution to illustrate this issue. Please advise as to how I can upload this to an administrator.
Petar Mladenov
Telerik team
 answered on 02 Mar 2012
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?