Telerik Forums
UI for WinForms Forum
1 answer
143 views
Hi,

I get this exception trying to filter a column on a radgridview setup as "Excel-like" mode.

The colum shows the "Duration" and it is a "TimeSpan" databind type.

Any help would be appreciated.

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Nov 2014
3 answers
557 views
Hi there.

I'm currently evaluating Telerik for an upcoming personal project.

The attached image is a very crude mock up of the type of look I'd like to achieve with the list view control, but I'm running into a few walls. Most other controls I've been able to work my way around but no so far with ListView.

I'm the control to show all items in ViewType ListView, Each item will have a thumb nail image, and I'd like to display a main header text (Series Name) with associated sub text of differing fonts and sizes. This is where I'm stumbling, any assistance would be greatly appreciated.

Stefan
Telerik team
 answered on 10 Nov 2014
5 answers
318 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
219 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
236 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
209 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
91 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
220 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
129 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
147 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
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?