Telerik Forums
UI for WinForms Forum
3 answers
174 views

Hi,

I have a problem with the last release of WinForms.

The line :

Dim csvexporter As ExportToCSV = New ExportToCSV(Me.RadGridView1)

display an error ExportToCSV is  not defined.

My code came from your help so I don't understand.

 

Imports System.IO
Imports System.Data.OleDb
Imports Telerik.WinControls.UI.Localization
Imports System.Runtime.InteropServices
Imports Telerik.WinControls.UI
Imports Telerik.WinControls
Imports Telerik.WinControls.Data
Imports Telerik.WinControls.UI.Export
Imports System.Net.NetworkInformation
 
 
 
 
  Private Sub RadButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton2.Click
        Dim csvexporter As ExportToCSV = New ExportToCSV(Me.RadGridView1)
        SaveFileDialog1.RestoreDirectory = True
 
        If SaveFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
            csvExporter.RunExport(SaveFileDialog1.FileName)
        End If
 
    End Sub

 

 

 

Can you help me please ?
Thanks

Anthony

 

 

 

Richard Slade
Top achievements
Rank 2
 answered on 06 Feb 2012
1 answer
108 views
I'm connecting to a access database to get the top ten artists played on the jukebox.
Everything works fine, the only problem is the way the chart displays the artist names in the X-axis.
Everything is cluttered. I want the labels to auto wrap but there must be more space so everything will fit in nicely.
Peshito
Telerik team
 answered on 06 Feb 2012
1 answer
156 views
Hi! Im using VB.Net 2010 and Telerik Q1.2011. I facing some issue on grid View.
My gridview im using datasource to bind to the GridView and using ViewDefination to view.
My GridView had Filtering which is on for all the column. The problem is like below:

1. I using code(BeginEdit) to enable edit mode on Row (0). Cell(0)
2. I didn't type anything mean the value is still the original value.
3. I direct click on the Filtering of the Column (0). mean it was focus on the Column (0) Filter.
4. I didn't type anything... i just click back to row(0).

Error Appear....
5- index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

I hope to get the reply with solution soon...
Thank you!

Regards
Johnny
Jack
Telerik team
 answered on 06 Feb 2012
2 answers
504 views
I have a RadDropDownList that I have successfully bound to a List object by setting the DisplayMember and ValueMember of the RadDropDownList to the properties of my data list object, and by setting the DataSource of the RadDropDown to the list.
The above takes care of populating the choices in RadDropDown.

I want to know if its possible to also bind the SelectedValue to another property in my data class. And if changes in this Data property would reflect back in the SelectedValue of the RadDropDown with the implementation of the INotifyPropertyChanged event for the Data property.
Peter
Telerik team
 answered on 06 Feb 2012
5 answers
277 views
Hello

I have a image then text displayed as the selected item of a drop down list. As of now, the image is too close to the left edge of the drop down. I would like to control the distance from the left of all items in my drop down including text and images. How can I accomplish this?

I am using Q2 Build Winform.
Thank You
Stefan
Telerik team
 answered on 06 Feb 2012
5 answers
333 views
Currently I am trying to bind data to a richtextbox and I am not getting any data populating.
I am currently using this to bind the data.
radRichTextBox1.DataBindings.Add("Text",ds,"Table.ColumnName",false,DataSourceUpdateMode.OnPropertyChanged);

I have verified I am only pulling one record..
I have done this with TextBoxes with no issue.
I have the feeling "Text" should be something else but I am unsure what.
Any help would be appreciated.
Julian Benkov
Telerik team
 answered on 06 Feb 2012
3 answers
308 views
I have a radgrid with a combobox column that I need to allow the user to type in, and if the item they enter is not in the list, allow them to add it to the underlying datasource via another form.

I would like to know which event to handle on the radgrid or combocolumn that will allow me to do this.

It is super easy to do using, name kept secret, control suite, via a method called ItemInList. Alas, I cannot find a similar solution in the Telerik suite. Please tell me that I am just overlooking it.


Thanks in advance.
Ivan Petrov
Telerik team
 answered on 06 Feb 2012
2 answers
201 views
I have tried you Radrichtextbox with the hyperlink, however, the behaviour of the control is not as expected for the following reasons:

1- The HyperlinkNavigationMode is set to click - however one still has to CtrlClick

2- In Private Sub RadRichtextbox_Hyperlinkclicked -- e.handled is set to true - however an external browser is still opened.  I just want to show the URL in a messagebox.

My project details:
Form with one radbutton control and one radrichtextbox control

My code:

Imports Telerik.WinControls.RichTextBox.FileFormats.Html
Imports Telerik.WinControls.RichTextBox.Model


Public Class Form1

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Me.RadRichTextBox1.HyperlinkNavigationMode = Telerik.WinControls.RichTextBox.HyperlinkNavigationMode.Click
Me.RadRichTextBox1.IsReadOnly = True
End Sub


Private Sub RadButton1_Click(sender As System.Object, e As System.EventArgs) Handles RadButton1.Click
Dim provider As New HtmlFormatProvider
Dim text_for_radrichtextbox As String = ""

Me.RadRichTextBox1.Document = New RadDocument
text_for_radrichtextbox = "<p>1. This is the text for the rad richtextbox <a href=" & Chr(34) & "http://www.telerik.com" & Chr(34) & ">Link text to Telerik</a>.</p>"
Me.RadRichTextBox1.Document = provider.Import(text_for_radrichtextbox
End Sub


Private Sub RadRichTextBox1_HyperlinkClicked(sender As Object, e As Telerik.WinControls.RichTextBox.Model.HyperlinkClickedEventArgs) Handles RadRichTextBox1.HyperlinkClicked
e.Handled = True 'to stop the external browser from opening
MessageBox.Show(e.URL) 'to show the URL
End Sub

End Class

Amin
Top achievements
Rank 1
 answered on 04 Feb 2012
7 answers
621 views
How do I change the visible time for Tooltips in RadViewGrid?

I'm using the _ToolTipTextNeeded event to set the text but the tip only remains visible for about 5 seconds.

I saw reference to a RadToolTipManager in the KnowledgeBase, but that control does not appear in the Rad controls listed in my VB .NET Visual Studio.


Finn

Svett
Telerik team
 answered on 03 Feb 2012
19 answers
544 views
Is there an easy way to allow sorting on group aggregates?

In my application it would make sense if the user could dynamically group and then sort the grid to show the biggest group (the one that contains the most records) first.

Regards
Erwin
Jack
Telerik team
 answered on 03 Feb 2012
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)
Chart (obsolete as of Q1 2013)
Form
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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? 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?