Telerik Forums
UI for WinForms Forum
3 answers
3.7K+ views
Hello everybody

I'm using Telerik RadGridView. I'm trying to change the color of one cell depending on the value of another cell. I'm trying to achieve this using this code:

if (e.Column.Name == "colDate" && !string.IsNullOrEmpty(e.CellElement.Value.ToString()))
{
    if (DateTime.Now > DateTime.Parse(e.CellElement.Value.ToString()))
    {
        e.Row.Cells["colColor"].Style.DrawFill = true;
        e.Row.Cells["colColor"].Style.BackColor = Color.Red;
        e.Row.Cells["colColor"].Style.NumberOfColors = 1;
    }
}

But for some reason it doesn't change the color. What I noticed is that when i replace

"e.Row.Cells["colColor"].Style"

with

"e.CellElement"

it changes the color. But I don't want to change the color of the current cell. I want it to change the color of another cell.

Any suggestions? :)
Stefan
Telerik team
 answered on 31 Oct 2014
3 answers
221 views
Dear ,I have your product installed and integrated into Visual Studio 2012 , I am working with UI for WinForms .The question is ;Using the TreeView Visual Studio I was doing this:Dim ret as TreeNode () = Tree.Nodes.Find (node , True) now I want to do the same using the RadTreeView . Can you help me please with this issue , I have several days trying to do this .
Stefan
Telerik team
 answered on 31 Oct 2014
7 answers
2.1K+ views
Hi

I was looking for a way to add items to a radcombobox with a value and a different displayvalue.

For example Display member with Customer Name & Value member with Customer Id

Thanks

Raj
clint
Top achievements
Rank 1
 answered on 31 Oct 2014
3 answers
244 views
The latest release - Q3 2014 - has broken the dropdown control unless we are overlooking something.

Create a RadForm, drop a RadDropDownList control on the form.

Add _8_ items (enough so it goes beyond what shows in the list when you click the drop down) to the dropdown list.

Run the program.

Click the dropdown and you see items 1 through 6, now try to scroll to see items 7 and 8.  The dropdown immediately closes.

Unless we are overlooking something this seems fairly serious as it more or less breaks any app that uses the simplest of dropdown.
Stefan
Telerik team
 answered on 30 Oct 2014
0 answers
109 views
Hi,
I have a main grid on a winform.
When adding rows to it(ONCE) i use a background thread that creates a 2nd grid programmaticlly and adds the rows to it. when it finishes, the main thread calls MainGrid.AddRange(backgroundgrid.rows.toArray()).
It gets the info right, but the values aren't refreshed.
It seems to only refresh when the UNSEEN rows are shown:
When i scroll down the values that weren't shown(below) are correct, when scroll back up it refreshed the grid also.

How do i fix this situation?
NO DB no Dataset no datatable.
Zeev
Top achievements
Rank 1
 asked on 30 Oct 2014
1 answer
102 views
Hi,
I have a radgridview and it has 5 columns and 36 rows
(1 and 2 columns are GridViewTextBoxColumn and
 4 and 5 columns are GridViewComboBoxColumn)
.I wanna add the images as the combobox's items, so I search and
apply the source base on this example.
http://www.telerik.com/forums/gridviewcomboboxcolumn-that-displays-only-icons-images

When I finished the code and run it, some problems happened.

First, in the first picture,
When the scroll of the table is moved down, some cells not conserned with
image combobox display the images(solid dash line image).
I wanna know how to fix that.

Second, in the second picture, when I open and select the
image of comboBox, some texts are shown as figure.
Although these texts are disappeared if I clicked other place,
but I don't want skip that step. (In upper example source, that has same reaction.)
Can I fit that? If it could, I wanna know how to remove that step.

Third picture is about my source.
Please point out my problem.
And if it is possible, I wanna example source about
successful case of my problems.

Thank you.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Oct 2014
3 answers
444 views
I want to sort the grid only on Header click. In sorting when ever we modify the value of the sorted column the rows get auomatically sorted based on the value.
I just want to avoid this auto sorting during modifying the cell values, it should happen only on header click. Is this possible in RadGridView for win form ?
Dimitar
Telerik team
 answered on 30 Oct 2014
6 answers
474 views
Hi,

Is there a sample that shows me how use use a RadGridView in Unbound Mode, 4 Levels deep, using Load-On-Demand?
I found samples for Unbound Mode, samples for Load-On-Demand, but nothing for a combination of the two.

Thanks...
Henri
Top achievements
Rank 1
 answered on 30 Oct 2014
1 answer
99 views
Hi,

I am using the gridview Q1'14 in unbound mode and with load-on-demand.
Populating the grid and loading the child rows in the RowSourceNeeded Event works fine.

Adding new Rows in the MasterTemplate with Rows.AddNew works as well.

But adding a Row in MasterTemplate.Templates[0].Rows.AddNew always returns null.

Am I forgetting something?

Thanks in advance for a qujick response!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Oct 2014
1 answer
129 views
Hi,

I am using the GridView in Unbound Mode, and with load-on-demand.
Populating the grid, and loading the children in RowSourceNeeded works fine.

Adding a record in the mastertemplate with Rows.Addnew works as well.
But adding a record to a child level template with grid.MasterTemplate.Templates[0].Rows.AddNew always returns null.

Am I forgetting something?

Thanks in advance for a quick response!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Oct 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
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?