Telerik Forums
UI for WinForms Forum
2 answers
189 views

Using the following code: (Telerik UI for WinForms 2015.2.728)

tvElements.CheckBoxes = true;
tvElements.TriStateMode = true;
RadTreeNode root = tvElements.Nodes.Add("Classes");
foreach (CNFClass cls in CNFConf.Classes) {
  RadTreeNode parent = root.Nodes.Add(cls.UID.ToString(), cls.Code, null);
  parent.ToolTipText = cls.Desc;
  parent.Enabled = cls.Enabled;
}

Checking the root node will check all Enabled and all Disabled children nodes.

Seems like this may be a bug, is there a workaround?

Hristo
Telerik team
 answered on 23 Sep 2015
3 answers
873 views

How to hide scrollable panel's horizontal bar? Can you give me some code example?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Sep 2015
1 answer
295 views

Hello,

 

I'm experiencing some problems with a gridview bound to a bindingsource (using entity framework 5).

The RowsChanging event does not fire on binding operations, neither on the initial binding nor on any subsequent reloading of data. The RowsChanged event does. To my understanding before every RowsChanged event, the RowsChanging event should fire at least once.

 

I tried using the gridview.Rows.CollectionChanging event, but it does not exist - though it should according to the documentation.

 

The event DOES fire if I modify the​ rows at runtime (like removing one row).

 

simplified version of the code (tried variations of binding to the MasterTemplate, with or without BeginEdit etc):

 

Kind regards,

Andreas

 

public RadForm1()
{
    InitializeComponent();
    radGridView1.RowsChanging += RadGridView1OnRowsChanging;          
    bs = new BindingSource {DataSource = context.Sonderthema_Art.ToList()};
    radGridView1.DataSource = bs;
}
 
 
private void RadGridView1OnRowsChanging(object sender, GridViewCollectionChangingEventArgs gridViewCollectionChangingEventArgs)
{
    throw new NotImplementedException();
}

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Sep 2015
2 answers
177 views
Hi, I'm trying to set a different work schedule for each day, eg for Monday 8:00 a.m. to 2:00 pm, Wednesday 10 a.m. to 2:00 pm, check other post and the solution does not satisfy my needs. Any idea about it, Thank you.
Alberto
Top achievements
Rank 1
 answered on 21 Sep 2015
1 answer
137 views

Hi.

 If i want to loop appointments, i do this:

 

       For Each a In uiRadSchedulerMain.Appointments

          Dim test = a.Start

          .....and so on.​

       Next a  

But what if i have 2, or more, resources to a appointment, how to loop these? I only get the first resourceId if eg. there are two or more resources to one appointment.​

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2015
16 answers
469 views
Is it possible to add controls to the group header row?  For instance, if I wanted to group my rows by a certain field, and add a combo box to each group's header row whose value affects all the rows in the group, is that possible?  Thanks!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2015
7 answers
371 views
Regarding dock panel:

Is it possible to toggle between docked and autohide programmatically?  Also how do I change the width and height of a panel that is floating or hiding?

One of the major problem I have with auto hide is I cannot adjust the height when it is hiding.  So when user hover on the docking bar, he can only see a portion of it instead of the whole panel.

Regarding dockpane on a tabbed document:

I checked the "CloseButtonVisible" to false, but that button is still present and nothing to stop the user clicking on it.

Sometimes when the user click or hold on two tabs too quickly, it will swap the tab position instead of focusing on the new tab.  Is there anyway to prevent this to happen?
Stefan
Telerik team
 answered on 21 Sep 2015
1 answer
237 views

Hello

I am using the RichTextEditor control to allow users to create a document (which may include embedded images). The RTF text is then stored in a database, and a Windows Service is supposed to print the document at a later date.The Windows Service does not allow any dialog or form to be shown, so neither a normal print dialog, nor converting to PDF and printing with a PDF Viewer can be used to print.

My current approach has been to convert the RTF to a PDF with RtfFormatProvider and PdfFormatProvider, save it to a file, and print it using the Print verb. However, no matter what options are given to the Print process, it still tries to start the Adobe PDF Viewer to print.

Does Telerik offer a way to print RTF documents without any UI? Or perhaps stock WinForms has a way that I am overlooking. 

I am using version Q3 2014 (2014.3.1104)

