Telerik Forums
UI for WinForms Forum
2 answers
162 views
i have a chart with dates on X-axis , Chart is bound to a dataSource and there are 700 items  .
with the default settings all the dates are displayed as labels and there is a overlap of labels on X-axis. 

what i want to do is have only three labels on x-axis.
 1) at start   i.e Min of Dates (the x-axis starts from here)
2) at end i.e Max of Dates (the x-axis Ends here)
3) at  the middle (approximately)  (between the min and max date)

in Chart wizard, labels can be added to axis manually . but it only accepts INT's.
How can i achieve this with dates?

below is the code generated by the designer while adding labels manually for INT Data types

 

 

 

            Telerik.Charting.ChartAxisItem chartAxisItem1 = new Telerik.Charting.ChartAxisItem();  
            Telerik.Charting.ChartAxisItem chartAxisItem2 = new Telerik.Charting.ChartAxisItem();  
            Telerik.Charting.ChartAxisItem chartAxisItem3 = new Telerik.Charting.ChartAxisItem();  
            chartAxisItem1.Value = new decimal(new int[] {1, 0,0,0});  
            chartAxisItem2.Value = new decimal(new int[] {6,0,0,0});  
            chartAxisItem3.Value = new decimal(new int[] {11,0,0,0});  
            this.radChart1.PlotArea.XAxis.Items.AddRange(new Telerik.Charting.ChartAxisItem[] {  
            chartAxisItem1,  
            chartAxisItem2,  
            chartAxisItem3}); 

 

Glen Fernandes
Top achievements
Rank 1
 answered on 07 May 2009
2 answers
136 views
Hi,

in the last version, I try to set an Height for ColumnGroupsViewDefinition but it don't work.

first try:
ColumnGroupsViewDefinition _ColumnGroupsViewDefinition = new ColumnGroupsViewDefinition();
[...]
_ColumnGroupsViewDefinition.ColumnGroups[1].Rows[0].Height = 45;

second try:
pRadGridView.GridElement.TableHeaderHeight = 45;

Fabien
Martin Vasilev
Telerik team
 answered on 07 May 2009
4 answers
558 views
Hello!!!

I'm using the telerik library, 2008 version. I want to have a unique form that is called from two different options in the menu and depending on the option you select in should show a label and a combobox or a label and a textbox. The label is easy to change, but how do i do to change between the combobox and the textbox? I tried put it over and set the visible attribute to false but it's not working because i have everything inside a table layout and it only lets me put one control in every cell.

Do you have any ideas? Thanks!!

Ana Mora
Ana
Top achievements
Rank 1
 answered on 07 May 2009
15 answers
917 views
I have a datagridview that has a checkbox column.  I want the row to change color when it's checked and when it's unchecked I want the original color to show up.  What is the best way to do this without using the Themes?  Is that even possible?

Thank You
Jerry
Jack
Telerik team
 answered on 07 May 2009
2 answers
148 views
How can I determine if I'm editing a parent or a child in the radgrid?

I tried something like this:

private void radgrid_CellEndEdit(object sender, GridViewCellEventArgs e) 
  Console.WriteLine("cell edit"); 
  if (radgrid.Rows[e.RowIndex].ViewTemplate.Parent == null
  { 
    Console.WriteLine(radgrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value); 
  } 
  else 
  { 
    var template = radgrid.MasterGridViewTemplate.ChildGridViewTemplates[0]; 
    Console.WriteLine(template.Rows[e.RowIndex].Cells[e.ColumnIndex].Value); 
  } 

But I'm keep going in the first part of my if statement.

Thanks


Nick
Telerik team
 answered on 07 May 2009
2 answers
121 views
Hi,
I'm just wondering why is the RadSchedulerNavigator component not visible in Toolbox along with other Telerik components...


Thanks for your response.

Pavel K.
Deyan
Telerik team
 answered on 07 May 2009
1 answer
141 views
One of the major issues i have currently with the RibbonBar component is that in order for it to display properly without the standard windows forms title bar, you have to inherit from shaped form, when the forms border disappears, it stops acting like a normal window and no longer drops a shadow on vista.  This is a problem becuase the entire reason for using the Ribbon UI is to make the application look like a mature, modern software application, but the window looks badly implemented compared to the other applications running on the system without the form shadow, which somewhat defeats the purpose.

Are there plans to fix this?
Deyan
Telerik team
 answered on 05 May 2009
1 answer
66 views
What is the difference between the RadPlayer.OpenClip( string fileName ) and RadPlayer.OpenClipFromResource( string resourceName ) methods?

I would like to play a byte[] directly, without saving it to file, intermediate or not. I would think that the OpenClipFromResourse method would do the trick (with some preprosessing), but I can't figure out how.

Is there a way to play a byte[] or MemoryStream object?

Regards, Jill-Connie Lorentsen
Nick
Telerik team
 answered on 05 May 2009
1 answer
198 views
Hi,

I don´t know whether I am missing something but I am not able to apply a theme to my gridview.

If I try to apply "Telerik" theme (I write the following code snippet), the gridview gets crazy and shows a cyan background color. 

this.gridView1.ThemeName = "Telerik"

If I write "Vista" theme instead, the theme is applied correctly.

I have checked and among my references is not included "Vista" assembly (Telerik.WinControls.Themes.Vista.dll). I don´t know whtether this is necessary to include. I have aslo tried to copy Telerik.WinControls.Themes.Telerik.dll but didn´t make any effect.

What I am doing wrong?am I missing an asembly?

Thank you in advance.

Patxi.


Nick
Telerik team
 answered on 05 May 2009
1 answer
161 views
Hi,

I recently updated Telerik to an internal build I needed to fix a RadGridView crash. The internal build I was given consisted of a .zip file with the .dll's. My initial guess was to first uninstall the current Telerik version, then simply copy the dll's in the PublicAssemblies folder of my VisualStudio installation path.

My problem is that when I open a designer, I get the following message

Visual Studio is attempting to load class isntances from a different assembly than the original used to create your components....

The paths shown in the error point to the ProjectAssemblies folder of my Local Settings path. It seems a temporary folder is created there and the .dll is copied there before opening the designer. I tried closing VS and deleting the temporary folders and their 'dll's, but as soon as I restart VS the folders are recreated, the dll's recopied, and the error occurs anew.

What am I doing wrong?
Nick
Telerik team
 answered on 05 May 2009
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
ProgressBar
CheckedDropDownList
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
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?