Telerik Forums
UI for WinForms Forum
2 answers
94 views
Hi,
I have encountered some problems:
First, I change my grid's theme to Telerik, at runtime Column Headers's theme still remains unchanged but other parts are effected.
and the user have to hover mouse over the header to see the theme's effect on grid. this happens only one time, at form load.

Second, In a comboobox column the cell doesn't show the correspond value of combobox.

Third, While I have handled DataError, CellValidating, RowValidation Events, why still NoNullAllowedException and DupplicatePrimaryKeyException throws by the application? this happen when I click somewhere on the Form or Grid (this really happens just test it).

Fourth, Do I have to write code to change combobox column' Right To Left property for each Grid of My App?

And more unsolved problems in the near future,
Special thanks to Telerik Team,  for lots of time you pay to me.

Alexander
Telerik team
 answered on 16 Mar 2011
3 answers
269 views
Using the gridview controls is there a way to create a parent child relationship and all the grids to handle the table design that they are populated with.  For instance if someone adds a row to the parent and that violates the constraints of the table will the grid display that or do I have to handle all of that on my own? When the user changes rows in the parent the child grid should automatically on it's own query the table and repopulate.  Is this possible with telerik?  My boss thinks the grids should act like the oracle forms or Access forms with the underlying datasource.  Will that functionality work with Telerik Winform controls?

Thank You
Richard Slade
Top achievements
Rank 2
 answered on 16 Mar 2011
6 answers
221 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
138 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
246 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
72 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
70 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
225 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
285 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
158 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
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?