Telerik Forums
UI for WinForms Forum
4 answers
243 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
325 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
169 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
127 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
234 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
7 answers
183 views
Hi...
say i have a pageview in strip mod , i wont my program to had support for english and a right to left language, i noticed that when changing the right to left property to true, the pages still at left !, and their indexes are the same.

 (i.e.
right to left property set to true:

pageview looks like this
 [page1]-[page2]-[page3]..................................................................................................

and they should look like this:
.................................................................................................. [page3]-[page2]-[page1]
i did search the form and found that i can change the index of the pages, and swap their location, but i'd rather have them set that way in design time. and its much easier to shift from or to right to left state if it does change the location automatically. 
is that achievable or i should look to use code. thx
Amir
Top achievements
Rank 2
 answered on 16 Mar 2011
3 answers
142 views
Hi,

I'm using a grid with self-referencing. I want to sort only the parent rows, not the child rows. Is it possible?

Thanks,
Andy
Richard Slade
Top achievements
Rank 2
 answered on 15 Mar 2011
6 answers
671 views

I need a RadDropDownListBox with 2 columns

Thank you very much.

Titel1 | Titel6

Titel2 | Titel7

Titel3 | Titel8

Titel4 | Titel9

Titel5 | Titel10

Brian@WTG
Top achievements
Rank 2
 answered on 15 Mar 2011
2 answers
314 views
Hi,

I want to add a normal scroll bar to a pageview to scroll to the hidden pages. My client is not happy with the strip buttons. Is there any way that I can mimic this functionality.
Please see the screen shot what I want to say.

Thanks
vijay
Stefan
Telerik team
 answered on 15 Mar 2011
3 answers
284 views
I'm in the RadScheduker.SelectionChanged event, how do I find information about the currently selected appointment?  Or, I'm in the AppointmentDeleting event, same question??

I have a custon appointment with an Appointment ID. Can I get to it?

Thanks
Stefan
Telerik team
 answered on 15 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
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?