Telerik Forums
UI for WinForms Forum
6 answers
258 views
Hello,

i just created a "base" form for my project and added a radgrid. I've set the "modifier" - property to protected (radgrid).
Now when i inherit from my base form the property - toolbox in VS 2010 is grey. (i cant edit properties).
All other controls work as expected in this case.

Is this a bug or did i forgot something?

thx for help
Emanuel Varga
Top achievements
Rank 1
 answered on 14 Mar 2011
5 answers
208 views
Afternoon,

I'm having a small issue getting my code to function properly and wondered if someone could let me know where I'm going wrong.

Within my project are a couple of columns which hold dates. What I am trying to do is remove the "Is null" and "Is not null" options from the filter list for those columns.

Having searched the forums and read through some of the documentation I have come up with the below code.

private void radGridView1_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
        {
  
            if (this.radGridView1.CurrentCell is GridDataCellElement || this.radGridView1.CurrentCell is GridFilterCellElement && e.ContextMenuProvider == null)
            {
                
                if (((GridViewDataColumn)this.radGridView1.CurrentColumn).FieldName == "DateCalled" ||
                    ((GridViewDataColumn)this.radGridView1.CurrentColumn).FieldName == "NextCallDate")
                {
                    if (e.ContextMenu.Items.Count > 0)
                    {
                        if (e.ContextMenu.Items[0] is Telerik.WinControls.UI.RadFilterOperationMenuItem)
                        {
                            foreach (Telerik.WinControls.UI.RadMenuItemBase menuItem in e.ContextMenu.Items)
                            {
                                if (string.Equals("Is null", menuItem.Text) || string.Equals("Is not null", menuItem.Text))
                                {
                                    menuItem.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
                                }
                            }
                        }
                    }
                }
            }
        }

This works perfectly fine if I right click on the filter button for either of those columns. However, if I left click it doesn't correctly register the column FieldName. Instead it will report the FieldName of the column which has an entry selected within the GridView (Example would be that I have a company name selected with the grid view, left click the filter button for the next call date and it will think that the FieldName is CompanyName instead).

Am I doing it completely wrong or am I just missing something?

Regards,

Guy
Richard Slade
Top achievements
Rank 2
 answered on 14 Mar 2011
1 answer
467 views

I need a RADButton which is round like a circle and an Image in it.

Thank you very much.

Richard Slade
Top achievements
Rank 2
 answered on 14 Mar 2011
5 answers
473 views

Hi All,

I have a grid in which I add products (Screen shot attached). I want to calculate some values based on values in some cells. Here is my scenerio

When the value in Qty cell is changed I want to calculate the value of Amount column (Amount = Qty * Unit price)

The first element in my Unit combobox column should be selected by default when a new row is added but that is not the case, I have to manually select the item as shown in row2 of screen shot.

I can't seem to find the RowAdded event or something similar which I am so used to of using in ASP.Net controls.

 

I know that if I add the textboxcolumn from code behind then I can handle its textchange event, but I have added column through “Property Builder” and can’t seem to find the controls from the row.

Note: I am using Q2 2010 SP2

Can anyone please help me.

Best Regards,

Afraz

Afraz Ali
Top achievements
Rank 1
 answered on 14 Mar 2011
3 answers
185 views
Hello everyone,
I'm trying to group my gridView by two columns named "Category" and "SubCategory". I'm using the following code:

GroupDescriptor descriptor = new GroupDescriptor();
descriptor.GroupNames.Add("Cateogry", ListSortDirection.Ascending);
descriptor.GroupNames.Add("SubCateogry", ListSortDirection.Ascending);
descriptor.Format = "{0}: {1}";
this.radGridView1.GroupDescriptors.Add(descriptor);

The text of the header of the grouping is like this:
Category, SubCateogory: "Value of Category", "Value of SubCategory".
What I want to do is to format the descriptor so as the output would be:
Category: "Value of Category", SubCateogory:"Value of SubCategory"
I tried to achieve this in many different ways, using expressions too, but I didn't manage anything.

Is it possible to do this using the format property or any other way?
A snapshot follows.

Thank you in Advance
Georgios
Richard Slade
Top achievements
Rank 2
 answered on 14 Mar 2011
3 answers
267 views
I've been waiting for RadRibbonForm for a while now and saw that it is part of Q3. I can't find any documentation for it yet. I created a form that inherits from RadRibbonForm and all I get is a big grey box, no ribbon, no status bar, nothing. Do I have to add the ribbon bar and status bar to the form or are they part of the RadRibbonForm and I just can't find them? Also, is there an easy way to port something that was designed as a ShapedForm with ribbon and status bar over to RadRibbonBar (I tried just having it inherit RadRibbonForm and the results are weird).
Nikolay
Telerik team
 answered on 14 Mar 2011
4 answers
228 views

Hi

I want to hide the system context menu which is visible when cell is in edit mode and user presses right button. I come to know that it can be disable on EditingControlShowing event of DataGridView. But as this event is not available in RadGridView, How can I disable or hide this context menu. Any help would be appreciated!

Regards!

Martin Vasilev
Telerik team
 answered on 11 Mar 2011
1 answer
125 views
Hello,
i'm having a little trouble with the RadScheduler.
1. I want to make a schedule with the 5 working days, BUT:
this.radScheduler1.ActiveViewType = Telerik.WinControls.UI.SchedulerViewType.WorkWeek;
with using this code the header names of the days are like '01 April'. 

How can i make them like the real names of the days -> 'monday', 'tuesday' and etc.?

2. How can i divide each day in 10 individual columns?

In the end, I want my schedule to look like this one (without the styles, of course):
https://picasaweb.google.com/lh/photo/K50fT_3619pHdTmTLiErVUT5NbwU7UjEazB5XmYfdGg?feat=directlink

(I don't have any problems with the grouping ("1a", "1b", "1c", "1d", "2a" and etc...)

Note: I don't want to use the GridView, because in the cells there should be specific color (or colors, it depends) and a couple of short names.
Dobry Zranchev
Telerik team
 answered on 11 Mar 2011
3 answers
292 views
Hi,

The behaviour I am trying to stop is this,

I have a gridview that is used as a generic list/grid that is populated by different data based on a users selections.

I have a function that is called whenever the selection changed event is fired.

My problem is the selection changed event is fired whenever the grid is populated with data, therefore can I stop the autoselection
of the first record whenever the grid is populated.

NB I am using the latest version of the gridview 2010 Q3 (2010.3 10.1215)

Thanks for any help

Andrew
Andrew
Top achievements
Rank 1
Iron
 answered on 11 Mar 2011
1 answer
72 views

 In day view, if we scroll down continuously by using up down key, it goes to the second day.  There should be a lock, one should be able to see only one day’s schedule.  Same case with week view and month view.

Dobry Zranchev
Telerik team
 answered on 10 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?