Telerik Forums
UI for WinForms Forum
3 answers
335 views
Hi,

we are in a process of upgrading telerik dlls periodically.

prevoiusly we are using 2009.3.9.1203 version dlls.
here we are able to add check box in the header of a RadGridView using "CheckBoxHeaderCell" class which is given in the telerik forums.
here we are not creating a checkbox column and adding it to RadGridView instead we are are getting bool values from DB and binding them to RadGridView and we are just adding Checkbox in the Header.

when we upgrade the telerik dlls to 2010.2.10.806 version we are not able to add check box as we did above.

i found some sample code in telerik forums which gives code to add the checkBox column with header.

Is it possible to add check box in the header with out creating the entire check box column
here my check box column is displayed with the DB values and i just want to add check box in the header and handle the event.

if possible please give sample code.


Thank you,
Shashi
Emanuel Varga
Top achievements
Rank 1
 answered on 25 Dec 2010
3 answers
162 views
ok here is what I want to do, and I can't get it to work right.  I have set up a few tabs.  then I want to hide the tabs with

Telerik.WinControls.

 

ElementVisibility.Collapsed;
then I want to show the ribbon tab based on code.  No matter what I try I cann't seem to get it to work.

Thanks for the help

 umm i tried to change the title to Tab but it wont let me :P

 

Peter
Telerik team
 answered on 23 Dec 2010
3 answers
117 views
Hi,

how could I make a grid automatically create a ComboBoxColumn by giving it a BindingList of custom objects? The grid only detects decimal and datetime columns corresponding to object's properties of the same type, but for the remaining properties it creates TextBoxColumns. This is correct because these properties are string but the column's type should be ComboBoxColumn. I'm guessing if there's a way to change the column's type dinamically, but the explicit cast produces an exception.

Greetings,
Giovanni

Richard Slade
Top achievements
Rank 2
 answered on 23 Dec 2010
1 answer
108 views
Hi,
I need to drop a simple plain text from a textbox into a Rad Treeview.
I just read the forum, I'm mixing OLE Drag & Drop and RadTreeView Drag & Drop. The Events seems to be right and they seems to work fine.
But I'm just having a problem with the Visual Indicators of the treeview.

When I drop a regular node inside the treeview, I can see that visual indicators (the target node is highlighted, I can see a line of dots showing the direction above or below the target node, the "forbidden" cursor, etc).
And when I actually try to drop a simple text inside the treeview, I don't see any of those stuff.
I need the same visual behavior when dropping a simple text. I need to see the indicators and I don't know how to activate them.

I will appretiate the help.

Thanks!

Gustavo
Julian Benkov
Telerik team
 answered on 23 Dec 2010
2 answers
184 views
Hi I have setup a raddock and have 7 toolwindows setup in autohide along the top. What I would like to do is be able to click on the tab and have the toolwindow dock into it's dock position, I can do it via a button event with the Dockstate.Docked command but would like to do it on the tab instead. I am using VB.NET Any help would be greatly appreciated thanks.
Brahim
Top achievements
Rank 1
 answered on 23 Dec 2010
11 answers
150 views
1. I just installed Telerik Q3 2009 WinForms (2009.3.9.1103) over Q2 2009 (2009.2.9.729) and it's now requiring you press the Alt Key twice before the RadMenu will activate.

2. I noticed your Q3 2009 Release Notes for RadMenu says "RadMenu can now be highlighted via system keys (alt and F10)".  It was already (in Q2 2009) allowing itself to be "highlighted" via the Alt key for me and I had nothing explicitly implemented (i.e. via any KeyDown Events) to make that happen.  Am I missing something?

Telerik WinForms 2009Q3 (2009.3.9.1103), VB, VS 2005 (v8.0.50727.762 SP.050727-7600), .Net 2.0 (2.0.50727), XP SP3, 3GB, 2.99GHZ, Core2Duo.

Nikolay
Telerik team
 answered on 22 Dec 2010
3 answers
447 views

Hi,

Description:

I'm facing refreshing issue when using rad grid view (below I've attached code snippet you can use to reproduce it).

