Telerik Forums
UI for WinForms Forum
2 answers
203 views
Hi,

I have a RadGridVIew with a GridViewTextBoxColumn with AcceptsReturn, Multiline, WrapText properties set to true.
When the user hits the return key after typing in a line in this column, I want the row height to increase. This way they can see what they have already typed in and continue typing in.

I have set AutoSizeRows property on the RadGridView to true but this takes affect after editing the cell is finished.

Please help in this regard.


Jack
Top achievements
Rank 1
 answered on 08 Feb 2012
1 answer
125 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
250 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
230 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
628 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
307 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
196 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
284 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
441 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
348 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
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
Iron
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
Iron
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?