Telerik Forums
UI for WinForms Forum
5 answers
296 views
I'm writing a time entry program that will require a lot of time pickers on a single form. I have to do some math to add up the hours based on TimeIn and TimeOut for each shift.

I set the control to a default date and time on load. The trouble I'm having is when the user changes a time using the picker, the date reverts to the current date. The result is my date math is wrong. If the TimeIn date and time is set to 10/21/2014 1:00 AM on load and they change the time to 2:00 AM, I'm getting 10/24/2014 2:00 AM, which is a problem for my math.

1) Is there are way to format the radtimepicker to be time only and return a time only value? I don't care about the date portion at all. I'm just using these to get hours worked in a single day.

2) Alternatively, since I'm stashing the times in a database, is there someway to keep the date from changing? I can work with a fixed date for time calculations.

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Nov 2014
3 answers
184 views

Based on the example here - http://www.telerik.com/help/winforms/multicolumncombobox-filtering.html
I cannot get the composite filters to work.  The single filter works fine.

Based on the code below, once I bind the data to the datasource, the DisplayMember is automatically set to the first column, in this case Account.  The documentation says the data is filtered by the DisplayMember field.  So this works fine for the single column filter.

For the composite filter, no filtering takes place.  You can see from the attached debug image that the filter is being set correctly.
  > Is it because the DisplayMember is only set to "Account"?
     > Can it be set to something that would work correctly (eg: Account, Description)?

If the composite filtering does not work, please remove it from the Telerik documentation or detail how to get it to work.  A two column drop down is a pretty simple example.  BTW I am on Winforms v2013.3.1127.40

Thanks!

Dim sSql As String = "Select Account, Description From accounts Order By Account"
cbo.DataSource = tbl
 
'THIS single filter section works fine
cbo.AutoFilter = True
Dim filter As New FilterDescriptor(cbo.DisplayMember, FilterOperator.Contains, "")
cbo.EditorControl.MasterTemplate.FilterDescriptors.Add(filter)
 
'THIS composite filter does not work - duplicated from Telerik example
 
'Dim cmpFilter As New CompositeFilterDescriptor()
'Dim fltMain As New FilterDescriptor(cbo.DisplayMember, FilterOperator.Contains, "")
'Dim fltDesc As New FilterDescriptor("Description", FilterOperator.Contains, "")
'cmpFilter.FilterDescriptors.Add(fltMain)
'cmpFilter.FilterDescriptors.Add(fltDesc)
'cmpFilter.LogicalOperator = FilterLogicalOperator.[Or]
'cbo.EditorControl.FilterDescriptors.Add(cmpFilter)


Dimitar
Telerik team
 answered on 07 Nov 2014
8 answers
205 views
how to load DocumentWindow in invisible mode?

I open the second and subsequent tabs:

Form privatForm= new Form();
privatForm.Dock = DockStyle.Fill;
privatForm.TopLevel = false;
 
DocumentWindow privatDockForm = new DocumentWindow();
privatDockForm.CloseAction = DockWindowCloseAction.Hide;
privatDockForm.Text = tabName;
privatDockForm.Controls.Add(privatForm);
generalFrm.radDock1.AddDocument(privatDockForm);
privatDockForm.Show();
privatForm.Show();

Not running the event PrivatForm_Load until the user activates it... How to force a load of my privatForm without displaying it to the user?
and how to add DocumentWindow in the Dock temporarily without creating a tab?
Dimitar
Telerik team
 answered on 07 Nov 2014
5 answers
187 views
Hey all -

I've played with a few different bits of code to save the Dock controls, and was wondering if I was missing an easy way to save them in the app?

The code dockingManager1.SaveXML(FileName);  and dockingManager1.loadXML(FileName); only saves the dock structure, but not any of the internal controls.

Thanks in advance,
Jim
George
Telerik team
 answered on 07 Nov 2014
1 answer
73 views
Hi,

Need to develop Blog type of window application using telerik controls (either winforms control or WPF control)

It should have following options
1.Information sharing between users and groups
2.Like or Share
3.Reply or comments

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Nov 2014
2 answers
197 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
111 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
124 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
237 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
664 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
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?