Telerik Forums
UI for WinForms Forum
2 answers
233 views
Hi,

I am trying to apply cell color depending to the text value of a cell in a row, but I does not works.

What I am doing wrong?

I am following the telerik example:

http://www.telerik.com/help/winforms/gridview-cells-formatting-cells.html

Here is my code that I invoke after pupulate data by a datasource binding list.

private void RefreshColorsOfResultsInGrid()
{
    this.radGridViewControl.BeginInit();
 
    foreach (GridViewRowInfo row in this.radGridViewControl.Rows)
    {
        GridViewCellInfo cell = row.Cells["ResultAsString"];
 
        if ((cell.Value.ToString().ToUpper() == "NEW") || (cell.Value.ToString().ToUpper() == "NEW*"))
        {
            cell.Style.CustomizeFill = true;                   
            cell.Style.DrawFill = true;
            cell.Style.ForeColor = Color.Green;
            cell.Style.Font = new Font("Arial", 8, FontStyle.Bold);                   
        }
        else if ((cell.Value.ToString().ToUpper() == "OLD") || (cell.Value.ToString().ToUpper() == "OLD*") )
        {
            cell.Style.CustomizeFill = true;
            cell.Style.DrawFill = true;                   
            cell.Style.ForeColor = Color.Red;
            cell.Style.Font = new Font("Arial", 8, FontStyle.Bold);
        }
        else
        {
            cell.Style.CustomizeFill = true;
            cell.Style.DrawFill = true;
            cell.Style.ForeColor = Color.Black;
        }
    }
 
    this.radGridViewControl.EndInit();
    this.radGridViewControl.Refresh();
 
}
Stefan
Telerik team
 answered on 07 Nov 2014
2 answers
135 views
Hi,

I would like to generate a dynamic graphic chart linked to a normal radGridview, which would be automatically generated as a function of the value of certain columns.

Somebody have made this before? any example available?

I have been looking the radpivotGrid that has this feature natively but I have to use the radGridView.

Thanks

Francisco
FMorales
Top achievements
Rank 1
 answered on 06 Nov 2014
2 answers
149 views
Hi there, 
I am new with telerik controls fro WINFORM

First: I want to save the appointment added to RadSCHEDULER into database using DataTable and not DataSet as my database can't be attached in the Project. As it will be on a SERVER.

Second: I want to retrieve the data of SCHEDULER from database to reload this data in RadSCHEDULER.

How can i do that?

Thanks alot
George
Telerik team
 answered on 05 Nov 2014
8 answers
338 views
Hello,

I need to develop MDI based application, I wish to make the RadDock interface to works like VS2010:
I want to have a single main Documents Tab Area and two view tool windows:
1) How can I make the RadDock to have only single tab documents area? I do no want to allow the user to create another tab documents areas (by dragging) - exactly like in VS2010 - there is only one tab documents area at all times
2) I also wish to allow the user to drag the documents as a float windows but without been able to re-dock it to other areas then the main  tab documents area

Thank you!
Dimitar
Telerik team
 answered on 04 Nov 2014
15 answers
744 views
Hi,

         I am trying to achieve filtering of multicolumn combobox inside the gridview..Can you give me an idea how to do it?

Thanks
Ralitsa
Telerik team
 answered on 04 Nov 2014
11 answers
229 views
is there a better event to use than AppointmentResized for resize appointment changes?  this even seems to fire every block the resize hits instead of once when the user finishes resizing the control.  I need to save off the new time for the appointment when they get done resizing.  saving it 5 times as they drag it bigger isn't good.

Thanks.
Stefan
Telerik team
 answered on 04 Nov 2014
1 answer
301 views
Hi,

I've looked at the previous answers on this one such as http://www.telerik.com/forums/open-a-windows-form-in-tabbed-document however this doesn't do the trick for me. The goal is to design controls for a new document window and load that with details when the user double clicks on a list item to edit and view it in detail. When I try adding it as such:

            detailsForm _detailsForm = new detailsForm(listitem);
            _detailsForm.Dock = DockStyle.Fill;
            _detailsForm.TopMost = false;
            _detailsForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            _detailsForm.Show();
            this.documentWindow1.Controls.Add(_detailsForm);

I get the below exception:

System.ArgumentException was unhandled by user code
  HResult=-2147024809
  Message=Top-level control cannot be added to a control.
  Source=System.Windows.Forms
  StackTrace:
       at System.Windows.Forms.Control.ControlCollection.Add(Control value)
.....

Any ideas why?
 
Dimitar
Telerik team
 answered on 03 Nov 2014
4 answers
578 views
Hi,

I am having a problem with grouping feature, if a try to group by a column, the grid perform the grouping but it does not group rows with same colum value, so, it creates a gruping row for each row in the group with the same value in the grouping column.

Additionaly, no value of the grouping is shown in the grouping row, it shows "Column_name: " and nothing behing ":"

I have upload a picture where I am trying to group by "Product Version", but grid do not agrupate for example the values "31.3.0.1.b4" as same value, I have try with other columns and other values and I have always same result.

any help would be very appreciated.

Thanks
George
Telerik team
 answered on 03 Nov 2014
4 answers
271 views
Hi

anybody knows if the grid support to move rows natively with the mouse?

I need to click with the mouse on a groups of rows and move them to another position in the same grid (drag and drop)

Could anybody share an example?

Thanks a lot.

Francisco
FMorales
Top achievements
Rank 1
 answered on 03 Nov 2014
8 answers
251 views
Hello

I have installed telerik 2011 Q2 however when i try find my chart to drag onto my winform there is no RadChart to drag on.
Am I looking in the wrong place or what is going wrong.

Thanks
Stef
Telerik team
 answered on 03 Nov 2014
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
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
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?