Telerik Forums
UI for WinForms Forum
3 answers
145 views
I have a treeview that is using the Office 2010 Black theme, and the expand icons in the treeview always display in a .NET form, but if the same control is opened in a VB6 form, the expand icons do not display. Everything else in the treeview seems to work fine. Have you seen this before?
George
Telerik team
 answered on 10 Jan 2014
3 answers
325 views
I need to detect when the user changes pages by clicking on a tab. If certain conditions are not met, then I want to programmatically cancel the change. I see two events that might allow me to do this.

PageIndexChanging provides a CurrentIndex, NewIndex and Cancel properties. This would seem to do what I want but it does not fire when a page tab is clicked with a mouse.

SelectedPageChanging event does fire when the user clicks on a page tab. However, it does not contain a CurrentIndex, NewIndex or Cancel property. It does not seem to meet my needs.

What event should I use to detect when a user changes page tabs with a mouse and gives me programmatic control over the change?

thanks,
pat
Stefan
Telerik team
 answered on 10 Jan 2014
4 answers
291 views
I have a grid with a role that formats the row in red if a specific decimalcolumn "Balance", calculated at grid initialization, contains a value that is less than 0. This rule is working fine.

private void radGridView1_Initialized(object sender, EventArgs e)
       {
          radGridView1.Columns["Balance"].Expression = "Paid-Due+Expenses";
       }

In particular situations I need to override the above rule manually and to do so I have added a checkboxcolumn bound to the db and I am trying to add a new conditional rule which make the row green if the checkbox is checked. Obviously the status change of the checkboxcolumn happens at runtime.
I have tried in several ways but I cannot get it functional.
How can I change the formatting of the row (to green) at runtime if the checkbox is checked?
George
Telerik team
 answered on 09 Jan 2014
1 answer
164 views
I'm sure I'm doing something wrong here, but I followed the documentation and it still doesn't seem to be working.  All I get is a blank item in my ListView.  Here's the code to recreate my issue.  The columns I've added to the control at design-time are named exactly what they indicate below.

private void LoadFiles(DirectoryInfo dir)
        {
            FileInfo[] files = dir.GetFiles();
 
            this.lvFiles.Items.Clear();
            this.lvFiles.Items.BeginUpdate();
 
            foreach (FileInfo file in files)
            {
                Telerik.WinControls.UI.ListViewDataItem listItem = new Telerik.WinControls.UI.ListViewDataItem();
                 
                this.lvFiles.Items.Add(listItem);
                 
                listItem["Name"] = file.Name;
                listItem["DateTime"] = file.LastWriteTime.ToString();
                listItem["Type"] = "file";
                listItem["Size"] = UtilLib.FileIO.ToByteString(file.Length);
                listItem["Uploaded By"] = "Wango";
                listItem.Tag = file;               
            }
            this.lvFiles.Items.EndUpdate();
        }
Dimitar
Telerik team
 answered on 09 Jan 2014
1 answer
94 views

I have a CommandBar that always displays tooltips when opened from a .NET form, but when the control containing the CommandBar is used in a VB6 form, the tooltips do not display. Have you seen this before?

George
Telerik team
 answered on 09 Jan 2014
2 answers
163 views
How I can change the current time color?
Yaman
Top achievements
Rank 1
 answered on 09 Jan 2014
2 answers
211 views
I need to subtract two date from dateTimeColumns.

I tried in the designer:
DATEDIFFDAY(Periodo, Data_Pagam), in the designer

I tried with the code:

 radGridView1.Columns["Ritardo"].Expression = "Periodo-Data_Pagam";


I keep getting this error:
Invalid Expression:
"Cannot perform '-' operation on System.DateTime and System.DateTime

Please help.
Felice
Top achievements
Rank 1
 answered on 09 Jan 2014
1 answer
166 views

I was looking at the Q2 2013 WinForms Controls demo. In the demo I liked the 'DOCK MDI Parent Form' sample. Where Can I download the sample code for this project?

See attached screen print.

Thanks
WPDemo
Top achievements
Rank 1
 answered on 08 Jan 2014
1 answer
129 views
Hi
i am working asp.net project with c# and i want to print the report or show as PDF to the client. report have Two parameters.
can any body help me in this how to do it.

Thanks
Dimitar
Telerik team
 answered on 08 Jan 2014
3 answers
170 views
Is it possible to set a combobox column to null?  I currently have the following shell of code:

private void RadGV_Records_KeyDown(object sender, KeyEventArgs e)
        {
            if (RadGV_Records.CurrentColumn.GetType().ToString() == "Telerik.WinControls.UI.GridViewComboBoxColumn")
            {
                if (e.KeyCode == Keys.Delete)
                {
                   
                    
                }
            }
        }

Inside the "if (e.KeyCode == Keys.Delete)", I want to set the current combobox value to null or empty, like it is before the user selects anything from the box.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Jan 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?