Telerik Forums
UI for WinForms Forum
2 answers
244 views
Hi !

How  can I format a cell in the child GridView?
Something like if a cell has value 20 to be red else black.

Regards,
Hans
Svett
Telerik team
 answered on 12 Aug 2010
1 answer
109 views
I know i've seen this, but I couldn't find it. 

Basically I just want to omit a single control from changing themes when using the ThemeResolutionService. 

I want to theme the entire application except for the pageView control (since it doesn't support the other themes).

Thanks. 
Boryana
Telerik team
 answered on 12 Aug 2010
1 answer
182 views
Hi,
   I have attached the screenshot of the pie chart developed using RadCharts.  By default the chart is showing green, light green, blue and light blue.  It does not differentiate the items at the first look itself.  A keen observation is required to distinguish between the items. 

Instead of light and dark shades, is it possible to show some contrasting colors in the pie charts?  Do I need to set any property in the radChart? 

Regards,
Arvind Robin Kumar.
Ves
Telerik team
 answered on 12 Aug 2010
3 answers
150 views
Hi Everyone,

First off... I am absolutely in love with this control, kinda bulky to use in design time but fantastic performance at runtime, so big thanks!

I have noticed an issue however that affects the PageView or rather the PageViewPage when the PageView is nested inside another PageViewPage.

When you disable then re-enable the PageView control the child PageViewPages do not re-enable again, you have to manually specify each page as enabled again.

This also happens if you add the PageView control as a chlild of a panel and disable/enable that panel.

I am using the latest version of the Telerik Components WinForms pack with the PageView control in 'Outlook' configuration.

Cheers!

Xavier.
Stefan
Telerik team
 answered on 12 Aug 2010
1 answer
198 views
Hi,
   I am able to display the labels outside the horizontal stacked bar.  I have attached the sceenshot of what I have developed.  The value 9000 is for the red portion and it is center aligned to it (center aligned to the red portion).  Is it possible to align it left?

I tried the following code

cs.Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.

StyleSeriesItemLabel.ItemLabelLocation.Outside;

 

cs.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.

AlignedPositions.Left;


If I set the Aligned position as Left after setting the LabelLocation as Outside, it has no effect.

Following is the code that I am using
radChart1.Series.Clear();
radChart1.IntelligentLabelsEnabled = true;
  
ChartSeries cs = new ChartSeries(); 
cs.Items.Add(new ChartSeriesItem(9000));
cs.Appearance.BarWidthPercent = 30;
  
cs.Appearance.FillStyle.MainColor = Color.Red;
cs.Appearance.FillStyle.SecondColor = Color.Red;
cs.Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Outside;
cs.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Left;
cs.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.Green;
  
cs.Type = ChartSeriesType.StackedBar100;
radChart1.Series.Add(cs); 
ChartSeries cs1 = new ChartSeries(); 
cs1.Items.Add(new ChartSeriesItem(1000));
cs1.Appearance.LabelAppearance.Visible = false;
cs1.Appearance.FillStyle.MainColor = Color.Orange;
cs1.Appearance.FillStyle.SecondColor = Color.Orange;
cs1.Type = ChartSeriesType.StackedBar100;
radChart1.Series.Add(cs1);
radChart1.PlotArea.XAxis.Visible = Telerik.Charting.Styles.ChartAxisVisibility.False;
radChart1.PlotArea.YAxis.Visible = Telerik.Charting.Styles.ChartAxisVisibility.False;
radChart1.Legend.Visible = false;
radChart1.ChartTitle.Visible = false;
radChart1.Update();




Regards,
Arvind Robin Kumar.
Ves
Telerik team
 answered on 12 Aug 2010
1 answer
170 views
Hi,
   I have attached the screen shot.  I want to display the value 1000 according to the width of the red portion.  Is it possible to display the value (1000) on top of the horizontal stacked bar (as shown in the second example) if it does not fit inside the red portion? 

We need to show the value inside the bar graph if it fits inside it or else it should be displayed on top of the bar.

I have used the following code:
radChart1.Series.Clear();
radChart1.IntelligentLabelsEnabled = true;
  
ChartSeries cs = new ChartSeries(); 
cs.Items.Add(new ChartSeriesItem(1000));
cs.Appearance.BarWidthPercent = 30;
  
cs.Appearance.FillStyle.MainColor = Color.Red;
cs.Appearance.FillStyle.SecondColor = Color.Red;
//cs.Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside;
cs.Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Outside;
cs.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.Green;
  
cs.Type = ChartSeriesType.StackedBar100;
radChart1.Series.Add(cs); 
ChartSeries cs1 = new ChartSeries(); 
cs1.Items.Add(new ChartSeriesItem(9000));
cs1.Appearance.LabelAppearance.Visible = false;
cs1.Appearance.FillStyle.MainColor = Color.Orange;
cs1.Appearance.FillStyle.SecondColor = Color.Orange;
cs1.Type = ChartSeriesType.StackedBar100;
radChart1.Series.Add(cs1);
radChart1.PlotArea.XAxis.Visible = Telerik.Charting.Styles.ChartAxisVisibility.False;
radChart1.PlotArea.YAxis.Visible = Telerik.Charting.Styles.ChartAxisVisibility.False;
radChart1.Legend.Visible = false;
radChart1.ChartTitle.Visible = false;
radChart1.Update();


Regards,
Arvind Robin Kumar.
Ves
Telerik team
 answered on 12 Aug 2010
2 answers
78 views
SiteHello, I have a problem when I assign a generic list to the chart object,
this is my class

public class cs_itemspedido
    {
        private string referencia;
        private int cantidad;
        private string nombre;
        private double pesoxref;
        private double valor;
        private int osa;
 
        public int Osa
        {
            get { return osa; }
            set { osa = value; }
        }
        public double Valor
        {
            get { return valor; }
            set { valor = value; }
        }
        public double PesoXRef
        {
            get { return pesoxref; }
            set { pesoxref = value; }
        }
 
        public string Nombre
        {
            get { return nombre; }
            set { nombre = value; }
        }
 
        public string Referencia
        {
            get { return referencia; }
            set { referencia = value; }
        }
        public int Cantidad
        {
            get { return cantidad; }
            set { cantidad = value; }
        }
        /// <summary>
        /// Peso Total
        /// </summary>
        public double Peso_Total
        {
            get { return (cantidad * pesoxref); }
        }
        /// <summary>
        /// Valor total X item
        /// </summary>
        public double Valor_Total
        {
            get { return (cantidad * valor); }
        }
}


I just want to show the X axis the value of the property (Referencia) and the axle and (Peso_Total) value.

I made this site what it says but I error out, series.count == 0

thanks
Giuseppe
Telerik team
 answered on 12 Aug 2010
3 answers
174 views
Hi

 I have a requirement like shortfall kind of line graph.Kindly anyone give suggetion whether this is possible or not.I attached the screenshot for your reference.
Giuseppe
Telerik team
 answered on 11 Aug 2010
1 answer
68 views
hi,

Recently I downloaded trial version of your products, I think those are good components makes developing stage easier. My question is. Database doesn't support boolean datatypes, so, I use char(1) to represent 'Y', 'N' values, but I need this be displayed by gridviewcheckboxcolumn, how can I do to make it possible since gridviewcheckboxcolumn must be binded to a boolean column into datatable and no way to translate string column datatable into boolean column datatable? 



'Y' - On

'N' - Off



thanks
Svett
Telerik team
 answered on 11 Aug 2010
1 answer
139 views
Hi

In my project I have the following senario:



ColumnGroupsViewDefinition

 

view =  new ColumnGroupsViewDefinition();

 

 

 

 

view.ColumnGroups.Add(new GridViewColumnGroup("Group"));

view.ColumnGroups.Add(new GridViewColumnGroup("ID"));

view.ColumnGroups.Add(new GridViewColumnGroup("Amount"));

view.ColumnGroups.Add(new GridViewColumnGroup("Date "));

view.ColumnGroups.Add(new GridViewColumnGroup("method"));

view.ColumnGroups.Add(new GridViewColumnGroup("request"));

view.ColumnGroups[3].Rows.Add(new GridViewColumnGroupRow());

view.ColumnGroups[4].Rows.Add(new GridViewColumnGroupRow());

view.ColumnGroups[5].Rows.Add(new GridViewColumnGroupRow());

 

view.ColumnGroups[3].Rows[0].Columns.Add(this.grid1.Columns["Now"]);

view.ColumnGroups[3].Rows[0].Columns.Add(this.grid1.Columns["yesterday"]);

view.ColumnGroups[4].Rows[0].Columns.Add(this.grid1.Columns["now"]);

view.ColumnGroups[4].Rows[0].Columns.Add(this.grid1.Columns["yesterday"]);

view.ColumnGroups[5].Rows[0].Columns.Add(this.grid1.Columns["now"]);

view.ColumnGroups[5].Rows[0].Columns.Add(this.grid1.Columns["yesterday"]);

 

DataTable

 

 

 

table = new DataTable();

 

 

 

 

 

 

table.Columns.Add(

 

 

"grp",typeof(string));

 

 

 

 

table.Columns.Add("ID",typeof(string));
table.Columns.Add("Amt",typeof(string));
table.Columns.Add("date",typeof(string));
table.Columns.Add("metd",typeof(string));
table.Columns.Add("req",typeof(string));

 

grid1.MasterGridViewTemplate.AutoGenerateColumns = false;

 

grid1.DataSource = table;

grid1.ViewDefinition = view;






My problem is that I get "Object reference not set to an instance of an object." error on last line that is:
"grid1.ViewDefinition = view;"

I have tryed many things to solve this but I couldn't.


Any help will be appreciated.

Thanks In advance.
Svett
Telerik team
 answered on 11 Aug 2010
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
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
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
VirtualKeyboard
NavigationView
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
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?