Telerik Forums
UI for WinForms Forum
2 answers
172 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
149 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
112 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
152 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
1 answer
134 views
I will be really glad if I can get some direction on this:
I have a radGridView in a winform in which I have also 4 decimal columns of which 1 (Balance) is calculated with an expression (Balance=Paid-Due+Expenses). All columns are bound to an sql table.
Id-----Date------Due-----Paid-----Expenses-----Balance

How can I generate a new empty row just below the active row if the value of balance is different than 0?
The problems I have are:
-how to get the value contained in "Balance" of the active row
-how to add a row below the active row

Thanks a lot,
Felice
 
George
Telerik team
 answered on 08 Jan 2014
1 answer
132 views
How do I fix up all the references to Telerik in the courseware solution?   When I build the Getting Started project under Buttons, I get the following errors.  When I expand the references branch in the project all the Telerik references have yellow exclamation points.   Do I need to fix up all the references manually?

FYI, I'm a long time C++ developer who is transitioning to c# so I'm not too familiar with visual studio and C#.


Thanks,



1>------ Build started: Project: GettingStarted (Courseware\Calendar\CS\GettingStarted), Configuration: Debug Any CPU ------
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Telerik.WinControls, Version=2011.2.11.712, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Telerik.WinControls.Themes.Aqua, Version=2011.2.11.712, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Telerik.WinControls.UI, Version=2011.2.11.712, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "TelerikCommon, Version=2011.2.11.712, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Telerik\Courseware\Courseware\Calendar\CS\GettingStarted\GettingStarted\RadForm1.cs(8,7,8,14): error CS0246: The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Telerik\Courseware\Courseware\Calendar\CS\GettingStarted\GettingStarted\RadForm1.cs(9,7,9,14): error CS0246: The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Telerik\Courseware\Courseware\Calendar\CS\GettingStarted\GettingStarted\RadForm1.cs(13,37,13,44): error CS0246: The type or namespace name 'RadForm' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Telerik\Courseware\Courseware\Calendar\CS\GettingStarted\GettingStarted\RadForm1.Designer.cs(112,17,112,24): error CS0246: The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Telerik\Courseware\Courseware\Calendar\CS\GettingStarted\GettingStarted\RadForm1.Designer.cs(113,17,113,24): error CS0246: The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Telerik\Courseware\Courseware\Calendar\CS\GettingStarted\GettingStarted\RadForm1.Designer.cs(114,17,114,24): error CS0246: The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Thanks,


Dimitar
Telerik team
 answered on 07 Jan 2014
2 answers
142 views
I have a GridView with around 6k rows in it.  When I click the column header to sort the rows, some columns are fast (a second or two) and some are very slow (45 seconds or so).  it looks like the difference is that the slow ones only have a tiny number of distinct values in them.  For example my "Name" column is mostly unique per row, and it sorts in a couple second, but my "Excluded" column only shows "No" or "Yes" (about 98% "No" and 2% "Yes") and it takes 45 seconds to sort by. 

It looks like the problem is that your sort algorithm does not deal with this problem scenario well due to almost all the items being identical.  My profiler shows that with the Name column most of the time from HybridIndex.PerformQuickSort is in List.BinarySearch and that GridViewRowInfoComparer.Compare only gets called about 100k times.  But with the "Excluded" column most of the time is in GridViewRowInfoComparer.Compare which is called a whopping 17M times.

I don't think this data scenario is uncommon, so I think there should be some way to handle this.  If I could tell this column to use a different sort algorithm that would be fine. 
John
Top achievements
Rank 1
 answered on 03 Jan 2014
3 answers
122 views
I have set use mnemonic property of LiveTile to true and use ampersand(&) for making the letter mnemonic but its not working.
Ivan Todorov
Telerik team
 answered on 02 Jan 2014
1 answer
129 views
Help...
Ivan Todorov
Telerik team
 answered on 02 Jan 2014
3 answers
191 views
Hi
How can I change the image of center circle in clock, which is in LightVisualElement in hierarchy?

What I mean is, if you pay attention to clock, there is little circle in center of clock, which is an image.

Thanks
George
Telerik team
 answered on 02 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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?