Telerik Forums
UI for WinForms Forum
1 answer
143 views

Hi,

I am currently testing the Q1 2008 gridview and I'm facing this issue :
Each time that I remove a column from the grouping panel, I loose all grouping information displayed in the row like :  "Compagny : TESTABC ; "

Here's what I do :

Fist, I'm accessing data through LINQ doing something like this :

string connString = @"Data Source=SERVER;Initial Catalog=DB;Persist Security Info=True;User ID=user;Password=password";  
 
context = new DomainDataContext(connString);  
//test 1 -- Binding grid view  
radGridView1.DataSource = context.Orders;  
 

Then I group using 2 or more columns and I remove one of them.

Any idea what code is missing ?




I configured (in designer) the gridview like this :

enableSorting : false;
MasterGridViewTemplate.AllowAddNewRow : false;
MasterGridViewTemplate.AllowDeleteRow : false;
MasterGridViewTemplate.AllowEditRow : false;

Nikolay
Telerik team
 answered on 22 May 2008
1 answer
142 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
206 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
327 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
295 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
395 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
253 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
193 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
150 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
114 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
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?