Telerik Forums
UI for WinForms Forum
2 answers
191 views
I Have a Grid View. When i right click on the Grid Header and say Conditional Formatting, one Custom formatting Condition Editor Pops up. There we have 4 options, based on the condition we can change the "Cell Back Color", Cell Fore Color, Row Back Color, Cell Black Color "

i want to restrict user from chaning the "Row Fore Color" and "Row Back Color" when user does Conditional formatting.

How can i hide "Row Fore Color" and "Row Back Color" Properties from the Dialog box.

Is there a way i can hide these two properties.

Thanks,
Sasmita

Sasmita
Top achievements
Rank 1
 answered on 05 Aug 2008
3 answers
210 views
Hi, I have just downloaded the newest version of radControls for WinForms, and it looks + works great!

However, the rightColumnItems are not compatible with Q1 2008 SP1, since I get an error in the designer code at


this

.radMenuItem4.RightColumnItems.AddRange(new Telerik.WinControls.RadItem[] {this.radMenuComboItem1, this.radMenuItem7});

'Telerik.WinControls.UI.RadMenuItem' does not contain a definition for 'RightColumnItems'

I also get a bunch of warnings: 

'Telerik.WinControls.UI.RadMenuItemBase.HasTwoColumnDropDown' is obsolete

When I select the form, I get a message saying:

Error parsing RadItem: Children collection doeas (typo: does) not match - index is not valid radMenuComboItem1 [Telerik.Wincontrols.UI.RadMenuComboItem](1).MenuComboItemBorder[BorderPromitive](1).

In Visual Studio 2005: when I select the menu at runtime I get an error:

Cannot remove the specified item because it was not found in the specified Collection.

How can I change this code to fit Q2 2008?

Thanks in advance.

Peter
Telerik team
 answered on 05 Aug 2008
6 answers
158 views
Hi,

I just downloaded the Q2 Rad Controls. I created a simple windows form application in VS 2008, in C# for testing. Added two GridViews. The left one has theme set to vista (note that nothing visible will happen, not like in the Q1 version where a dark theme was applied). Then from the Property builder I added 3 column for each grid.

issues:
- when applying a theme to the grid, in the VS designer the theme is not recognizable (see picture telerik_theme_color1.jpg, the designer shows a light blue colored square -in background, and the actual theme is nothing like it (black column header and fade-out grid body). So how should I know what am I applying to the application I am working on? It is not a good thing to compile and run the application every time you change a theme, just to see something?
- As you see in pictures telerik_theme_color1.jpg and telerik_coulm_1.jpg, the columns are not visible in the design are in VS. This is also a bad bug like thing.
- after I deleted the columns from the left side Grid (with the Telerik theme), the design view did not change but the hole grid is hidden/not visible while running
(picture telerik_theme_color2.jpg). This issue is probably related to the first issue I mentioned
- minor bug but still unpleasant is that the text "Click here to add new row.." is over the "*"

http://img512.imageshack.us/my.php?image=telerikcolumn1ua7.jpg
http://img512.imageshack.us/my.php?image=telerikthemecolor1bf3.jpg
http://img403.imageshack.us/my.php?image=telerikthemecolor2et0.jpg


Thank you

ps. I am using standard stuff: Windows XP with SP2, VS 2008, .Net 3.5, C#, and now the new Winforms Q2 Trial.
Spoook
Top achievements
Rank 2
 answered on 05 Aug 2008
6 answers
255 views
Hi,

Like I said in my previous post I am testing (playing with) Telerik so I think I will have a couple of posts/threads here during the following weeks.

I put 2 RadGridViews on my form, and tried to add some columns to it. When I used the Property Builder, it was all good (except the fact that every time I clicked on a column (to delete it or something) it brought up the GeneralColumnSetting panel.. that was a little annoying when you want to add 30 columns and then delete 20 of them afterwards).

Now I tried to add some more columns to the grid from code. Here I started to have some problemes as follows:

1- using this
radGridView1.Columns.Add(myColumn);
or
radGridView1.MasterGridViewTemplate.Columns.Add(myColumn);
has the same efect, and I dont see the difference

2-Setting the column name is tricky:
            myColumn.HeaderText = "test1";
            myColumn.UniqueName = "name1";
            myColumn.FieldAlias = "alias1";
            myColumn.FieldName = "field1";
I found out that this is the order of what will be displayed. So if the HeaderText is not set, then the UniqueName will be set, if that is not set than the Field Alis will be set, and the FieldName is Column name for further referrence. So if the first 3 is not set than nothing will be displayed.

3-After deleting all the columns which I set from the Property Builder, I tried to set columns jut from the code.
Telerik.WinControls.UI.GridViewTextBoxColumn myColumn = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            myColumn.HeaderText = "test1";
            radGridView1.MasterGridViewTemplate.Columns.Add(myColumn);
This simple code will not work, for my suprize (it worked before when I was adding columns to the ones I set before in the Property Builder). So I cheked the code generated by the Property Builder.
Here I found: myColumn.IsAutoGenerated = false;
IsAutoGenerated -cannot be found in the list of Intelisence... not nice.
But even setting everything like in the generated code, I still could not add Columns to my grid (the grid showed no columns at runtime).
I found out that you have to use:
((System.ComponentModel.ISupportInitialize)(this.radGridView1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.radGridView1.MasterGridViewTemplate)).BeginInit();
and of course the ending part as well to add Columns.
This is very strange, because you don't need to use this in your code (not in the generated one) when you have at least one column added from the Property Builer or added from code but using the "begin init, etc etc" stuff. So after adding at least one (1) Column to the grid you can use the simple grid.Columns.Add() method...

4 - I put two(2) RadGridViews to my form and created a Column like so:
Telerik.WinControls.UI.GridViewTextBoxColumn myColumn = new Telerik.WinControls.UI.GridViewTextBoxColumn();
            myColumn.HeaderText = "test1";
           
and added this to both of my Grids:
            radGridView2.Columns.Add(myColumn);           
            radGridView1.Columns.Add(myColumn);
First thing that I noticed is that it let me do this. Did not complained that I am adding one column to two controls. When I am asking for the owner grid (tru the template) it is the last Grid I added the column to.
The best part is still this: after running the application, when I try to resize the "test1" column in the second grid, it WILL NOT MOVE during the resize, but in stead the "test1" column in the first grid will show the change...spooky :)
The second grid, where I actually changed the column will not show the change until a forced refresh.

