Telerik Forums
UI for WinForms Forum
2 answers
185 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
269 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
431 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
331 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
174 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
6 answers
170 views
Hello..
I want to know how many rows there are in the visible area in gridview..
how can I do that?

this is for controlling load of rows.. to get better performance..
I want to load 30 rows each scrolling..
yair
Top achievements
Rank 1
 answered on 07 Feb 2012
2 answers
221 views
Hello together,

I'm having some difficulties with a RadListView. My RadListView has 3 Columns: 1 for displaying an icon, 1 for a filename and the third for the author.
My problem is, that only the first column is displayed and all the text columns are empty. I don't know why. Perhaps someone of you can help. Here is the code:

ImageList MyImageList = new System.Windows.Forms.ImageList();
       
MyImageList.Images.Add(global::Test_SharePoint_DocumentList.Properties.Resources.icgen);
 
MyImageList.ImageSize = new Size(16, 16);
 
lst_Files.ViewType = Telerik.WinControls.UI.ListViewType.DetailsView;
lst_Files.ShowGridLines = true;
lst_Files.FullRowSelect = true;
lst_Files.Columns.Add("File","File");
lst_Files.Columns.Add("Filename", "Filename");
lst_Files.Columns.Add("Author", "Author");
lst_Files.Columns[0].Width = 30;
lst_Files.SmallImageList = MyImageList;
 
foreach(Microsoft.SharePoint.SPFile file in files)
{
  for (int j = 0; j < MyImageList.Images.Count; j++)
  {
    Telerik.WinControls.UI.ListViewDataItem item2 = new Telerik.WinControls.UI.ListViewDataItem();
    item2.Image = global::Test_SharePoint_DocumentList.Properties.Resources.icgen;
    item2.ImageIndex = j;
    item2.Tag = mysite.Url + "/" + file.Name;
 
    Telerik.WinControls.UI.ListViewDataItem item3 = new Telerik.WinControls.UI.ListViewDataItem();
    item3.Text = file.Name;
    item3.Value = file.Name;
 
    Telerik.WinControls.UI.ListViewDataItem item4 = new Telerik.WinControls.UI.ListViewDataItem();
    item4.Text = file.Author.ToString();
    item4.Value = file.Author.ToString();
 
    Telerik.WinControls.UI.ListViewSubDataItemCollection subcol = new Telerik.WinControls.UI.ListViewSubDataItemCollection(item2);
    subcol.Add(item3);
    subcol.Add(item4);
 
    lst_Files.Items.Add(item2);
  }
  Count++;
}

And that's how it looks like in debug (see attachment):


Boryana
Telerik team
 answered on 07 Feb 2012
2 answers
194 views
Hi,

I have enabled the Excel like filtering, but every time I change the DataSource on the radGridView, the filter for a column is not updated. I have tried to clean the filters using:

MasterTemplate.FilterDescriptors.Clear();

MasterTemplate.FilterExpressions.Clear();



But those collections are empty, since I'm not creating my own filters. Any help will be appreciated.
Thanks
Stefan
Telerik team
 answered on 07 Feb 2012
5 answers
261 views
Hi,
I am trying to group my gridview data by a nested object like this:

DataSource = List<Person>

GroupExpression: Address.Suburb as Sub Group By Sub

This results in the data being correctly sorted but the grid will not display any group headers. Is there a way to do this?

thanks
Stefan
Telerik team
 answered on 07 Feb 2012
1 answer
126 views

 

I can’t find desktop alert control on my tray. Could you  give me name of dll file

 Then i can browse to the tray

Stefan
Telerik team
 answered on 07 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
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
ProgressBar
CheckedDropDownList
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?