Generally in the described example I have two collections in parent - child relation binded to grid view and one button that adds new object to child collection.

Problem:

When first node in grid is expanded and have no children and I add a new child, it won't appear in grid view, even that node is marked as expanded (untitled.png). To see it I have to collapse and expand it again (untitled2.png) .

It's very imported for me to make it working correctly.

Code:

001.using System;
002.using System.Collections.Generic;
003.using System.ComponentModel;
004.using System.Data;
005.using System.Drawing;
006.using System.Linq;
007.using System.Text;
008.using System.Windows.Forms;
009.using Telerik.WinControls.UI;
010.  
011.namespace WindowsFormsApplication1
012.{
013.    public partial class Form1 : Form
014.    {
015.  
016.        public class A
017.        {
018.            public int Id
019.            { get; set; }
020.  
021.            public string Name
022.            { get; set; }
023.  
024.            public string Value
025.            { get; set; }
026.        }
027.  
028.        public class B
029.        {
030.            public int ParentId
031.            { get; set; }
032.  
033.            public string Value
034.            { get; set; }
035.        }
036.  
037.  
038.        BindingList<A> parentList;
039.  
040.        BindingList<B> childList;
041.  
042.        GridViewTemplate childTemplate;
043.  
044.        public Form1()
045.        {
046.            InitializeComponent();
047.  
048.            radGridView1.ReadOnly = true;
049.  
050.            parentList = new BindingList<A>(new List<A>(new A[] { 
051.            new A() { Id = 1, Name = "name 1", Value = "value 1" },
052.            new A() { Id = 2, Name = "name 2", Value = "value 2" },
053.            }));
054.  
055.            childList = new BindingList<B>(new List<B>(new B[] {
056.            //new B() { ParentId = 1 , Value = "b value 1"},
057.            //new B() { ParentId = 1 , Value = "b value 2"},
058.            new B() { ParentId = 2 , Value = "b value 3"},
059.            new B() { ParentId = 2 , Value = "b value 4"}
060.            }));
061.  
062.  
063.            childTemplate = AddMonitorPackageItemsTemplate();
064.            CreateRelation(childTemplate);
065.            radGridView1.DataSource = bindingSource1;
066.  
067.            bindingSource1.DataSource = parentList;
068.            bindingSource2.DataSource = childList;
069.  
070.        }
071.  
072.        void CreateRelation(GridViewTemplate childTemplate)
073.        {
074.            GridViewRelation monitoredItemToCSRelation = new GridViewRelation(radGridView1.MasterTemplate);
075.            monitoredItemToCSRelation.ChildTemplate = childTemplate;
076.            monitoredItemToCSRelation.RelationName = "childTemplateRelation";
077.  
078.            monitoredItemToCSRelation.ParentColumnNames.Add("Id");
079.            monitoredItemToCSRelation.ChildColumnNames.Add("ParentId");
080.            radGridView1.Relations.Add(monitoredItemToCSRelation);
081.        }
082.  
083.        GridViewTemplate AddMonitorPackageItemsTemplate()
084.        {
085.            GridViewTemplate monitoredPackageItemTemplate = new GridViewTemplate();
086.            monitoredPackageItemTemplate.DataSource = bindingSource2;
087.            radGridView1.Templates.Add(monitoredPackageItemTemplate);
088.            return monitoredPackageItemTemplate;
089.        }
090.  
091.        private void button1_Click(object sender, EventArgs e)
092.        {
093.            childList.Add(new B() { ParentId = 1, Value = Guid.NewGuid().ToString() });
094.        }
095.  
096.  
097.        /// <summary>
098.        /// Required designer variable.
099.        /// </summary>
100.        private System.ComponentModel.IContainer components = null;
101.  
102.        /// <summary>
103.        /// Clean up any resources being used.
104.        /// </summary>
105.        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
106.        protected override void Dispose(bool disposing)
107.        {
108.            if (disposing && (components != null))
109.            {
110.                components.Dispose();
111.            }
112.            base.Dispose(disposing);
113.        }
114.  
115.        #region Windows Form Designer generated code
116.  
117.        /// <summary>
118.        /// Required method for Designer support - do not modify
119.        /// the contents of this method with the code editor.
120.        /// </summary>
121.        private void InitializeComponent()
122.        {
123.            this.components = new System.ComponentModel.Container();
124.            this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
125.            this.bindingSource2 = new System.Windows.Forms.BindingSource(this.components);
126.            this.radGridView1 = new Telerik.WinControls.UI.RadGridView();
127.            this.button1 = new System.Windows.Forms.Button();
128.            ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
129.            ((System.ComponentModel.ISupportInitialize)(this.bindingSource2)).BeginInit();
130.            ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).BeginInit();
131.            this.radGridView1.SuspendLayout();
132.            this.SuspendLayout();
133.            // 
134.            // radGridView1
135.            // 
136.            this.radGridView1.Controls.Add(this.button1);
137.            this.radGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
138.            this.radGridView1.Location = new System.Drawing.Point(0, 0);
139.            this.radGridView1.Name = "radGridView1";
140.            this.radGridView1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 1);
141.            // 
142.            // 
143.            // 
144.            this.radGridView1.RootElement.Padding = new System.Windows.Forms.Padding(0, 0, 0, 1);
145.            this.radGridView1.Size = new System.Drawing.Size(649, 328);
146.            this.radGridView1.TabIndex = 0;
147.            this.radGridView1.Text = "radGridView1";
148.            // 
149.            // button1
150.            // 
151.            this.button1.Location = new System.Drawing.Point(562, 3);
152.            this.button1.Name = "button1";
153.            this.button1.Size = new System.Drawing.Size(75, 23);
154.            this.button1.TabIndex = 0;
155.            this.button1.Text = "button1";
156.            this.button1.UseVisualStyleBackColor = true;
157.            this.button1.Click += new System.EventHandler(this.button1_Click);
158.            // 
159.            // Form1
160.            // 
161.            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
162.            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
163.            this.ClientSize = new System.Drawing.Size(649, 328);
164.            this.Controls.Add(this.radGridView1);
165.            this.Name = "Form1";
166.            this.Text = "Form1";
167.            ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
168.            ((System.ComponentModel.ISupportInitialize)(this.bindingSource2)).EndInit();
169.            ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).EndInit();
170.            this.radGridView1.ResumeLayout(false);
171.            this.ResumeLayout(false);
172.  
173.        }
174.  
175.        #endregion
176.  
177.        private System.Windows.Forms.BindingSource bindingSource1;
178.        private System.Windows.Forms.BindingSource bindingSource2;
179.        private Telerik.WinControls.UI.RadGridView radGridView1;
180.        private System.Windows.Forms.Button button1;
181.    }
182.}

