Telerik Forums
UI for WinForms Forum
5 answers
439 views
Good Day,

I've got a grid with a whole bunch of columns which I'm exporting to HTML,CSV and Excel with no problems at all, but when I export the grid to PDF my column data overlaps as shown in the below image link.

http://www.mediafire.com/?3crbrazsocq9n5x

Here are the settings below I'm using for my export and I'm using Adobe Reader 9 to view the PDF. I'm using the Telerik WinForms Q3 2010 Control Set - v2010.3.10.1109

Private Sub ExportToPDF(ByVal sFileName As String, ByVal oRadGridView As RadGridView, ByRef bOpenExportFile As Boolean)
        Dim exporter As Export.ExportToPDF = New Export.ExportToPDF(oRadGridView)
        exporter.HiddenColumnOption = Telerik.WinControls.UI.Export.HiddenOption.DoNotExport
        exporter.PdfExportSettings.PageHeight = 210
        exporter.PdfExportSettings.PageWidth = 297
        exporter.Scale = 1
        exporter.FitToPageWidth = True
        exporter.ExportVisualSettings = True
        exporter.RunExport(sFileName)
        bOpenExportFile = AskToOpen(oRadGridView)
    End Sub

Thank You
erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 21 Dec 2010
1 answer
175 views
I have a gridview with a datasource bound to a binding list of custom objects. I have added a checkbox column with the following code:

GridViewCheckBoxColumn checkBoxColumn = new GridViewCheckBoxColumn();
checkBoxColumn.DataType = typeof(int);
checkBoxColumn.UniqueName = "DiscontinuedColumn";
checkBoxColumn.FieldName = "Discontinued";
checkBoxColumn.HeaderText = "Discontinued";
conversionTypesGridView.Columns.Add(checkBoxColumn);

The column shows up in the gridview however there are no checkbox's in the column.
AutoGenerateColumns is false and AutoSizeColumns is set to AutoFill.
I am using version 2009.3.9.1203.

Thanks,
Jack
Telerik team
 answered on 21 Dec 2010
1 answer
144 views
Is there a way for the end-user to turn off/on an autocomplete setting for a radcombbox? The radcombobox had an autocomplete set to Suggest when it renders on the screen.

Thanks
Sunil
Peter
Telerik team
 answered on 21 Dec 2010
36 answers
862 views
We are binding our grids to a BindingList<T> where T is a business object that implements IDataErrorInfo.

How do we "hook up" data validation in the GridView in this case?

When we had it bound to the Microsoft DataGridView we did not have to do anything. The error icons automatically appeared in the cell using the text defined using the IDataErrorInfo properties. But this does not appear to work with the GridView?

I read through what I could find on validation in the documentation and it appeared to require writing code in the Validating events. Is this still required when the binding source uses IDataErrorInfo?

Thanks!
Allen
Top achievements
Rank 1
 answered on 21 Dec 2010
2 answers
587 views
Hi,

Is there a way to set readonly to checkboxes within the treeview?

There is an Enabled property that will give me a similar effect I want however it does also disable the scrollbar access, which the screen view cannot be scroll to up or down.

Can you help? Many thanks in advance.

Dean Marriott
Top achievements
Rank 1
 answered on 21 Dec 2010
5 answers
237 views
Is it possible to group by date similiar to outlook?$0$0$0$0Like:$0$0$0$0$0Today$0$0Yesterday$0$0Sunday$0$0Saturday$0$0...$0$0Last Week$0$0This Month$0$0Last Month$0$0Older$0
Richard Slade
Top achievements
Rank 2
 answered on 20 Dec 2010
1 answer
198 views
I have added a  GridViewMultiComboBoxColumn column from code behind into a gridview.  Everthng works well but the drop down is very narrow and does not display the entire contents in each row.  What is the best way to size this control so that all values are displayed in its entirety.  Some of the things I have tried did not work.

 

cboCategory.FieldName =

"Category"

 

 

 

 

 

 

'cboCategory.HeaderText = "Category"

 

 

 

 

 

cboCategory.DataSource = objDT

cboCategory.ValueMember =

"Category"

 

cboCategory.DisplayMember =

"Category"

 

 

'cboCategory.Width = 0.2 * Me.RadQueuedFiles.Width

 

cboCategory.AutoSizeMode = BestFitColumnMode.DisplayedDataCells

 

'cboCategory.BestFit()

 

Richard Slade
Top achievements
Rank 2
 answered on 20 Dec 2010
3 answers
99 views
Put this in the startup code (After the fill.database:
InitializeTimeZones()
  
  
Here is The VB coding. 
  
  
  Private Sub InitalizeTimeZones()
        ddTimeZones.SortStyle = Telerik.WinControls.Enumerations.SortStyle.Ascending
        ddTimeZones.DataSource = Time.GetSchedulerTimeZones
        ddTimeZones.DisplayMember = "List"
    End Sub
    Private Sub RadButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton1.Click
        RadScheduler1.ActiveView.DefaultTimeZone = DirectCast(ddTimeZones.SelectedValue, SchedulerTimeZone)
    End Sub
    Private Sub RadButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton2.Click
        Dim view As SchedulerDayViewBase = TryCast(RadScheduler1.ActiveView, SchedulerDayViewBase)
        If view IsNot Nothing Then
            view.TimeZones.Add(DirectCast(ddTimeZones.SelectedValue, SchedulerTimeZone))
        End If
    End Sub
Dobry Zranchev
Telerik team
 answered on 20 Dec 2010
3 answers
191 views
I have created an unbound grid as follows

RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("GUID"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("P_ID"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("T_ID"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("Project_Name"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("T Information"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("File_Path"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("File Name"))
            RadQueuedFiles.MasterTemplate.AllowAddNewRow = False
  
  
            RadQueuedFiles.AutoSizeRows = True
            RadQueuedFiles.Columns(0).IsVisible = False
            RadQueuedFiles.Columns(1).IsVisible = False
            RadQueuedFiles.Columns(2).IsVisible = False
            RadQueuedFiles.Columns(3).Width = 0.15 * Me.RadQueuedFiles.Width
  
            RadQueuedFiles.Columns(4).DisableHTMLRendering = False
            RadQueuedFiles.Columns(4).Width = 0.55 * Me.RadQueuedFiles.Width
  
            RadQueuedFiles.Columns(5).IsVisible = False
  
RadQueuedFiles.Columns(6).Width = 0.35 * Me.RadQueuedFiles.Width
RadQueuedFiles.AllowEditRow = False
RadQueuedFiles.AllowAddNewRow = False
  
Dim descriptor As New GroupDescriptor()
descriptor.GroupNames.Add("Project_Name", System.ComponentModel.ListSortDirection.Ascending)
Me.RadQueuedFiles.GroupDescriptors.Add(descriptor)


When I run the program and add rows programatically, it groups by value in GUID column and not the project name... sample add is below

RadQueuedFiles.Rows.Add(Guid.NewGuid, cboProjectName.SelectedValue, RadT.CurrentRow.Cells(0).Value, cboProjectName.Text, strProjectIdentifier, file, file.Split(

"\")(file.Split("\").Count - 1))

What am I missing?

 

Richard Slade
Top achievements
Rank 2
 answered on 20 Dec 2010
4 answers
382 views
I have a WinForms dropdown list in DropDownList Sytle that is bound to a datatable.  I've read several articles in the forums, but found nothing to either let me set the selection to blank after binding, or insert a "Please Select" selection either before or after binding.

I've tried setting the text property and the Null Text property and these don't work either.

Any suggestions?

Julian Benkov
Telerik team
 answered on 20 Dec 2010
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
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?