Telerik Forums
UI for WinForms Forum
1 answer
757 views
Hi,

I'm using Radchart in winform to databind to a generic list. How can I show both the Percentage and actual value as the label?

Attached is the desired output.

Below is the sample data

columnname valuedata
< 20 days 112
<= 50 days 532
<= 90 days 40
> 90 days 168

Codes
protected void CreateChart()
        {
            RadChart chartObj = new RadChart();
            chartObj.SkinsOverrideStyles = false;
            chartObj.ChartTitle.TextBlock.Text = "No of Items";
            chartObj.Size = new Size(800, 600);
            chartObj.ItemDataBound += new EventHandler<ChartItemDataBoundEventArgs>(chartObj_ItemDataBound);
            chartObj.DataManager.DataSource = _objBLL.GetData();
            chartObj.DataManager.LabelsColumn = "ColumnName";
            chartObj.IntelligentLabelsEnabled = true;
            chartObj.DataBind();
            chartObj.Series[0].Type = ChartSeriesType.Pie;
            chartObj.Series[0].Name = "Days";
            chartObj.Series[0].Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
            chartObj.Update();
  
            this.Controls.Add(chartObj);
  
        }
  
        protected void chartObj_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)
        {
            if (e.SeriesItem != null)
            {
                DataRowView dtView = e.DataItem as DataRowView;
  
                if (dtView != null)
                {
                    e.SeriesItem.Label.TextBlock.Text = string.Format("{0}%", dtView["ChartValue"]);
                }
            }
        }

Evgenia
Telerik team
 answered on 27 Jul 2012
1 answer
160 views
Hi,

I am using radgrid with autogenerated future. i have around 184 dynamic columns. but i need third position column as Gridviewcomboboxcolumn for this i am using below code. i removed the mold name column and inserted new gridviewcomboboxcolumn in the same position.

    Private Sub gv_CPS_DataBindingComplete(sender As Object, e As Telerik.WinControls.UI.GridViewBindingCompleteEventArgs) Handles gv_CPS.DataBindingComplete
        Dim grid = TryCast(sender, RadGridView)
        If grid Is Nothing OrElse Not grid.Columns.Contains("MOLD NAME") Then
            Return
        End If
        grid.Columns.Remove("MOLD NAME")
        Dim MOLD_NAME_COMBO = New GridViewComboBoxColumn("MOLD NAME")
        MOLD_NAME_COMBO.Name = "MOLD_NAME_COMBO"
        MOLD_NAME_COMBO.HeaderText = "MOLD NAME"
        MOLD_NAME_COMBO.DataSource = objCom.Dynamic_Combo_load("cast(mold_type_id as varchar(100)) as mold_type_id", "Name", "T_SFS_MOLD_TYPE ORDER BY NAME")
        MOLD_NAME_COMBO.ValueMember = "mold_type_id"
        MOLD_NAME_COMBO.DisplayMember = "Name"
        MOLD_NAME_COMBO.FieldName = "MOLD NAME"
        MOLD_NAME_COMBO.Width = 100
        MOLD_NAME_COMBO.DropDownStyle = RadDropDownStyle.DropDown
        MOLD_NAME_COMBO.AutoCompleteMode = AutoCompleteMode.SuggestAppend
        grid.Columns.Insert(3, MOLD_NAME_COMBO)
    End Sub

Please have look the attached image file.
Both combo box values are stored database when i retrieved the record combo value is not displayed. but combo box have the both value.

Please help on this same(urgent)
Kamalakannan
Top achievements
Rank 1
 answered on 26 Jul 2012
3 answers
224 views
Hi every body;
Dear all;


We would like to have the summation of each column row by row without using summary row item (the summary row item is used when we have grouping).
It is appreciated if you can answer that, how we can improve the calculation speed whilst the data source is very large (i.e. grater than 200,000 row).

the scheme of our propose is illustrated in following:

Column A     Column B               Calculated Column
   A                     10                       10
   B                      3                        13
   C                      9                        22
   D                      5                        27


 
Yours Sincerely.
Svett
Telerik team
 answered on 26 Jul 2012
3 answers
396 views
Can someone show me the best way to develop the image for the ribbon bar start button?
Stefan
Telerik team
 answered on 26 Jul 2012
1 answer
283 views
I have a radgrid filled with data that contains date column
I have applied filter to all the column successfully and its working fine.
I am making a report based on radgrid data and I want to show on report From and To dates that has been entered into filtering date columns.

How can I get those two dates that I entered while filtering a date column?
Stefan
Telerik team
 answered on 26 Jul 2012
3 answers
175 views
Hi telerik ,

i  have downloaded the free trail of latest winforms controls. after installation am getting the below error


I tried uninstalling the controls and installed 3 times ,facing the same issues .also i couldn't able to delete this controls from GAC saying some user using this ..please guide me to use the latest version... waiting for the reply.
Thanks.
Dev.
Stefan
Telerik team
 answered on 26 Jul 2012
1 answer
132 views

Hello
i'm using the 2012 Q2 release and when i try to use the value from maskededitbox it doesn't works
if i have this mask: 000-000-0000 and used the value property it will bring me the same mask

and in the RadGridView if i use the Mask Column no matter what kind of mask i tried to use it doesn't works

thanks

Peter
Telerik team
 answered on 26 Jul 2012
3 answers
387 views
I have a schedule control and a calendar control on a form.

When a user clicks on a cell in the schedule control (in timeline view), the calendar updates to show, as specialdays, all the days for the month that has the day in it that the user selected.

The specialdays and focusedDate have a very similar colour and I want to recolour the special days and focuseddate colours so they are easily identifiable.

Ive started changing the special days color, but when a user clicks in a different scheduler cell, the background color of the calendar remains how it was set previously.

I'm using the ElementRender event of the calender control to see if its a special day, and if it is colour it. I'm not sure how to reset it if it isnt.

Code below, and any help greatly appreciated.


private void Calendar_ElementRender(object sender, RenderElementEventArgs e)
{
    foreach (RadCalendarDay date in ((RadCalendar)sender).SpecialDays)
    {
        if (e.Day.Date == date.Date)
        {
            e.Element.BackColor = Color.Red;
            return;
        }
    }
}
Stefan
Telerik team
 answered on 26 Jul 2012
2 answers
100 views
Hello,

I have Hyperlink columns and am noticing it's just ignoring the TextAlignment property. I changed the "GridViewHyperlinkColumn" to "GridViewTextBoxColumn" and the TextAlignment works just fine.

var column = new GridViewHyperlinkColumn() { FieldName = sColumnNames[i], HeaderText = sColumnDisplayNames[i],
                                                                            HeaderTextAlignment = ContentAlignment.MiddleLeft, TextAlignment = ContentAlignment.MiddleCenter };
        rgvWidget.Columns.Add(column);
Rahul
Top achievements
Rank 1
 answered on 25 Jul 2012
1 answer
283 views
Hello,
I use RadGridview in my project. I use unbound mode and giving datasource to grid from a collection. I have one gridview template, each row has child rows. In child rows, there is a  GridViewComboboxColumn.

My problem is, i am trying to update child row GridviewComboboxColumn value programmatically on CellEndEdit event of grid. I edit the column, i see its edited in debug, but the changes doesnt display in the cell. Why changes doesnt display, how can i make it display?
Svett
Telerik team
 answered on 25 Jul 2012
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?