Telerik Forums
UI for WinForms Forum
3 answers
212 views
Hi,

Is there a way to View/Add Column Summaries
at the buttom of the grid.

(Not Grouped columns)

Thanks.
Jack
Telerik team
 answered on 30 Jul 2008
9 answers
265 views
I am using a Binding List to store some data.
I attach it to the the grid via DataSource.
Data displays properly.
However, when I click on add new row and enter in some data, I can't get the data to persist in my collection.
Do I need to wire up an event and handle this on my own?  or am I doing something else wrong?

Thanks,
Eric
Nikolay
Telerik team
 answered on 30 Jul 2008
5 answers
253 views
Is there a way, using Q4 2006 to collapse the whole QuickAccessToolbar or items within it?  Apparently the properties of items within the menu can not have the visibility property set to Collapse like the chunks.  The hide would work except it doesnt actually hide the item, it leave a blank space where it would go and it still is available on the drop down arrow at the end of the toolbar.  Here is the example I am trying to accomplish:

Making a developer tool which needs to log in to a database.  Once logged in I will show all the necessary ribbon chunks which contain tools.   I also want a Disconnect button.  The orb menu is a good place but I do not like the way it looks compared to the chunks so I want it on the QuickAccessToolbar.  I can not show or hide the Disconnect button based on the users status.

Any suggestions?
Nikolay
Telerik team
 answered on 30 Jul 2008
1 answer
101 views
I am using the menu and the tab controls in my windows application.

I like the appearance of an existing theme (Control Default), but I want to change the way the control appears during state changes.  Specifically:

1. I do not want state changes of mouse over to affect the tab or menu controls
2. I only want the background color and font style to be affected when the tab is the currently selected (visible) tab.

The states that seem to be associated with the tab control are:
(!IsMouseOver and !IsSelected)
(IsMouseOver and !IsSelected)
(IsSelected and IsMouseOver)
(IsSelected and !IsMouseOver)
(InitialState)

I have made some attempts to make changes, but so far they have not had the desired effect.

Can you please tell me what states I should use for the behavior I am looking for, and which elements I need to assign these states to?

Thanks very much!
Meryl
Peter
Telerik team
 answered on 30 Jul 2008
1 answer
247 views
I am trying to use the RadDataGrid view, with the autoGenerateColumn Property set to false, I added three columns as follows.          

radGridView1.Columns.Add(new
Telerik.WinControls.UI.GridViewDataColumn("ProductId"));
radGridView1.Columns.Add(new Telerik.WinControls.UI.GridViewDataColumn("ProductName"));
radGridView1.Columns.Add(new Telerik.WinControls.UI.GridViewDataColumn("UnitPrice"));

and then i bounded the data source to list<Products>

When I run the application and try to edit any of the fields or if I try to type in the filter box the application crashes with the following exception. While investigating the problem I found out that the default editor for the columns is never instantiated and is set to null

radGridView1.Columns["ProductId"].GetDefaultEditor()==null

Sample Code
-----------

  public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }

 

        private void Form1_Load(object sender, EventArgs e)

        {

            radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false; //disable auto generate columns

            radGridView1.EnableFiltering = true; //enable filter           

            radGridView1.MasterGridViewTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;

            //Add columns

            radGridView1.Columns.Add(new Telerik.WinControls.UI.GridViewDataColumn("ProductId"));

            radGridView1.Columns.Add(new Telerik.WinControls.UI.GridViewDataColumn("ProductName"));

            radGridView1.Columns.Add(new Telerik.WinControls.UI.GridViewDataColumn("UnitPrice"));           

            //Bind data           

            radGridView1.DataSource = GetProductList();

        }

        public List<Product> GetProductList()

        {

            var products = new List<Product>();

            products.Add(new Product("PRD-001", "Betty Crocker® Angel Food Cake Mix", 8.65));

            products.Add(new Product("PRD-002", "Betty Crocker Complete Desserts®", 8));

            products.Add(new Product("PRD-003", "Betty Crocker® Cookie Mix", 1.25));

            products.Add(new Product("PRD-004", "Betty Crocker® Frosting", 4.00));

            products.Add(new Product("PRD-005", "Betty Crocker® Sunkist® Lemon Bars", 10.00));

            products.Add(new Product("PRD-006", "Betty Crocker® Supreme Brownie Mix", 2.00));

            products.Add(new Product("PRD-007", "Betty Crocker® Variety Dessert Mixes", 3.55));

            products.Add(new Product("PRD-008", "Betty Crocker® Warm Delights® Desserts", 4.49));

            return products;

        }

    }

    public class Product

    {

        public Product()

        {

        }

        public Product(string id, string name, double price)

        {

            this.ProductId = id;

            this.ProductName = name;

            this.UnitPrice = price;

        }

        public string ProductId { get; set; }

        public string ProductName { get; set; }

        public double UnitPrice { get; set; }

    }

