Telerik Forums
UI for WinForms Forum
2 answers
213 views

In my Winforms app I have a GridView and the option for users to print the data contained in the GridView.

The GridView is dynamic in that the number of columns of data varies by user and their department (some users will see 5 columns of data, some will get 10, some will get 13, etc.).

When printing, due to the unknown number of columns, all the data/columns sometimes will appear efficiently on an 8.5 X 11 sheet of paper in portrait mode and sometimes not.  Sometimes the paper size will have to be changed or the orientation.

However, if the number of columns is large, even if the orientation is changed to landscape and paper size changed to legal, the data won't display well on the printed report.  It'll either condense/truncate each column to fit on a printed page, or some columns just don't get printed at all (i.e. columns 1 thru 7 will display on the printed page, but columns 8 thru 15 are omitted from the printed results.)

When printing the GridView's data, 3 options are available in PrintPreview->Print Settings: FitPageWidth, NoFit and NoFitCentered.  Neither of these options produce a report in which all the data/columns are readable. 

Is there a way to have all columns printed at their actual size, in that if the number of columns is too many to fit on a single sheet of paper, the first "batch" of columns will print on "page 1" and the second batch on page 2?  (Similar to the "No Scaling" print option in Excel.) 

Internally, when printing the GridView's data, the GridView's data is passed to the Associated Object of a RadPrintDocument.  That RadPrintDocument is then passed to the Document property of a RadPrintPreviewDialog.

Thanks much for all advice with this matter.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Jan 2019
4 answers
320 views

Hi Team.

How can I create a custom save button to save the edited Image directly into the sql sever database or use the default save button to save the image directly to the the database.

However, the only option I have right now is to save the image to file and then save image file to the database, which I want to avoid because I will end up having two save buttons.

Thank you.

Dimitar
Telerik team
 answered on 08 Jan 2019
3 answers
233 views

Hi.

There is any way to mimic RadGridView.BestFitColumns(BestFitColumnMode.AllCells)?

RadVirtualGrid.BestFitColumns() ignores cells that are not displayed or visible.

Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Jan 2019
3 answers
289 views
Hi;

I've created and saved a theme package.  I load up the theme package at program start up. But, when I apply the theme to a button programmatically ussing myradbutton.themename = "mythemename", it doesn't take.  I tried setting an application wide theme first then overriding the button and I tried overriding the button then setting the application wide theme but neither works.  What am I missing?

Thanks very much.

-eLindy
Hristo
Telerik team
 answered on 08 Jan 2019
1 answer
124 views

How to I can fill the GridView Hierarchical with the same DataSource ? 

I did a query to list some fields and I grouped in a Linq and attributtes to a BindingSource to show in the main GridView and it worked, but I need fill the GridView Hierarchical with the same query, but without grouping, then I created a new BindingSource and attributes a Linq to he without grouping but not works.

 

 

 

Hristo
Telerik team
 answered on 08 Jan 2019
1 answer
233 views

Hello, we are currently working with the Gridview control, having the datasource set to a datatable. Now we are trying to archieve a behavior where the row 'Total' is being excluded from the sorting in order to keep the row as last row at all time. 

How can we achieve this behavior?

 

Thanks in advance

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jan 2019
0 answers
55 views

Hello everyone,

     I choose the text in the radtextboxcontrol in the interface, click the right button to appear the copy, paste, cut function. I want to make it copy, paste, cut and

display as text of different countries, how to solve it? As shown in Figure 1.

 

 
 

As shown in Figure 1

hong
Top achievements
Rank 1
 asked on 07 Jan 2019
3 answers
239 views

Hi, I can not make busy indicators work.

I call the radVirtualGrid1.MasterViewInfo.IsWaiting = true before (and false after) i load a huge amount of data and write on the virtual grid with the CellValueNeeded event but i can't see the busy indicator bar.

Same thing when I call radVirtualGrid1.MasterViewInfo.StartRowWaiting(indexRow) inside the RowExpanding event and radVirtualGrid1.MasterViewInfo.StopRowWaiting(indexRow) inside the RowExpanded event.

The indicator doesn't work..

I partially resolved with the call to Application.DoEvents() immediately after the above methods. I can see the bar but they aren't animated!

Thanks in advance

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jan 2019
0 answers
44 views

hi

is it possible set different shape for each legend?

in fact each series have different shape for points,i want the shape of legend is same 

asghar
Top achievements
Rank 1
 asked on 07 Jan 2019
16 answers
397 views
Unable to get the data format and alignment mentioned in Grid, while exporting to pdf. Please find the attached pdf and grid image. I am adding the columns  to grid from code behind by this way,

GridViewDataColumn[] grdColumn = new GridViewDataColumn[ds.Tables[0].Columns.Count];
foreach (DataColumn dColumn in ds.Tables[0].Columns)
{
    GridViewTextBoxColumn grdCol = new GridViewTextBoxColumn();
        grdCol.FieldName = dColumn.Caption;
        grdCol.HeaderText = dColumn.Caption;
        string DisplayFormat = SchB.Get_DisplayFormat(ReportID, dColumn.Caption);
        string TempDF = string.Empty;
                                        

        if (string.Compare(Convert.ToString("" + dColumn.DataType), "System.String", true) == 0)
        {
            grdCol.TextAlignment = ContentAlignment.MiddleLeft;
        grdCol.FormatString = "{0:0}";
        }
        else if (string.Compare(Convert.ToString("" + dColumn.DataType), "System.Decimal", true) == 0)
        {
            grdCol.TextAlignment = ContentAlignment.MiddleRight;
        }
    else if (string.Compare(Convert.ToString("" + dColumn.DataType), "System.DateTime", true) == 0)
        {
            grdCol.TextAlignment = ContentAlignment.MiddleRight;
            grdCol.FormatString = "{0:dd/MM/yyyy}";
        }
        else
        {
            grdCol.TextAlignment = ContentAlignment.MiddleCenter;
        }
                                        
        grdColumn[tempCount++] = grdCol;
}
gridUserReport.Columns.AddRange(grdColumn);

Regards,
Sakthivel
Jaco Van Zyl
Top achievements
Rank 1
 answered on 06 Jan 2019
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?