I believe that this is not a normal functionality to a grid and or columns.

I hope I get some answers from Telerik people for my posts. Thank you.
Spoook
Top achievements
Rank 2
 answered on 05 Aug 2008
1 answer
147 views
Hi, I have already open a thread about this subject but I can´t find it on forums to see if you already gave me an answer, so here go my problem again.

I have a Form, and the form has the keypreview property set to true, so using the Form KeyDown event I close the form when user press Esc Key.

private void Form1_KeyDown(object sender, KeyEventArgs e)
{
            if (e.KeyValue == 27)
            {
                FormCalificacionesRegistro.ActiveForm.Close();
            }
 }

The proble is when I use a RadGridView on the form, when I press Esc Key, I got the error

Objetc Reference not set to an instance of an object, doing reference to my MDI Parent Form called FormMenuPrincipal


static void Main()
{
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FormMenuPrincipal());
}

Thank you
Peter
Telerik team
 answered on 05 Aug 2008
1 answer
71 views

Hi ,
  we have purchased Telerik License for "RadControls for WinForms Q1 2008" .

    Our requirement is :: Having a Grid with three hierarchies and if there are no rows in chid template, the "+" symbol should not be shown.
    Now ,even if there are no rows in the child template  all rows are preceding with "+".

Is there any specific property setting for the grid to act as per the requirement on our side to get it done or it is not possible with the version we have purchased??

Quick reply is appreciated.

Vassil Petev
Telerik team
 answered on 04 Aug 2008
2 answers
275 views

I am new to the winforms telerik controls. The ASP>NEt controls are fantastic!

My issue is, I want to to apply a theme to my entrie application.

I read about using ApplicationThemeName  to achieve this.

Is this what I do? Telerik.WinControls.

ThemeResolutionService.ApplicationThemeName = "Telerik"; Where in my code to I place this?
Is there some detailed help on this topic?

I have no issues with applying a theme to controls. But I want to say use theme xyz and apply to all controls throughout the application.

Regards
Andrew

Peter
Telerik team
 answered on 04 Aug 2008
1 answer
108 views
Hi telerik,

I tried to set MultiColumnComboBox.text="Test" but it wont happen.
Tried on RadComboBox.text="test", it works.

How do i set text for MultiColumnComboBox?


Thanks
Dimitar Kapitanov
Telerik team
 answered on 04 Aug 2008
3 answers
123 views

Hi ,

I have one docked panel on a docking manager. On button click I am docking forms to the doc panel.  At a given point of time I want to know how many forms are docked in the doc panel. 

I tried with dockingManager1.ActiveControl, dockingManager1.GetManagedDockables (), dockingManager1.Controls it did not help.

Could you please help me knowing the procedure for knowing it ?

Thanks,
Sasmita

 

Angel
Telerik team
 answered on 04 Aug 2008
2 answers
91 views
Hi ,
Is there a way where i can have controls on Context Menu. .

I have my requirement like, when user right clicks, the Context menu that Pops up should have a check box followed by some text . I can have  just text by the below code . But can i have controls on a context menu.

RadDropDownMenu
menu = new RadDropDownMenu();
RadMenuItem
item = new RadMenuItem("Context Menu");
menu.Items.Add(item);

Any kind of help is appreciated.

Thanks,
Sasmita
Sasmita
Top achievements
Rank 1
 answered on 04 Aug 2008
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?