Telerik Forums
UI for WinForms Forum
1 answer
113 views
Is it possible to use the Calendar control and to setup a meeting... without multiple attendees? It can be an appointment, but I need to be able to assign people to it.

Thanks in advanced for any help.
Ivan Todorov
Telerik team
 answered on 08 Feb 2012
2 answers
229 views
Hi,

I use the scheduler to view workhours for a work watch/shift.
But i dont want the user to be able edit the appointment. I dont want to view the Appointment dialog when the user double click the watch.. or any other place in the scheduler.. how can i disable this feature?

Regards
Svein Thomas
Ivan Todorov
Telerik team
 answered on 08 Feb 2012
5 answers
221 views
I think I found a bug in the latest realease 2011.3.11.1219 that causes the UserAddedRow event not to fire..  Found this after upgrading a large project and critical events that occur after a user completes adding a new row no longer fired.

This is not confined to my project as it can be reproduced easily in new projects.

To reproduce you just need a bound grid with the new row position set to bottom, then hook the UserAddingRow event.  The event will never fire.  Change the new row position back to default (Top) and the event fires.

This doesn't appear to affect any other events including the UserAddingRow event, only UserAddedRow.

// Change new row position to bottom
this.radGridView1.AddNewRowPosition = SystemRowPosition.Bottom;
// Add an event for UserAddedRow
this.radGridView1.UserAddedRow += new GridViewRowEventHandler(radGridView1_UserAddedRow);
 
// Event will not fire
 void radGridView1_UserAddedRow(object sender, GridViewRowEventArgs e)
        {
            throw new NotImplementedException();
        }

Stefan
Telerik team
 answered on 08 Feb 2012
3 answers
614 views
Hi, i have here a winform that uses the Telerik.ReportViewer.WinForms.ReportViewer() control to print some letters.

