Telerik Forums
UI for WinForms Forum
1 answer
87 views
The width of a resource does not always match the column(s) underneath it, resulting in the resources shifting to the left in relation to the column(s) below. It appears to be about 1 pixel  difference per resource which becomes more noticeable with multiple resources . I looks like some sort of difference in rounding when calculating available space, because if you gradually resize the form the resources will come close to matching the column(s) before jumping back to the full difference again. This issue can be demonstrated in the Scheduler->Grouping demo if you gradually resize the form, however as there are only 2 resources, the issue is hard to spot, but it is there.
Peter
Telerik team
 answered on 23 Apr 2013
1 answer
97 views
I need to find the absolute screen coordinates of a floating dockwindow from within code running inside a form hosted inside this dockwindow. I have tried different things but all I get back is the screen location of the original form that the rad dock control is hosted.

Any ideas how I can achieve this?

Regards,

George
Paul
Telerik team
 answered on 23 Apr 2013
1 answer
157 views
HI dudy,
I`m programming a project in C# language, How can I change width of item column in PageViewer in backstage mode?
and i dont know how can I move the vertical line near items, or change its property such as size, width, color and elc, I think knowing it will helps me.
Thanks alot
Paul
Telerik team
 answered on 23 Apr 2013
1 answer
100 views
Hey Telerik!

I would like to determine if a newly created text block was from the autocompleteitems list or not.

I noticed that your AutoCompleteItems used a RadListDataItemCollection.  Is it possible to use a collection of objects ?

If not, I will be adding items to the AutoCompleteItems in the form of 

items.Add(New RadListDataItem("Joe Smith", "GUID HERE"))

I was assuming the CreateTextBlock event could be used to determine if there was a GUID value attached or not.  I could use this as a way to determine if the item was from the AutoCompleteItems.  I am not sure how to get the data value for the text block element or hopefully custom class for the newly created block.

Thanks





Stefan
Telerik team
 answered on 23 Apr 2013
3 answers
162 views
Pressing the tab key while the RadRichTextBox has focus, always takes the focus away from the control, even when AcceptsTab is set to true.
Am I missing something? Please help.
Martin Horst
Top achievements
Rank 1
 answered on 23 Apr 2013
2 answers
122 views
Recent  I have been having trouble unseeing themes for rad controls. I have visual studio 2012 ultimate and premium the same thing happens on both.

Ive attached screen shots. the name of the screen shot tells which step it is. e.g picture "1" shows the first thing I did and so on.


Please help and thanks in advance.
Benj
Top achievements
Rank 2
 answered on 23 Apr 2013
2 answers
167 views
I want to show thumbnail images in a ListView in IconView. I got the thumbnail images in a fixed size and I want to show them smaller. I set the image property of the listviewdataitem to the thumbnail and the Itemsize property of the listview to a size smaller than the thumbnails. Now I only see a part of the thumbnail in the listviewdataitems. Can I zoom the images to see the whole image in the listviewdataitem?
Thanks in advance!
Elke
Top achievements
Rank 1
 answered on 21 Apr 2013
3 answers
229 views
Hi, I have a very special requirement to address.

I'm looking to manipulate the RadGridView to some sort of PivotTable, but I need to edit the objects that the grid will be bound to (would be great to run in bound mode), and by edit I mean drag and drop the 'Projects' to different weeks of months (but that's another problem).

My current problem is about altering the UI of the grid, so that it can be more intuitive for the user and also easier to maintain.

Please see the screenshots in attachment to understand my goal.

Thanks,

--
Francois




using System;
using System.Collections.Generic;
using System.Data;
using System.Windows.Forms;
using Telerik.WinControls.UI;
 
namespace WindowsFormsApplication3
{
    public  class Form1 : Form
    {
        private const string WeekDisplayedName = "Week";
 
        private RadGridView Grid { get { return this.radGridView1; } }
 
        private struct ColsGrid
        {
            public const string Level1 = "Level 1 Criteria";
            public const string Level2 = "Level 2 Criteria";
            public const string FakeLevel = "Fake row";
        }
 
        public Form1()
        {
            InitializeComponent();
 
            InitializeGrid();
        }
 
        /// <summary>
        ///
        /// </summary>
        private void InitializeGrid()
        {
            this.Grid.ShowFilteringRow = false;
            this.Grid.ShowGroupPanel = false;
            this.Grid.SelectionMode = GridViewSelectionMode.CellSelect;
            this.Grid.AllowAddNewRow = this.Grid.AllowDeleteRow = false;
 
            // Data
            var table = new DataTable();
 
            table.Columns.Add(ColsGrid.Level1, typeof(string));
            table.Columns.Add(ColsGrid.Level2, typeof(string));
            table.Columns.Add(ColsGrid.FakeLevel, typeof(string));
 
            var lst = new List<Tuple<string, string>>();
 
            lst.Add(new Tuple<string, string>("Level 1-A", "Level 2-A"));
            lst.Add(new Tuple<string, string>("Level 1-A", "Level 2-B"));
            lst.Add(new Tuple<string, string>("Level 1-A", "Level 2-C"));
            lst.Add(new Tuple<string, string>("Level 1-B", "Level 2-A"));
            lst.Add(new Tuple<string, string>("Level 1-B", "Level 2-B"));
            lst.Add(new Tuple<string, string>("Level 1-B", "Level 2-C"));
 
            this.Grid.AutoExpandGroups = true;
            this.Grid.DataSource = table;
 
            //this.Grid.GroupDescriptors.Add(new GroupDescriptor("Project"));
            this.Grid.Columns.Add(new GridViewTextBoxColumn(ColsGrid.Level1));
            this.Grid.Columns.Add(new GridViewTextBoxColumn(ColsGrid.Level2));
            this.Grid.Columns.Add(new GridViewTextBoxColumn(ColsGrid.FakeLevel));
 
            this.Grid.Columns[ColsGrid.Level1].Width = 100;
            this.Grid.Columns[ColsGrid.Level2].Width = 100;
            this.Grid.Columns[ColsGrid.FakeLevel].IsVisible = false;
 
            // Create fake lines for each level1/level2
            int nbLines = 3;
            foreach (var item in lst)
            {
                for (var i = 0; i < nbLines; i++)
                {
                    table.Rows.Add(item.Item1, item.Item2, i);
                }
            }
 
            // Add timeline columns
            string[] months = new string[] { "January", "Febuary", "March", };
 
            for (int i = 0; i < months.Length; i++)
            {
                for (int j = 1; j <= 4; j++)
                {
                    GridViewTextBoxColumn column = new GridViewTextBoxColumn(months[i] + WeekDisplayedName + j);
                    column.HeaderText = WeekDisplayedName + " " + j.ToString();
                    column.Width = 75;
 
                    this.Grid.Columns.Add(column);
                }
            }
 
            // Group the 3 first columns
            var def = new ColumnGroupsViewDefinition();
            var colGroup = new GridViewColumnGroup("Row header group");
            colGroup.ShowHeader = false;
            colGroup.Rows.Add(new GridViewColumnGroupRow());
            colGroup.Rows[0].Columns.Add(this.Grid.Columns[ColsGrid.Level1]);
            colGroup.Rows[0].Columns.Add(this.Grid.Columns[ColsGrid.Level2]);
            colGroup.Rows[0].Columns.Add(this.Grid.Columns[ColsGrid.FakeLevel]);
            def.ColumnGroups.Add(colGroup);
 
            // Create a group for each month, each containing 4 weeks
            for (int i = 0; i < months.Length; i++)
            {
                def.ColumnGroups.Add(new GridViewColumnGroup(months[i]));
                def.ColumnGroups[1 + i].Rows.Add(new GridViewColumnGroupRow());
 
                for (int j = 1; j <= 4; j++)
                {
                    def.ColumnGroups[1 + i].Rows[0].Columns.Add(this.Grid.Columns[months[i] + WeekDisplayedName + j]);
                }
            }
 
            this.Grid.ViewDefinition = def;
 
            // Create fake data
            this.Grid.Rows[0].Cells[months[0] + WeekDisplayedName + "1"].Value = "Project 1";
            this.Grid.Rows[1].Cells[months[0] + WeekDisplayedName + "1"].Value = "Project 2";
            this.Grid.Rows[9].Cells[months[0] + WeekDisplayedName + "3"].Value = "Project 3";
            this.Grid.Rows[4].Cells[months[1] + WeekDisplayedName + "2"].Value = "Project 4";
            this.Grid.Rows[7].Cells[months[1] + WeekDisplayedName + "3"].Value = "Project 5";
        }
 
        #region Designer stuff
        /// <summary>
        /// Variable nécessaire au concepteur.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary>
        /// Nettoyage des ressources utilisées.
        /// </summary>
        /// <param name="disposing">true si les ressources managées doivent être supprimées ; sinon, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region Code généré par le Concepteur Windows Form
 
        /// <summary>
        /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
        /// le contenu de cette méthode avec l'éditeur de code.
        /// </summary>
        private void InitializeComponent()
        {
            this.radGridView1 = new Telerik.WinControls.UI.RadGridView();
            ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).BeginInit();
            this.SuspendLayout();
            //
            // radGridView1
            //
            this.radGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.radGridView1.Location = new System.Drawing.Point(0, 0);
            this.radGridView1.Name = "radGridView1";
            this.radGridView1.Size = new System.Drawing.Size(1137, 629);
            this.radGridView1.TabIndex = 0;
            this.radGridView1.Text = "radGridView1";
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1137, 629);
            this.Controls.Add(this.radGridView1);
            this.Name = "Form1";
            this.Text = "Form1";
            ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).EndInit();
            this.ResumeLayout(false);
 
        }
 
        #endregion
 
        private Telerik.WinControls.UI.RadGridView radGridView1;
        #endregion
    }
}
Peter
Telerik team
 answered on 19 Apr 2013
3 answers
265 views
I'm using the Q1 2013 distribution and I'm having trouble using the pan and zoom functionality. When I zoom in on a radchartview, I can only pan around a small set of values (I'm using a scatterpoint chart). I'm not able to pan the entire chart this way.
I'm trying this with a simple scatterpoint chart created and configured by the Property Builder, with no extra configuration. Is this the expected functionality?
Also, the zooming occurs at a fixed point of the chart, not relative to the mouse. Is it possible to make it work this way (relative to the mouse)? i found this article http://www.telerik.com/community/forums/silverlight/charting-kit/zoom.aspx Is it possible to create a similar project for WinForms?
Ivan Petrov
Telerik team
 answered on 19 Apr 2013
3 answers
85 views
Hi forum,

Is there a tool/object that enables me to decrypt encrypted data from a sql server table and display it on a windows form?
I have an employee table with encrypted information. What i need to do is read the employee table to enable the user to see the employee information. I need to create 2 forms, one for inquiry and the other one for maintenance.
Obviously the maintenace will work the opposite, the user will enter information and i need to update the data using encryption.
I already have a Stored Procedured that does the encrypt/decrypt process.
I am new doing this and would like to use the winforms objects to do this.

Regards,
Manuel Roman
Jack
Telerik team
 answered on 19 Apr 2013
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?