Telerik Forums
UI for WinForms Forum
4 answers
137 views
Hello,

What's the best way to provide an initial layout (by code, not using the designer) with two tool windows docked on the left side - the upper one taking about 2/3 of the available height.

Thanks for your help.
erwin
erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 22 Jun 2009
2 answers
97 views
Hello,

I'm using a tree view for a wizard, to show the users what step they are on. It seems perfect for it as I can use different images for each step.

However, I'd like to be able to keep the control enabled (so that the images and the selected node show in colour), but also disallow the user from selecting a different node. Can you tell me if this is possible, or perhaps some workaround that may do the same thing please?

Thanks
Victor
Telerik team
 answered on 22 Jun 2009
2 answers
89 views
For some reason the direction is not showing during a drag and drop operation. This is both in my own code, your demo examples and on multiple pc's... any thoughts?

Claus
Claus
Top achievements
Rank 1
 answered on 22 Jun 2009
7 answers
1.6K+ views


I have added the one checkbox colum in the grid. I would like to make that column editbale and rest of the columns are not. how to make it ?, At the same time I want to capture the  checkbox state changed event.

FYI : I am using the following code to add checkbox column

GridViewCheckBoxColumn
checkBoxColumn = new GridViewCheckBoxColumn();

checkBoxColumn.DataType =

typeof(bool);

checkBoxColumn.HeaderText =

string.Empty;

checkBoxColumn.Width = 25;

dGridDisplayField.MasterGridViewTemplate.Columns.Insert(0, checkBoxColumn);

Thanks you
Raghu

Sebastian
Telerik team
 answered on 22 Jun 2009
1 answer
217 views
Hi,
I am using RAD gridview with a checkbox.
On clicking on checkbox, grid view enters in Edit Mode.
when i click on save button on page, no changes made in gridview are updated in database.
When i change a row in grid and click on other row, row gets updated and then on clicking Save button changes commit to database.
i need to know whether it is possible to update telerik gridview datasource programmatically on save button click.

Thanx

Jack
Telerik team
 answered on 22 Jun 2009
2 answers
232 views
I'm thinking of purchasing your controls for an upcoming project but I am getting a couple of errors that I'm hoping you can help me with.  I have a sample project available.

1) The error below happens when I bind to the grid:
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at Telerik.WinControls.UI.GridTableElement.GetRowStyleForType(String elementTypeFullName)
   at Telerik.WinControls.UI.GridTableElement.GetRowStyle(GridRowElement row)
   at Telerik.WinControls.UI.GridRowElement.GetRowStyle()
   at Telerik.WinControls.UI.GridRowElement.ApplyCustomFormatting()
   at Telerik.WinControls.UI.GridRowElement.UpdateInfo()
   at Telerik.WinControls.UI.GridTableBodyElement.UpdateState()
   at Telerik.WinControls.UI.GridTableElement.UpdateCurrentColumn()
   at Telerik.WinControls.UI.GridViewTemplate.SetCurrentColumn(GridViewColumn column, Boolean update, Boolean shift, Boolean control)
   at Telerik.WinControls.UI.GridViewTemplate.set_CurrentColumn(GridViewColumn value)
   at Telerik.WinControls.UI.GridTableElement.UpdateCurrentPosition()
   at Telerik.WinControls.UI.GridViewInfo.SetCurrentRow(GridViewRowInfo row, Boolean setPosition, Boolean shift, Boolean control, Boolean rightMouseButton)
   at Telerik.WinControls.UI.GridViewTemplate.SetCurrentRow(GridViewRowInfo rowInfo)
   at Telerik.WinControls.Data.DataAccessComponent.InitDataGrid()
   at Telerik.WinControls.Data.DataAccessComponent.Bind(Object dataSource, String dataMember)
   at Telerik.WinControls.Data.DataAccessComponent.set_DataSource(Object value)
   at WindowsApplication4.Form1.worker_DoWork(Object sender, DoWorkEventArgs e) in c:\devprojects\WindowsApplication4\WindowsApplication4\Form1.vb:line 14

2) The second error is Exception has been thrown by the target of an invocation. There is no clear way to reproduce. Sometimes it happens on startup, other times it me three or four clicks.
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(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 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
   at WindowsApplication4.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Please le tme know if you can help.
Victor
Telerik team
 answered on 19 Jun 2009
1 answer
88 views
I have a grid which will display mostly static data with 2 excepions. Each cell in the first row in the grid needs to be a single column combo box. Also, one of the columns (all but the first row, that is) needs to be a multi-column combo box.

What's the best approach to go about doing this?

Thanks

Carl
Martin Vasilev
Telerik team
 answered on 19 Jun 2009
3 answers
288 views
Hi,

Can anyone help with what seemed to be relatively easy action, and has now plagued me for sometime.

What i require to do is change the selected "highlighted node" in my tree view when i change my current page without clicking the tree view itself.? I change page programmatically and require the tree view to correspond to the new page once it has loaded.

I have managed to get the tree view selecting the top parent node using the following code, however and attempts to achieve anything slightly more accurate i fall short.!

Sample Line Of Code Below.

((

CS_MainForm)this.Owner).treeView.SelectedNode = ((CS_MainForm)this.Owner).treeView.Nodes[0];

Sample Line Of Code Above.

I have tried to change the selected node using the line of code below, but have had no joy..

Sample Line Of Code Below.

 

((

CS_MainForm)this.Owner).treeView.SelectedNode = ((CS_MainForm)this.Owner).treeView.Nodes["New Page Name"];

Sample Line Of Code Above.

So far all of my attempts have failed and i would be grateful if somebody could offer me some assistance. I have a feeling its staring me right in the face and i just can't see it.

Kind Regards
Chris

 

Victor
Telerik team
 answered on 19 Jun 2009
1 answer
382 views
I have a requirement to add a remove button column, so that i can delete a record rowwise.
So I need a way to customize the Command button in GridViewCommandColumn to add an image to it and change its theme.
Can you help me about this?
Boryana
Telerik team
 answered on 19 Jun 2009
1 answer
70 views
Hi Telerik:

I just installed the version Q1 from 2009  i don't have too much variety among the themes. For example, if i am using a radgridview, i can only choose among "vista" "default control" and "Reset".

What do i have to do to see the rest of them  ?


Thanks Pablo
Deyan
Telerik team
 answered on 19 Jun 2009
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?