Telerik Forums
UI for WinForms Forum
1 answer
112 views
**Update**
Issue arrises on Vista Business and Win2k3 but not XP (only 3 OS's tested so far)

Double clicking on a forms title bar to maximise the form causes the Gridview's CellClick event to fire.

This will only happen if the mouse is hovering over a row in the grid after the form is maximised.

The CellClick event doesn't fire if you maximise the form with the top right form button.

using System;
using System.Data;
using System.Windows.Forms;

namespace GridTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void radGridView1_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
        {
            DoStuff();
        }
        private static void DoStuff()
        {
            MessageBox.Show("Fired from CellClick");
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable("Stuff");

            DataColumn dc = new DataColumn {DataType = typeof (string), ColumnName = "1"};
            dt.Columns.Add(dc);

            dc = new DataColumn {DataType = typeof (string), ColumnName = "2"};
            dt.Columns.Add(dc);

            dc = new DataColumn {DataType = typeof (string), ColumnName = "3"};
            dt.Columns.Add(dc);

            dc = new DataColumn {DataType = typeof (string), ColumnName = "4"};
            dt.Columns.Add(dc);

            for (int i = 0; i < 20; i++)
            {
                DataRow dr = dt.NewRow();
                dr[0] = "Fluff";
                dr[1] = "Fluff";
                dr[2] = "Fluff";
                dr[3] = "Fluff";

                dt.Rows.Add(dr);
            }

            radGridView1.DataSource = dt;
            radGridView1.MasterGridViewTemplate.Columns[0].Width = 350;
            radGridView1.MasterGridViewTemplate.Columns[1].Width = 350;
            radGridView1.MasterGridViewTemplate.Columns[2].Width = 350;
            radGridView1.MasterGridViewTemplate.Columns[3].Width = 350;
        }
    }
}

Martin Vasilev
Telerik team
 answered on 22 May 2008
8 answers
164 views
Does Telerik have CheckedCombo Box control?
If yes, does it have an option to select mulitple values like in CheckedListbox?

Prad
Kiril
Telerik team
 answered on 22 May 2008
1 answer
263 views
I cannot figure out how to set the size or position (in pixels, not snapped to the top, left, bottom, or right) of a floating DockPanel which was created at runtime.

Below is how I'm instantiating the DockPanel (the DeckWorkspace is a valid UserControl... part of CAB, "docked" and "auto-hide" are bools). I have tried setting Size, but that only appears to control the private "dockSize" member, and obviously I don't have access to the private "floatSize" member.


DockPanel panel = new DockPanel();

DeckWorkspace workspace = new DeckWorkspace();

workspace.Name = workspaceName;

workspace.Dock = DockStyle.Fill;

panel.Controls.Add(workspace);

dockingManager1.PrimarySite.DockingManager.SetDock(panel, DockPosition.Default);

panel.DockState = (docked) ? DockState.Docked : DockState.Floating;

panel.DockState = (autoHide) ? DockState.Docked & DockState.AutoHide : panel.DockState;

Julian Benkov
Telerik team
 answered on 22 May 2008
3 answers
227 views
I've set some conditional formatting on my RadGridView which works great.  However when I update a cell value, the color formatting isn't applied.  Note:  I'm using ApplyToRow = true.

I'm already calling Update() and Refresh() on the grid after each update...isn't that enough to apply the conditional formatting to the cell?
Nikolay
Telerik team
 answered on 22 May 2008
1 answer
338 views
Hi,

the following line in the InitializeComponentMethod causes a problem

       
CType(Me.DockingManager.System.ComponentModel.ISupportInitialize).EndInit() 

StackTrace :
 Object reference not set to an instance of an object
Telerik.WinControls.Docking.DockingManager.LoadFromXmlCore(XmlDockingManager xmlManager) 
Telerik.WinControls.Docking.DockingManager.SetTreeXml(String xmlContent) 
Telerik.WinControls.Docking.DockingManager.System.ComponentModel.ISupportInitialize.EndInit() 

This does not happen on all machines.

What can I try to debug / get closer to the problem?

I use version 6.0.2.0 of the RadControls, .Net Framework 2.0 , VS 2005, Windows Server 2008
Julian Benkov
Telerik team
 answered on 22 May 2008
3 answers
198 views
I'm implementing the gridview in a 2.0 c# windows forms app.  When I export the gridview to Excel, all open instances of Excel crash. The export works, but crashing Excel is a little disruptive.

Has anyone experienced this in the past, and are there likely causes/workarounds?

Please advise...

Many thanks!



Martin Vasilev
Telerik team
 answered on 22 May 2008
1 answer
156 views
How can i filter all the columns/rows in an hierarchical grid at the same time?
The GridView includes 2 tables, AccountName as Master and Contacts as detail. At runtime the GridView shows only the AccountName Column. Now i want to be able to search either an AccountName or a Contact by entering the search criterias in only one field.

Thanks in advance
Martin Vasilev
Telerik team
 answered on 21 May 2008
1 answer
108 views
Hi,

I've got a bit of a problem I'm thinking the rad grid might be able to help out with, but I'm really not sure how to tackle this at all.

I've got a UI that has 10 fields on it, each one is a combo box. They are all linked to an underlying business object, and changing one will repopulate all the others down the line with information based on the selection.

What I'm wondering is - how can I implement this with the Rad Grid? Each row is a business object, with each combo being linked to a property on that object, and each property, when updated, also updates the list of the subsequent properties.

Second to this, I want to be able to add a grouping to the grid - I want to have a field linked to that group, so that if the user adds a new record in the grid under a group, the group field is also filled in.


How would I start figuring out how to do this?

thanks,
Georgi
Telerik team
 answered on 21 May 2008
1 answer
80 views
We have a chart bound to a datasource wirh a field that does not start with zero.
The default options do not work like IsZeroBased , minValue etc.

What can we do to make this work
Dwight
Telerik team
 answered on 21 May 2008
4 answers
125 views
I'm using the RadRibbonBar with VB 2008.net express edition. I've followed the extra steps to get the ribbon bar to appear in the toolbox and everything seems to be OK. However, recently I find that when I create a new project the ribbon bar works fine until I save the project. Then the application won't start - nothing has changed since the last test other than saving the project. I've tried this out several times, changing different things, and have shown fairly conclusively that it is the saving of the project that causes the problem.

My test case was to create a new project, add the ribbon bar to the form, run the program. All fine. Save the project, run the program. Failed. All default names were left alone, no changes were made to the ribbon bar or the form.

This is the error that I get:

InvalidOperationException was unhandled

An error occurred creating the form. See Exception.InnerException for details.  The error is: That assembly does not allow partially trusted callers.

What can I do to fix this? Any suggestions greatfully received.

Thanks,
Martin.
Nikolay
Telerik team
 answered on 21 May 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)
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
CheckedDropDownList
ProgressBar
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?