Telerik Forums
UI for WinForms Forum
6 answers
166 views
Hello..
I want to know how many rows there are in the visible area in gridview..
how can I do that?

this is for controlling load of rows.. to get better performance..
I want to load 30 rows each scrolling..
yair
Top achievements
Rank 1
 answered on 07 Feb 2012
2 answers
214 views
Hello together,

I'm having some difficulties with a RadListView. My RadListView has 3 Columns: 1 for displaying an icon, 1 for a filename and the third for the author.
My problem is, that only the first column is displayed and all the text columns are empty. I don't know why. Perhaps someone of you can help. Here is the code:

ImageList MyImageList = new System.Windows.Forms.ImageList();
       
MyImageList.Images.Add(global::Test_SharePoint_DocumentList.Properties.Resources.icgen);
 
MyImageList.ImageSize = new Size(16, 16);
 
lst_Files.ViewType = Telerik.WinControls.UI.ListViewType.DetailsView;
lst_Files.ShowGridLines = true;
lst_Files.FullRowSelect = true;
lst_Files.Columns.Add("File","File");
lst_Files.Columns.Add("Filename", "Filename");
lst_Files.Columns.Add("Author", "Author");
lst_Files.Columns[0].Width = 30;
lst_Files.SmallImageList = MyImageList;
 
foreach(Microsoft.SharePoint.SPFile file in files)
{
  for (int j = 0; j < MyImageList.Images.Count; j++)
  {
    Telerik.WinControls.UI.ListViewDataItem item2 = new Telerik.WinControls.UI.ListViewDataItem();
    item2.Image = global::Test_SharePoint_DocumentList.Properties.Resources.icgen;
    item2.ImageIndex = j;
    item2.Tag = mysite.Url + "/" + file.Name;
 
    Telerik.WinControls.UI.ListViewDataItem item3 = new Telerik.WinControls.UI.ListViewDataItem();
    item3.Text = file.Name;
    item3.Value = file.Name;
 
    Telerik.WinControls.UI.ListViewDataItem item4 = new Telerik.WinControls.UI.ListViewDataItem();
    item4.Text = file.Author.ToString();
    item4.Value = file.Author.ToString();
 
    Telerik.WinControls.UI.ListViewSubDataItemCollection subcol = new Telerik.WinControls.UI.ListViewSubDataItemCollection(item2);
    subcol.Add(item3);
    subcol.Add(item4);
 
    lst_Files.Items.Add(item2);
  }
  Count++;
}

And that's how it looks like in debug (see attachment):


Boryana
Telerik team
 answered on 07 Feb 2012
2 answers
189 views
Hi,

I have enabled the Excel like filtering, but every time I change the DataSource on the radGridView, the filter for a column is not updated. I have tried to clean the filters using:

MasterTemplate.FilterDescriptors.Clear();

MasterTemplate.FilterExpressions.Clear();



But those collections are empty, since I'm not creating my own filters. Any help will be appreciated.
Thanks
Stefan
Telerik team
 answered on 07 Feb 2012
5 answers
253 views
Hi,
I am trying to group my gridview data by a nested object like this:

DataSource = List<Person>

GroupExpression: Address.Suburb as Sub Group By Sub

This results in the data being correctly sorted but the grid will not display any group headers. Is there a way to do this?

thanks
Stefan
Telerik team
 answered on 07 Feb 2012
1 answer
125 views

 

I can’t find desktop alert control on my tray. Could you  give me name of dll file

 Then i can browse to the tray

Stefan
Telerik team
 answered on 07 Feb 2012
3 answers
168 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
102 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
149 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
500 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
266 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
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?