Telerik Forums
UI for WinForms Forum
2 answers
173 views
Hi Team,

I m using  radchart control in my project. 
i m drawing real time chart . my Y axis AutoScale =True
But when i m setting the y axis as max of y axis scale, it is hideing the series line.
How i can give a margin for Max values?

Please refer the attachment.



Thanks and Regards
Saurabh dubey
saurabh(GV433015)
Top achievements
Rank 1
 answered on 15 Mar 2011
5 answers
233 views
Hello, telerik community :)

While using the color blending mechanism, I noticed that if a rad control is created for the first time after the color blending takes place, that control will not have the blending changes.
In my application, as soon as I open the main form, I apply a theme and then a color blending.

If m_Theme = AvailableThemes.ControlDefault Then
    m_CurrentTheme = Telerik.WinControls.ThemeResolutionService.GetTheme("ControlDefault")
    name = "ControlDefault"
Else
    If Not ThemeLoaded(name) Then
        ThemeResolutionService.LoadPackageResource(name & ".tssp")
    End If
End If
             
m_CurrentTheme = Telerik.WinControls.ThemeResolutionService.GetTheme(name)
Telerik.WinControls.ThemeResolutionService.ApplicationThemeName = name
m_CurrentTheme.AddColorBlend(blend.Name, blend.BaseHslColor)
m_CurrentTheme.ThemeProperties(blend.Name) = blend.BlendHslColor

AvailableThemes is an enumeration of theme names. All other themes except ControlDefault are assembly Resources (tssp files).

As soon as the main window of the application is shown, my theme "manager" loads the last used theme and applies a color blending to that theme.

It seems that rad controls, which are not loaded before the color blend, will not get the new colors. RadPageView is even worse, even if it is loaded (in my case, my main form has a RadPageView in stack viewmode), it will only apply the color blending to new RadPageViews of the same view mode (strip or stack).

To successfully apply color bindings in controls that will be created after the initial color blending, I have to add dummy controls (for example, a RadPageView with view mode strip) on my main form's control collection (with size 0,0 show that these controls don't show up) and after the application of color blending, I remove them.

Is this the desired functionality? I thought that color blending would be available to all controls using the theme that has the color blending.

Forgot to mention that I am using the latest dev release of RadControls for WinForms Q3 2010 (2010.3.10.1326).
Dobry Zranchev
Telerik team
 answered on 15 Mar 2011
7 answers
391 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
579 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
266 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
226 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
486 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
498 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
194 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
279 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
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?