Telerik Forums
UI for WinForms Forum
8 answers
1.2K+ views
Hi,

Is it possible to add conditional formatting to a column which detects when a cell value is null (DBNull)? I want to highlight cells in my grid that are mandatory but haven't yet been populated. I have tried adding a ConditionalFormattingObject with ConditionTypes.Equal and tried "", null and DBNull.Value.ToString() but none triggered the formatting.

I have managed to get this working by using the CellFormatting event (thanks to help from this forum). Here I am able to check the cell value for DBNull and apply the following formatting;

                e.CellElement.BackColor = Color.Red;
                e.CellElement.DrawFill = true;

However this paints the cell backcolour red with a fade out - i.e. not blanket red which is what I want. Is this a setting somewhere, or part of the theme? If I use conditional formatting (tested with a non-null value) the cell is painted in plain red - i.e. no fading.

Therefore I would like to get the conditional formatting working with the null values - since this gives the formatting I require.

Thanks in advance,
Ben

Jack
Telerik team
 answered on 23 Feb 2009
1 answer
92 views
Hi,

When using RibbonBar I would expect the title bar of the form to disappear since it is redundant.
This can only be done with regular form (setting the FormBorder to NONE). When using RadForm, the title bar is always there, which again, to me, seems to be redundant.

Is there a way to do it when using a RadForm? Can it be set through a property of the ribbon bar?

Thanks,
Roy
Nick
Telerik team
 answered on 23 Feb 2009
8 answers
688 views
I am extending both RAD Tree view and RAD Tree node in to custom controls for business purposses.
And populating/adding nodes to custom tree view at runtime.

I am not able to high light (Back color) the selected node in the tree. Im setting the Theme to ControlDefault on my CustomTree view, but this doenst seem to take effect .

Any thoughts how i can high light selected nodes on RAD tree view ? Im extending the controls only for business reason, i didnt modify a thing in their actuall behavior. Or Is there anything specific that i need to do, to get the themes going on a extended RAD Treeview control ?

thanks in advance

Arun

Nikolay
Telerik team
 answered on 23 Feb 2009
1 answer
127 views
Hi,

I have added few items in my listbox, and there is one panel which allow drop property is true.

I have handled MouseDown event of listbox and checked if any item is selected if yes then I am calling DoDragDrop() method and passed approprite data. And my panel accepts those data.

Now I think as I have handled mousedown event of listbox, I cannot select another Item (the item that is already selected cannot be changed) !

I think I should not handle MouseDown event, is there any alternative !
Or there must have ItemDrag event, just like we have in System.Windows.Forms.ListView !

Regards,
Divyesh Chapaneri
Nikolay
Telerik team
 answered on 23 Feb 2009
3 answers
92 views
I use RadTreeView, and a RadDropDownMenu assosiated with it.

I would like the drop down menu NOT to be shown for nodes at level 0, but I haven't figured out how to do this. Any ideas?

Also, the drop down menu appears if I right click to the right of the nodes in the tree view. Is there a way to check whether the user has clicked on the actual node?

Thank you!
Victor
Telerik team
 answered on 23 Feb 2009
1 answer
127 views
Hi,

How do i bind the IsVisible property of GridView columns to the items in a CheckedListBox.

I need to do the reverse of....

CheckBox1.DataBindings.Add(New System.Windows.Forms.Binding("Checked", Me.RadGridView1.Columns(0), "IsVisible", True)) 

.....so Checking/Unchecking listbox items will Show/Hide columns in a gridview.
Jack
Telerik team
 answered on 23 Feb 2009
1 answer
96 views
i have multiple tabs and only 1 radprogressbar. the question i have is how to display it in one tab and when the user click on the second tab, the radprogressbar is also available on that second tab two. please help thank you.
Nikolay
Telerik team
 answered on 23 Feb 2009
1 answer
70 views
Dear All,

I have a master grid view that displays a hierarchical child. However, the child window always displays below it a blank line, supposedly I believe the place whre the horizontal scroll bar would appear, and I am trying to find a way how to get rid of it. Setting different options like horizontalscrollebar always hidden does not do the trick. Any ideas anyone?

Thank you in advance,

George
Jack
Telerik team
 answered on 23 Feb 2009
3 answers
73 views
I have used RadPanelbar in my win form. I have added 4 groupbar elements. When I click on first most element entire bottom area gets hidden automatically. i.e. the 4 elements and area below it inside radpanel. Am I missing any property to set for this? I am using OutlookNav Pane for this. Thank you.
Deyan
Telerik team
 answered on 23 Feb 2009
6 answers
1.5K+ views
i have a normal radcombobox (not multicolumn), and i populate it using the textchanged event , through a stored proc that searches on text entered,  the stored proc and datalayer returns an custom object collection and it fills the radcomboo correctly. i cannot use the autocomplete mode as the amount of data that will eventually be in the combobox will be very cumbersome, as well as the search is not a simple text search as it searches on more than one column in the Database.
however now when i select an item in the combobox either by pressing down or by selecting an item with the mouse it then selects that item and puts the text into the radcombo.text field, however it is my understanding that the event that fires this off is the selectedvalue changed? however the text changes and txtchanged is run before selectedvaluechanged  and this is causing problems for me? is this the correct order of events firing and if so how can i get around this ?

here is sample of similar code
   private void rcboInfo_TextChanged(object sender, EventArgs e) 
        { 
            List<InfoComboDetails> allInfos = controller.GetInfoBySearchString(searchstr); 
            foreach (info i in allInfos) 
            { 
 
                RadComboBoxItem rcbi = new RadComboBoxItem(i.Column1 + " - " + i.colum2 , i.ID); 
                rcboInfo.Items.Add(rcbi); 
            } 
              
        } 
 
 private void rcboInfo_SelectedValueChanged(object sender, EventArgs e) 
 { 
rcboinfo2.SelectedValue = controller.GetInfo2ByInfoID((int)rcboInfo.SelectedValue).ID; 
 

Roy
Top achievements
Rank 1
 answered on 23 Feb 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
CheckedDropDownList
ProgressBar
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
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?