Telerik Forums
UI for WinForms Forum
0 answers
83 views
Hi ,
     Is possible to check and uncheck the checkbox column is grouped in telerik radgrid by clicking button,
 please give solution for this.
Mohan
Top achievements
Rank 1
 asked on 21 Jan 2013
1 answer
84 views
Hi,
We have a very specific requirement , where the user would like to enter Date in the RadGridView Cell which has editor of type RadDateTime Editor . In this cell the the user will be entering date in format MM/dd/YYYY and while entering the date the user should be allowed to continuously type the date without having to use the arrow keys to navigate between date, month and year. For example if user types a date like "02172013" the RadDateTimeEditor should automalically fill up the month portion (once "02" is typed) and then push the cursor to date portion when user types "17" and then push the cursor to year portion once user starts typing "2013" and finally dispaly the date as "02/17/2013"

1)User has to use the arrow key to move from month section to date then again he need use arrow keys to move from date to year, as expalined above this should not be required.
 
2)When we click on the cell having RadDateTime Editor and tabs out of the cell then the date cell gets populated with current date . Expected behaviour is if user has not entered/selected any date then it should default to blank.

Please let me know if such a thing is possible using RadDateTimeEditor ? or I need to use some other editor ?

We are using the following code :

Private

 

 

Sub RadGridView_EditorRequired(ByVal sender As Object, ByVal e As EditorRequiredEventArgs)

 

 

 

    Dim fieldType As String = RadGridView.CurrentRow.Cells(CELL_FIELD_TYPE).Value.ToString()

 

    e.Editor = GetEditor(fieldType)

 

 

End Sub

 

Private

 

 

Function GetEditor(fieldType As String) As IValueEditor
    

 

    Select

 

 

Case fieldType

 

 

 

        

 

            Case

 

 

Constants.EDITOR_DATE

 

    

 

 

 

                

 

                Dim

 

 

editorDate As RadDateTimeEditor = New RadDateTimeEditor()

 

 

 

                Dim calendar As RadDateTimeEditorElement = DirectCast(editorDate.EditorElement, RadDateTimeEditorElement)

 

                calendar.Format =

 

DateTimePickerFormat.Short

 

                calendar.AllowDrop =

 

True

 

 

 

 

                    ......
                    ..........
            

 

            End

 

 

Select

 

 

 

 

 

 

 

 

 

End

 

 

Function



Thank you,
Ashwin

 

Peter
Telerik team
 answered on 21 Jan 2013
3 answers
476 views
I have a problem when dragging a tree node into a panel. In the  Drag Drop event of the panel , I try to add a control to the panel and then I get the following exception :

System.ComponentModel.Win32Exception was unhandled by user code
  Message=Error creating window handle.
  Source=System.Windows.Forms
  ErrorCode=-2147467259
  NativeErrorCode=1411
  StackTrace:
       at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
       at System.Windows.Forms.Control.CreateHandle()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.ControlCollection.Add(Control value)
       at TestTreeView.Form1.panel1_DragDrop(Object sender, DragEventArgs e) in E:\Users\Meir\Documents\Visual Studio 2010\Projects\MilestoneTesting\TestTreeView\Form1.cs:line 37
       at System.Windows.Forms.Control.OnDragDrop(DragEventArgs drgevent)
       at System.Windows.Forms.Control.System.Windows.Forms.IDropTarget.OnDragDrop(DragEventArgs drgEvent)
       at System.Windows.Forms.DropTarget.System.Windows.Forms.UnsafeNativeMethods.IOleDropTarget.OleDrop(Object pDataObj, Int32 grfKeyState, Int64 pt, Int32& pdwEffect)
  InnerException: 


This does not happen to me if I am using Microsoft Tree control. 
I am using Telerik for Windows Forms , updated to Dec 11, 2012

Here is the code snippet:
using System;
using System.Linq;
 
using System.Windows.Forms;
using Telerik.WinControls.UI;
 
namespace TestTreeView
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
 
        private void Form1_Load(object sender, EventArgs e)
        {
             
            radTreeView1.AddNodeByPath("\\test");
            radTreeView1.ExpandAll();
            radTreeView1.ShowFeedbackForm = false;
        }
 
        private void radTreeView1_DragStarted(object sender, Telerik.WinControls.UI.RadTreeViewDragEventArgs e)
        {
            DoDragDrop(e.Node, DragDropEffects.Move);
        }
 
        private void panel1_DragDrop(object sender, DragEventArgs e)
        {
            Label test = new Label();
            panel1.Controls.Add(test);
        }
 
        private void panel1_DragEnter(object sender, DragEventArgs e)
        {
            e.Effect = DragDropEffects.Move;
        }
 
   
 
    }
}