EXception Detail
-----------------------
System.ArgumentNullException was unhandled
  Message="Value cannot be null.\r\nParameter name: key"
  Source="mscorlib"
  ParamName="key"
  StackTrace:
       at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
       at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
       at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
       at Telerik.WinControls.UI.GridViewEditManager.GetDefaultEditor(IEditorProvider provider)
       at Telerik.WinControls.UI.BaseGridBehavior.InitializeEditor(RadGridView grid, GridViewColumn column)
       at Telerik.WinControls.UI.GridDataCellElement.item_Click(Object sender, EventArgs e)
       at Telerik.WinControls.RadItem.OnClick(EventArgs e)
       at Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
       at Telerik.WinControls.UI.RadMenuItemBase.OnClick(EventArgs e)
       at Telerik.WinControls.UI.RadMenuItem.OnClick(EventArgs e)
       at Telerik.WinControls.RadItem.DoClick(EventArgs e)
       at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
       at Telerik.WinControls.RadElement.CallDoMouseUp(MouseEventArgs e)
       at Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at Telerik.WinControls.RadControl.WndProc(Message& m)
       at Telerik.WinControls.UI.RadPopupControl.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at RadGridViewTest.Program.Main() in C:\Documents and Settings\ddebela\My Documents\Visual Studio 2008\Projects\RadGridViewTest\RadGridViewTest\Program.cs:line 17
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

Jordan
Telerik team
 answered on 30 Jul 2008
1 answer
163 views
Hi,

I am attempting to apply the Office2007BlackTheme from the Q2 2008 toolbox with no luck.

I can't find any information in the documentation on how to set my RadForm to this theme. In Q1 the theme was available straight from the ThemeName property on the form.

Thanks

Charles
Peter
Telerik team
 answered on 30 Jul 2008
1 answer
167 views
We are evaluating rad controls.  In the examples I noticed a property on the grid called "EnableHotTracking".  I am looking around for an explanation of that property.  But I couldn't find in the documentation other than the MSDN style help documentation which doesn't say nothing about that property.

Is there any detailed documentation that helps to reduce the learning curve on using these controls?


Nikolay Dobrev
Telerik team
 answered on 30 Jul 2008
4 answers
209 views
Hi,
i have created a Custom control from RadControl.
It has items (following the magnify example) but when theming:
a) the control dissapears when opening themebuilder (very strange)
b) all the subitems (no matter what type they are) gets the same theme as the parent (if the parent is themed as a button, all subitems gets this theme, even if they are radimages or checkboxes)..
Is there any way to create a custom theme item for this elements (they don't have the themename property) so i can give them a diferent look as the father?
Thanks in advance!
Angel
Telerik team
 answered on 29 Jul 2008
1 answer
530 views
Hello,

Is there other way to change font size for all controls in application, then looping through all containers ?

Let say that Ive changed RadTextBox font size from 10 to 20, after this control will change its height and cover controls under it. How can i keep constant spaceing between controls ?
Angel
Telerik team
 answered on 29 Jul 2008
2 answers
148 views
Hi,
i'm creating a custom control (following the magnify demo), but even when the "autoscroll" property is set, it does nothing for RadItems inside the container, only for "external" controls i placed over the control.
Is there any way to activate the scroll for this items created by the control itself?
Thanks in advance..
Angel
Telerik team
 answered on 29 Jul 2008
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
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?