Telerik Forums
UI for WinForms Forum
2 answers
189 views
Hi,

I would like to programmatically get to some of the hidden properties that I can see in the Element Hierarchy Editor, but don't see an obvious way to do so.

For instance, a RadButton has a root element and then a Fill Primitive, Layout, Focus, Border, etc. Drop down lists have other goodies in there. How does one get there in c#?

Is it something like this, but then casting it to something else? For instance..
(FillPrimitive) btnFoo.RootElement.children[0]

It would be really nice to know how to navigate the tree because there are a lot of properties that we could take advantage of.
Thanks.
Jason



Richard Slade
Top achievements
Rank 2
 answered on 08 Feb 2012
6 answers
178 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
227 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
204 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
273 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
137 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
181 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
119 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
179 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
516 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
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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? 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?