The command "panel1.Controls.Add(test);" generates the exception.
What am I doing wrong?

Below is also the  form designer code:
namespace TestTreeView
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region Windows Form Designer generated code
 
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.radTreeView1 = new Telerik.WinControls.UI.RadTreeView();
            this.panel1 = new System.Windows.Forms.Panel();
            ((System.ComponentModel.ISupportInitialize)(this.radTreeView1)).BeginInit();
            this.SuspendLayout();
            //
            // radTreeView1
            //
            this.radTreeView1.AllowDragDrop = true;
            this.radTreeView1.AllowDrop = true;
            this.radTreeView1.Location = new System.Drawing.Point(31, 35);
            this.radTreeView1.Name = "radTreeView1";
            this.radTreeView1.Size = new System.Drawing.Size(243, 348);
            this.radTreeView1.SpacingBetweenNodes = -1;
            this.radTreeView1.TabIndex = 0;
            this.radTreeView1.Text = "radTreeView1";
            this.radTreeView1.DragStarted += new Telerik.WinControls.UI.RadTreeView.DragStartedHandler(this.radTreeView1_DragStarted);
            //
            // panel1
            //
            this.panel1.AllowDrop = true;
            this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.panel1.Location = new System.Drawing.Point(289, 127);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(146, 100);
            this.panel1.TabIndex = 1;
            this.panel1.DragDrop += new System.Windows.Forms.DragEventHandler(this.panel1_DragDrop);
            this.panel1.DragEnter += new System.Windows.Forms.DragEventHandler(this.panel1_DragEnter);
             
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(475, 395);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.radTreeView1);
            this.Name = "Form1";
            this.Text = "Form1";
            this.Load += new System.EventHandler(this.Form1_Load);
            ((System.ComponentModel.ISupportInitialize)(this.radTreeView1)).EndInit();
            this.ResumeLayout(false);
 
        }
 
        #endregion
 
        private Telerik.WinControls.UI.RadTreeView radTreeView1;
        private System.Windows.Forms.Panel panel1;
    }
}


Thanks
Meir
Svett
Telerik team
 answered on 21 Jan 2013
1 answer
79 views
Hi
How can i minimize Ribbon Tab when clicking on start menu  if ribbon bar expanded property is set to true
 

Best Regards,
Randy
Stefan
Telerik team
 answered on 21 Jan 2013
1 answer
127 views
Hi,

Is there a hay theme available for winforms? or anything greenish like Forest, Hay?

Thanks
Stefan
Telerik team
 answered on 21 Jan 2013
5 answers
719 views
Hello Team,

I have a gridview with 6 columns , when clicked on contextmenu of grid for specific column, a conversion from one unit of measurement to other should take place




like the above image showing the conversion units, for example from meter-feet is m-ft
when user clicks this, i need to take the entire column of grid and multiply the column with 3.281 and rebind it to grid
i dont want to loop through the grid as the number of records are more than 40,000

is there any fastest way to achieve this, or in telerik any other options ???

this one i am doing with out saving to database, please help me
Julian Benkov
Telerik team
 answered on 21 Jan 2013
1 answer
80 views
this.radTreeView_Plans.ForEach(???);

What is "Action"?
Ivan Petrov
Telerik team
 answered on 21 Jan 2013
3 answers
155 views
1. what am I trying to achieve:

in windows based application written in VB.NET using VS 2010 based on the results of questionnaire I am creating summary statement that consists of logical parts that I call declarations. when mouse go over the "declaration" I need it to change color and if user right clicks on the "declaration" I would like to open menu of substitute choices, option to create new declaration on the fly and delete existing one from the text. will appreciate advise on whether I can use any custom text control to achieve my goals. Thank you.
Plamen
Telerik team
 answered on 18 Jan 2013
2 answers
427 views
Hi,

I am using several MultiColumn ComboBoxes in a Windows Form, and would like the combo boxes to have nothing selected when the form is first loaded.  The boxes will not have any text in them, and the user will have to use the drop down to select a row.  Once a row has been selected, the box will show the first column of the selected row.

I have tried using the ClearSelection() method on the EditorControl of the combobox, in both the form shown and form load methods, but the combo box still shows the first record when it loads. 

Any suggestions?

Thanks!
Plamen
Telerik team
 answered on 18 Jan 2013
3 answers
119 views
OLAP dimensions  are not displayed consistently in the field chooser in RadPivotFieldList. Dimensions with a multi-level hierarchy are displayed directly below the dimension name (see Publication date in the attached example), but single-level hierarchies are shown under 'more fields'.  When displaying the same cube in Microsoft SSMS both types are displayed in the same way.

Thanks
Sjoerd
Peter
Telerik team
 answered on 17 Jan 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)
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
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
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?