Telerik Forums
UI for WinForms Forum
7 answers
303 views
I have placed a RadGridview in a toolWindows of a RadDock.
When I click on the down/up arrow of the scrollbar, it worked. As soon as I drag the scrollbar, either up or down. It stopped working thereafter.

Am I missing something?
Martin Vasilev
Telerik team
 answered on 15 Mar 2011
11 answers
483 views
HI I'm using the dropdownlist control.  I've populated the control and everything works fine.  However if I select an item, and the form closes, whenever I subsequently open the form the control shows no text initially, and once the drop down arrow has been pressed you can see the current selection is stuck on the previous choice.

So On Load
  cbComp.DataSource = DataSet.Company
        cbComp.ValueMember = "id"
        cbComp.DisplayMember = "CName"

Anyone know of a work around this?

Richard Slade
Top achievements
Rank 2
 answered on 14 Mar 2011
6 answers
159 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
134 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
382 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
375 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
120 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
204 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
178 views
Ra

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
96 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
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?