Telerik Forums
UI for WinForms Forum
1 answer
117 views
Hi,
I have simple grid that contains 7 text columns with names column1, column2, ... column7.
When I apply following code I got layout that is shown in file grid1.png.
HtmlViewDefinition view = new HtmlViewDefinition();
view.RowTemplate.Rows.Add(new RowDefinition());
view.RowTemplate.Rows.Add(new RowDefinition());
view.RowTemplate.Rows.Add(new RowDefinition());
 
CellDefinition cell = new CellDefinition();
//row1
cell.UniqueName = "column1";
cell.RowSpan = 1;
cell.ColSpan = 2;
view.RowTemplate.Rows[0].Cells.Add(cell);
 
cell = new CellDefinition();
cell.UniqueName = "column4";
cell.RowSpan = 3;
cell.ColSpan = 1;
view.RowTemplate.Rows[0].Cells.Add(cell);
 
cell = new CellDefinition();
cell.UniqueName = "column5";
cell.RowSpan = 1;
cell.ColSpan = 1;
view.RowTemplate.Rows[0].Cells.Add(cell);
 
//row2
cell = new CellDefinition();
cell.UniqueName = "column2";
cell.RowSpan = 2;
cell.ColSpan = 1;
view.RowTemplate.Rows[1].Cells.Add(cell);
 
cell = new CellDefinition();
cell.UniqueName = "column3";
cell.RowSpan = 2;
cell.ColSpan = 1;
view.RowTemplate.Rows[1].Cells.Add(cell);
 
cell = new CellDefinition();
cell.UniqueName = "column6";
cell.RowSpan = 1;
cell.ColSpan = 1;
view.RowTemplate.Rows[1].Cells.Add(cell);
 
//row3
cell = new CellDefinition();
cell.UniqueName = "column7";
cell.RowSpan = 1;
cell.ColSpan = 1;
view.RowTemplate.Rows[2].Cells.Add(cell);
 
radGridView1.ViewDefinition = view;

Grid2.png shows what I want to achieve.
I am using 2011.3.11 version of Telerik.
Thanks
Ivan Petrov
Telerik team
 answered on 15 Mar 2012
5 answers
454 views
I've just replaced a competitor's IP address mask input control with Telerik's Winforms 2011 Q2 and I'm disapointed with the functionality. Dropping the RadMaskedEditBox in place with MaskType = IP presented two problems:

When typing an IP address of 10.5.2.97 (with periods) it ends up '10 .5 .2 .97' in the box and requires custom reformatting to remove embedded spaces to make it into a valid IP address. Am I missing something? 

Second and much more minor issue is that I could not find an easy way to make this controls blue border look the same as standard .NET controls of black; changing the Theme to ControlDefault did not work.
Peter
Telerik team
 answered on 15 Mar 2012
1 answer
236 views
I want to switch over to the RADChart from a normal .net chart. The chart must be a bar chart with two series. It gets the XAxis Zfrom column 1 in the data table and the YValue from the second column.
This is the code I used for the .net chart

Me.Chart2.Series("MeterOne").XValueMember = "period"
        Me.Chart2.Series("MeterTwo").XValueMember = "period"
        Me.Chart2.Series("MeterOne").YValueMembers = "MeterOne"
        Me.Chart2.Series("MeterTwo").YValueMembers = "MeterTwo"
        Me.Chart2.ChartAreas(0).AxisX.Interval = 1

This code works perfectly but I don't know how to do this with the RADChart.
Evgenia
Telerik team
 answered on 15 Mar 2012
2 answers
239 views
Hello,

I get this warning since I have updated from Q3 2011 to Q1 2012.
Now everything works but how can I get rid of this warning ?

Warning    3    The referenced assembly "Telerik.WinControls.UI.Design, Version=2012.1.301.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.



Thank you.
Jack
Telerik team
 answered on 15 Mar 2012
1 answer
91 views
Hi All,

I use datatable as datasource to connect to gridview. Now I would like all content in column 2 have an icon. What do I need to do ?

Thanks
Ivan Petrov
Telerik team
 answered on 14 Mar 2012
2 answers
343 views
Hi!