Regards.

Julian Benkov
Telerik team
 answered on 22 Dec 2010
7 answers
164 views
Hello

We recently upgraded to verson 2010.3.10.1109 and after the upgrade noticed that a GridView that we have with a CheckBoxColumn is always showing the checkbox in the filter row.  I have confirmed that AllowFilter is false for the given column.  Is there a workaround for this issue?

Thanks
Patrick
Software Architect
Rivet Software Inc
Svett
Telerik team
 answered on 22 Dec 2010
1 answer
141 views
Good Day,

I thought I'd just let you know that the in the documentation for the WinForms Q3 2010 SP1 documentation the RadTimePicker Overview and Getting Started is incorrectly shown. On the overview page it shows an image of the Treeview control and on the Getting Started page it shows the Visual Style builder screenshot with a button.

Regards
Stefan
Telerik team
 answered on 22 Dec 2010
2 answers
182 views
Good Day,

I've got this problem where I cannot see the Grip Properties or OverflowButton Properties for the CommandBarStripElement in the VS.NET IDE with the new Telerik Q3 SP1 Control set. I use to be able to set the visibility properties of both the Grip and OverflowButton using the VS.NET propertygrid. I know I can do this from the code-behind please let me know if I'm just losing it.

Please see link to image below.

http://i54.tinypic.com/nytsh1.png
Peter
Telerik team
 answered on 22 Dec 2010
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?