Telerik Forums
UI for WinForms Forum
6 answers
288 views
When setting day bigger than 12, following error occours:
14.3.2011 0:00:00 is not a valid value for DateTime.
I have tried to set FormatString to {0:dd/MM/yyyy}, then FormatInfo to sl-SI and then both, but nothing works. Windows regional settings are set to Slovenian.
Stefan
Telerik team
 answered on 16 Mar 2011
6 answers
224 views
I use RadMenu in my Windows Application.  If the application run in WinXP, the text in the menu item can be displayed completely.
However, in Win7, only part of the text is displayed (e.g. only "Men" is displayed instead of "Menu Item").  When the mouse over the menu item, it can be displayed (e.g. "Menu Item").

Is it a bug in Win7 or if there is any setting?

Best Regards,
Emily
Nikolay
Telerik team
 answered on 16 Mar 2011
3 answers
297 views

I need a button with 3 images and 3 labels.

Thank you very much.

-----------------------

- Image1   label1 -

- Image2  label2  -

- Image3 label3   -

----------------------- 

Stefan
Telerik team
 answered on 16 Mar 2011
2 answers
130 views
Can I use in radDropDownList webmethod  for data source for AutoCompleteDataSource property ?

If yes, can you give some help code

Thank for effort answer me

Best Regards
Zlatko
Peter
Telerik team
 answered on 16 Mar 2011
2 answers
85 views
I am evaluating this control for a project and we need to be able to have the scheduler devided in 30 minuttes. You have this functionality in the ajax version (MinutesPerRow), is this functionality not available for the win forms version?

Best R, Thomas
Dobry Zranchev
Telerik team
 answered on 16 Mar 2011
4 answers
311 views
I'm looking for the same funcionality as :

MaskedEditBoxElement.Fill.BackColor  for RadMaskedEditBox and
TextBoxElement.Fill.BackColor for RadTextBox

for RadSpinEditor.

Below effect which I need:

TextBox and Masked are ok but Spin isn't correct for me. Please help. Thanks.
Stefan
Telerik team
 answered on 16 Mar 2011
4 answers
439 views

Hi everyone,


I'm trying to make a datagrid which allows custom components into cells. I used CellFormatting event of the radGridView. But when i use this event, something strange happening. I introduced the scenario with pictures as bellow;

First i open the form;

Please check 1.png

Then i resize the form;

Please check 2.png

Then i return back to its normal size;

Please check 3.png

Here's the code i wrote for cellformating;

void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
       {
           if (e.CellElement.ColumnInfo is GridViewDataColumn && ((GridViewDataColumn)e.CellElement.ColumnInfo).Name == "column1")
           {
               //if (!(e.CellElement.RowElement is GridHeaderRowElement)) // I can't write this code because my codes can't find GridHeaderRowElement class.
               {
 
                   if (e.CellElement.Children.Count > 0)
                       return;
                   ucTextBoxButton txt = new ucTextBoxButton();
                   txt.KeyDown += new KeyEventHandler(txt_KeyDown);
 
                   e.Column.ReadOnly = true;
 
                   ucGridViewTextBoxButtonColumn gridviewclm = new ucGridViewTextBoxButtonColumn(txt);
                   gridviewclm.StretchHorizontally = true;
                   gridviewclm.StretchVertically = true;
                   e.CellElement.Children.Add(gridviewclm);
           
               }
           }
       }

Do you have any ideas?

Ivan Todorov
Telerik team
 answered on 16 Mar 2011
2 answers
249 views
Hi everyone,

I'm trying to make a datagrid which allows custom components into cells. But when I call AddNew void, it gives me an error like this;

Constructor on type 'FCS.ManagementConsole.Main.Components.ucTextButtonElement' not found.

Here is my ucGridViewTextButtonCellElement.cs;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.WinControls.UI;
using Telerik.Reporting.Drawing;
using System.Drawing;
 
namespace FCS.ManagementConsole.Main.Components
{
    class ucGridViewTextButtonCellElement : GridDataCellElement
    {
        private ucTextButtonElement TextBoxButtonElement;
        public ucGridViewTextButtonCellElement(GridViewColumn column, GridRowElement row)
            : base(column, row)
        {
        }
        public override void Initialize(GridViewColumn column, GridRowElement row)
        {
            base.Initialize(column, row);
        }
         protected override Type ThemeEffectiveType
        {
            get
            {
                return typeof(GridDataCellElement);
            }
        }
         protected override void CreateChildElements()
         {
             base.CreateChildElements();
             TextBoxButtonElement = new ucTextButtonElement();
             TextBoxButtonElement.MinSize = new Size(50, 20);
             TextBoxButtonElement.Text = "Red";
             this.Children.Add(TextBoxButtonElement);
         }
    }
}

Here is my component class;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.WinControls.UI;
 
namespace FCS.ManagementConsole.Main.Components
{
    class ucTextButtonElement:RadTextBoxElement
    {
        public event EventHandler ButtonClick;
        public ucTextButtonElement()
        {
            RadButtonElement btn = new RadButtonElement();
             
            
            btn.Size = new System.Drawing.Size(25, 10);
 
            btn.Click += new EventHandler(btn_Click);
         
            btn.BringToFront();
             
            
            btn.Text = "...";
             
        }
 
        void btn_Click(object sender, EventArgs e)
        {
            EventHandler handler = ButtonClick;
            if (handler != null) handler(this, e);
        }
    }
}


Here is my ucGridViewTextBoxButtonColumn2.cs;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.WinControls.UI;
 
namespace FCS.ManagementConsole.Main.Components
{
    class ucGridViewTextBoxButtonColumn2 : GridViewDataColumn
    {
        public ucGridViewTextBoxButtonColumn2(string fieldName)
            : base(fieldName)
        {
        }
           public override Type GetCellType(GridViewRowInfo row)
        {
            if (row is GridViewDataRowInfo)
            {
                return typeof(ucTextButtonElement);
            }       
            return base.GetCellType(row);
        }
    }
}

This the code that i get error;

      ucGridViewTextBoxButtonColumn2 grid = new ucGridViewTextBoxButtonColumn2("TextBoxColumn");
 radGridView1.Columns.Add(grid);
 
   radGridView1.Rows.AddNew();

Do you have any ideas?
Stefan
Telerik team
 answered on 16 Mar 2011
3 answers
154 views
How do I set up in code a tooltip for the menu (the menu itself, not a menu item)?

More importantly, how can I find a property such as tooltip by myself without having to get technical support?


Stefan
Telerik team
 answered on 16 Mar 2011
3 answers
314 views
Hi,
We have  not-so-technical users that don't understand moving off a row is what causes it to be added or updated.  Subsequently, I have added a button in each row that is to basically "save" the changes of the row (to the dataset).  I cannot seem to find a way to force the row to update as EndEdit and EndUpdate only seem to end a cell update.  I need something that will do the same thing as moving off a row so I can catch the errors in the RowValidating event.  Can you point me in the right direction?

Thank you.
David A.
Top achievements
Rank 1
 answered on 16 Mar 2011
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?