I was wondering if it was possible to only display working hours in the scheduler instead of the whole day?

Thanks.

Sarah
Sarah
Top achievements
Rank 1
 answered on 14 Mar 2012
2 answers
131 views
Hi guys,

I'm trying to create a grid similar to the iTunes one (in Artist mode). This is just a regular grid (no problem here), but the first colum doesn't show a row for each record, but an image for all the records that share this image (in this case, the cover image for all the tracks in an album). I have attached an screenshot to show what I'm talking about.

My question is, is it possible to implement this with GridView and, if so, how? If not, and although I know this is a bit off topic, which controls combination could I use to replicate this interface?

Thank you very much.
Joaquín
Top achievements
Rank 2
 answered on 13 Mar 2012
2 answers
96 views
Hi All,

I've got a WinForms app with a RadRibbonBar and various groups of buttons, which all work fine ... apart from one.  I've just added a Split button as I need to have additional options when "Previewing", but don't seem to be able to use the main button part as a normal Click event, without the sub-items showing, and clicking on the "Arrow" to show sub-items causes a click event on the main button as well.

Is there a way to stop the RadSplitButton from showing the dropdown of child items when clicking the "main surface" of the button (as this would be the normal action), and then ONLY show the sub-item collection when you click on the Arrow, as with Microsoft behaviour for the Ribbon Bar?

Thanks in advance,
Paul
Stefan
Telerik team
 answered on 13 Mar 2012
1 answer
102 views
hello i am facing this problem : for any keypress on the combobox, the window where I use this multicolumn combo box is closing and this error appears:
"System.InvalidCastException: Unable to cast object of type 'Telerik.WinControls.UI.RadMultiColumnComboBox' to type 'Telerik.WinControls.UI.RadGridView'."
i am using q2 2009.
thanks in advance
Jack
Telerik team
 answered on 13 Mar 2012
1 answer
172 views

Hi,

I am trying to to save and load the grid layout settings to/from a file. i am able to save the layout settings to a file but unable to load from the file, getting the below error. Here i have created custom header cell for my grid.

Could you please help me in resolving this issue?

Below is the code  snipper for Save / Laod

private void SaveLayout_Click(object sender, EventArgs e)
        {
            this.radGridView1.SaveLayout(@"C:\\xyz.xml");
        }
  
private void RestoreLayout_Click(object sender, EventArgs e)
        {
            this.radGridView1.LoadLayout(@"C:\\xyz.xml");
        }

Stack Tracer of the issue:
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
  at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
  at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
  at System.Activator.CreateInstance(Type type, Boolean nonPublic)
  at Telerik.WinControls.XmlSerialization.RuntimeInstanceFactory.CreateInstance(Type instanceType)
  at Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadMergeCollection(XmlReader reader, Object parent, PropertyDescriptor parentProperty, IList toRead, String uniquePropertyName, Boolean preserveNotSerializedExistingElements, Boolean disposeObjects)
  at Telerik.WinControls.UI.GridViewLayoutSerializer.ProcessListOverride(XmlReader reader, Object listOwner, PropertyDescriptor ownerProperty, IList list)
  at Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)
  at Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object parentObject, Object toRead)
  at Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)
  at Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object parentObject, Object toRead)
  at Telerik.WinControls.UI.RadGridView.LoadLayout(XmlReader xmlReader)
  at Telerik.WinControls.UI.RadGridView.LoadLayout(String fileName)
  at GridApplication.Form1.RestoreLayout_Click(Object sender, EventArgs e) in E:\Telerik POC\GridApplication\GridApplication\Form1.cs:line 200
  at System.Windows.Forms.Control.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ButtonBase.WndProc(Message& m)
  at System.Windows.Forms.Button.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(IntPtr 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 GridApplication.Program.Main() in E:\Telerik POC\GridApplication\GridApplication\Program.cs:line 18
  at System.AppDomain._nExecuteAssembly(RuntimeAssembly 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, Boolean ignoreSyncCtx)
  at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
  at System.Threading.ThreadHelper.ThreadStart()

Thanks & Regards
Muralidhar Dasari
Jack
Telerik team
 answered on 13 Mar 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?