Telerik Forums
UI for WinForms Forum
6 answers
425 views
Hi,

I need to hide the MDIButtons (Minimize, Restore/Maximize, Close buttons) of RadRibbonBar in RadRibbonForm. I tried using this code (radRibbonBar1.RibbonBarElement.MDIbutton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;) but it always shows whenever I resize or maximize the form or show another child form. I attached a screen shot.

Many thanks,

Ian

Edit: I'm using version 2011.1.11.315
Ian
Top achievements
Rank 1
 answered on 08 Feb 2012
2 answers
251 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
212 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
247 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
219 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
302 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
153 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
255 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
145 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
217 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
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?