Thank you for any assistance.

Stefan
Telerik team
 answered on 21 Sep 2015
3 answers
330 views
Hi, I am trying to apply custom sorting to a grouping column designed programatically that is binding to the grid as string.

The problem is that I cannot get event fired because for example I do not allow user to sort the columns, It is made programatically  and it is fixed by design.

How can I apply a custom sorting method to a grid designed programatically for a grouping column and that it is fixed ??

example:

Column         Column
======         ======
4                    1
2;33               2
1;35               4
11                  5
2                    11
1                    13
13                  1;35
5                    2;33

I have been trying to apply this example but I can not get it works, for example events do not fire.
http://www.telerik.com/help/winforms/gridview-sorting-custom-sorting.html

Any help would be appreciated.

//
// radGrid
//
this.radGrid.MasterTemplate.AllowSearchRow = true;
this.radGrid.MasterTemplate.AutoExpandGroups = true;
this.radGrid.MasterTemplate.EnableFiltering = true;
this.radGrid.MasterTemplate.MultiSelect = true;
this.radGrid.MasterTemplate.ShowFilteringRow = false;
this.radGrid.MasterTemplate.ShowHeaderCellButtons = true;
this.radGrid.MasterTemplate.HorizontalScrollState = Telerik.WinControls.UI.ScrollState.AlwaysShow;
this.radGrid.Name = "radGrid";
this.radGrid.ReadOnly = true;
this.radGrid.ShowHeaderCellButtons = true;
this.radGrid.Size = new System.Drawing.Size(1028, 262);
this.radGrid.TabIndex = 5;
this.radGrid.Text = "Test Results Browser Grid";
this.radGrid.SelectionChanged += new System.EventHandler(this.radGrid_SelectionChanged);
this.radGrid.CellClick += new Telerik.WinControls.UI.GridViewCellEventHandler(this.radGrid_CellClick);
this.radGrid.ContextMenuOpening += new Telerik.WinControls.UI.ContextMenuOpeningEventHandler(this.radGrid_ContextMenuOpening);
this.radGrid.FilterExpressionChanged += new Telerik.WinControls.UI.GridViewFilterExpressionChangedEventHandler(this.radGrid_FilterExpressionChanged);
this.radGrid.FilterChanged += new Telerik.WinControls.UI.GridViewCollectionChangedEventHandler(this.radGrid_FilterChanged);
this.radGrid.Click += new System.EventHandler(this.radGrid_Click);
 
private void ConfigureRadGridGrouping()
{                     
  GroupDescriptor groupByBall = new GroupDescriptor();
  groupByBall.GroupNames.Add("Balls", ListSortDirection.Ascending);
 
  this.radGrid.EnableCustomGrouping = false;
  this.radGrid.GroupDescriptors.BeginUpdate();
  this.radGrid.GroupDescriptors.Add(groupByBall);
  this.radGrid.GroupDescriptors.EndUpdate();
}
 
private void AsignTitlesToRadGridBrowser()
{
   /// Telerik
 
   foreach (var column in this.radGrid.Columns)
   {
    column.HeaderText = string.Empty;
    column.IsVisible = false;
    column.VisibleInColumnChooser = false;
   }
 
   this.radGrid.Columns["Reference"].HeaderText = "Reference";
   this.radGrid.Columns["Reference"].IsVisible = true;
   this.radGrid.Columns["Reference"].VisibleInColumnChooser = true;
   this.radGrid.Columns["Reference"].AllowGroup = true;
 
   this.radGrid.Columns["Title"].HeaderText = "Title";
   this.radGrid.Columns["Title"].IsVisible = true;
   this.radGrid.Columns["Title"].VisibleInColumnChooser = true;
   this.radGrid.Columns["Title"].AllowGroup = true;
    
   this.radGrid.Columns["Balls"].HeaderText = "Balls";
   this.radGrid.Columns["Balls"].IsVisible = true;
   this.radGrid.Columns["Balls"].VisibleInColumnChooser = true;
   this.radGrid.Columns["Balls"].AllowGroup = true;
}  
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2015
5 answers
837 views
Is there any way to add page number and repeat column header on every page when exporting gridview to pdf?
Thanks
Stefan
Telerik team
 answered on 21 Sep 2015
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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?