I need a solution to log the print action in a database, i have add a print event, but its not captured :(

here the code:

private void testPrint()
{
 Telerik.ReportViewer.WinForms.ReportViewer viewer = new Telerik.ReportViewer.WinForms.ReportViewer();
 viewer.Print += new System.ComponentModel.CancelEventHandler(this.viewer_Print);
 Report_Password report = new Report_Password();
 viewer.ShowExportButton = false;
 viewer.ShowHistoryButtons = false;
 viewer.ShowPageNavigationControls = false;
 viewer.ShowPageSetupButton = false;
 viewer.ShowParametersButton = false;
 viewer.ShowStopButton = false;
 viewer.ShowZoom = false;
 viewer.ShowRefreshButton = false;
 viewer.ZoomMode = Telerik.ReportViewer.WinForms.ZoomMode.FullPage;
 viewer.Dock = DockStyle.Fill;
 viewer.Report = report;
}

 void viewer_Print(object sender, CancelEventArgs e)
{
 // Not caputred here :(
// Log to DB
}

how can i capture this?

Thank you
Volkan

Richard Slade
Top achievements
Rank 2
 answered on 08 Feb 2012
3 answers
291 views
The guide below shows an example for one series (in the example, one list of Products):
http://www.telerik.com/help/winforms/chart-building-radcharts-data-binding-radchart-to-a-generic-list-of-objects.html

How would I data-bind multiple series to a chart (in the example, more than one list of Products)?
Petar Marchev
Telerik team
 answered on 08 Feb 2012
2 answers
180 views
Hello,

I was wondering if it was possible to have a footer at the bottom of the timeline view.  For example, it could show the number of appointments in that day or month.
Ivan Todorov
Telerik team
 answered on 08 Feb 2012
3 answers
263 views
Hi Everyone!

I started using the RadGridView. The grid is populated by a DataTable containing string, boolean and guid values for the different rows.

I mapped the guid columns to GridViewComboBoxColumns whose DataSources are DataTables containing the Description for the Guids (see code).

DataTable data = DbTools.GetExistingFawisGroups();
DataTable clGroups = DbTools.GetBBlockGroups();
DataTable clCategories = DbTools.GetBBlockCategories();
 
GridViewComboBoxColumn colGroup = new GridViewComboBoxColumn();
colGroup.Name = "columnGroupId";
colGroup.HeaderText = "Gruppe";
colGroup.FieldName = "bBlockGroupId";
colGroup.ValueMember = "id";
colGroup.DisplayMember = "descript";
colGroup.DataSource = clGroups;
this.radGridView.Columns.Add(colGroup);
 
GridViewComboBoxColumn colCat = new GridViewComboBoxColumn();
colCat.Name = "columnCategoryId";
colCat.HeaderText = "Kategorie";
colCat.FieldName = "bBlockCategoryId";
colCat.ValueMember = "id";
colCat.DisplayMember = "descript";
colCat.DataSource = clCategories ;
this.radGridView.Columns.Add(colCat);
 
this.radGridView.DataSource = this.data;
this.data.AcceptChanges();

Now filtering (GridView standard filters) for all columns except the mapped guid columns is working fine. When i click on the filter icon in the column headers of the guid columns, i see the descriptions representing the guids and can select them. But by clicking ok i get the following exeption:

Telerik.Data.Expressions.ParserException: Missing operator before a operand.
   bei Telerik.Data.Expressions.ExpressionParser.TryParse(Boolean enableExceptions, ExpressionNode& expressionNode)
   bei Telerik.Data.Expressions.ExpressionParser.Parse(String expression, Boolean caseSensitiveLike)
   bei Telerik.WinControls.Data.RadCollectionView`1.set_FilterExpression(String value)
   bei Telerik.WinControls.UI.GridViewFilterDescriptorCollection.ApplyFilter()
   bei Telerik.WinControls.UI.GridViewFilterDescriptorCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   bei Telerik.Collections.Generic.NotifyCollection`1.InsertItem(Int32 index, T item)
   bei Telerik.WinControls.UI.GridViewFilterDescriptorCollection.InsertItem(Int32 index, FilterDescriptor item)
   bei System.Collections.ObjectModel.Collection`1.Add(T item)
   bei Telerik.WinControls.UI.GridViewDataColumn.SetFilterDescriptor(FilterDescriptor value)
   bei Telerik.WinControls.UI.RadListFilterMenuProvider.SetFilterDesriptor(GridViewDataColumn dataColumn, FilterDescriptor descriptor)
   bei Telerik.WinControls.UI.RadListFilterMenuProvider.SetFilterDescriptor(FilterDescriptor descriptor)
   bei Telerik.WinControls.UI.RadListFilterMenuProvider.ButtonOK_Click(Object sender, EventArgs e)
   bei System.EventHandler.Invoke(Object sender, EventArgs e)
   bei Telerik.WinControls.RadItem.OnClick(EventArgs e)
   bei Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
   bei Telerik.WinControls.RadItem.DoClick(EventArgs e)
   bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   bei Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
   bei Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
   bei Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   bei Telerik.WinControls.RadControl.WndProc(Message& m)
   bei Telerik.WinControls.UI.RadPopupControlBase.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   bei System.Windows.Forms.Application.RunDialog(Form form)
   bei System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   bei System.Windows.Forms.Form.ShowDialog()
   bei SuS.Tobs.Forms.Mainframe.buttonItemFawisGroupEdit_Click(Object sender, EventArgs e) in D:\Entwicklung\C#\Projects\tobs\Project\SuS.Tobs\Sources\Forms\Mainframe.cs:Zeile 580.
   bei DevComponents.DotNetBar.BaseItem.RaiseClick(eEventSource source)
   bei DevComponents.DotNetBar.BaseItem.InternalMouseUp(MouseEventArgs objArg)
   bei DevComponents.DotNetBar.PopupItem.InternalMouseUp(MouseEventArgs objArg)
   bei DevComponents.DotNetBar.ButtonItem.InternalMouseUp(MouseEventArgs objArg)
   bei DevComponents.DotNetBar.BaseItem.InternalMouseUp(MouseEventArgs objArg)
   bei DevComponents.DotNetBar.ItemContainer.InternalMouseUp(MouseEventArgs objArg)
   bei DevComponents.DotNetBar.ItemControl.OnMouseUp(MouseEventArgs e)
   bei DevComponents.DotNetBar.RibbonBar.OnMouseUp(MouseEventArgs e)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   bei System.Windows.Forms.ContainerControl.WndProc(Message& m)
   bei DevComponents.DotNetBar.ItemControl.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   bei System.Windows.Forms.Application.Run(Form mainForm)
   bei SuS.Tobs.Application.Program.StartApplication(SplashScreenForm form) in D:\Entwicklung\C#\Projects\tobs\Project\SuS.Tobs.Application\Sources\Common\Program.cs:Zeile 142.

The exeption "Missing operator before a operand" always contains a part of the guid, in this case it's just the "a", but it's always different an definitly a part of the guid.

What can i do to make filtering work for all my columns in the grid view? The posting (http://www.telerik.com/community/forums/winforms/gridview/cannot-use-a-guid-as-a-valuemember-with-filtering-on-radgridview.aspx) seems to point to the same problem, but doesn't solve my problem because by appling the described solution none of my filterings are working any more.

Kind Regards,
Michael
Julian Benkov
Telerik team
 answered on 08 Feb 2012
2 answers
427 views
Hello,

In order to change the border color of the TextBox i use:
textBox1.TextBoxElement.Border.ForeColor = Color.Red;
How can i achieve this using data binding?

Looking forward to your reply.      
Boryana
Telerik team
 answered on 08 Feb 2012
6 answers
327 views
Hi,

I need to hide the MDIButtons (Minimize, Restore/Maximize, Close buttons) of RadRibbonBar in RadRibbonForm. I tried using this code (radRibbonBar1.RibbonBarElement.MDIbutton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;) but it always shows whenever I resize or maximize the form or show another child form. I attached a screen shot.

Many thanks,

Ian

Edit: I'm using version 2011.1.11.315
Ian
Top achievements
Rank 1
 answered on 08 Feb 2012
2 answers
167 views
Hi,

I would like to programmatically get to some of the hidden properties that I can see in the Element Hierarchy Editor, but don't see an obvious way to do so.

For instance, a RadButton has a root element and then a Fill Primitive, Layout, Focus, Border, etc. Drop down lists have other goodies in there. How does one get there in c#?

Is it something like this, but then casting it to something else? For instance..
(FillPrimitive) btnFoo.RootElement.children[0]

It would be really nice to know how to navigate the tree because there are a lot of properties that we could take advantage of.
Thanks.
Jason



Richard Slade
Top achievements
Rank 2
 answered on 08 Feb 2012
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?