Telerik Forums
UI for WinForms Forum
1 answer
70 views
Dear Madam/Sir,

One column of my GridView is a GridViewComboBoxColumn.
GridViewComboBoxColumn companyClmn = new GridViewComboBoxColumn( COLUMN_COMPANY ); 
companyClmn.DataSource = this.transport.GetCompanies( this.username ); 
companyClmn.DisplayMember = "companyName"
companyClmn.FieldName = "companyID"
companyClmn.Width = 150; 

I've added an event for RowValidated and want to check the value for this ComboBoxColumn
but I always get "Object reference not set...".
If I use a TextBoxColumn, I get the value without any problems.

private void SaveToDatabase( object sender, RowValidatedEventArgs e ) { 
    object value = e.Row.Cells[0].Value; // object reference not set...

Thanks in advance!

Edit: I've set .FieldName wrong... stupid error! Sorry!
Martin Vasilev
Telerik team
 answered on 10 Nov 2009
1 answer
124 views

In prior Versions, adding a DocumentWindow to the DockManager used to activate it, in 2009 Q3 I have to explicitely set the Active Window. Is that correct?

RadDock.AddDocument(document);
// new with 2009 Q3 to activate a newly added window
RadEock.ActiveWindow=document;
Julian Benkov
Telerik team
 answered on 10 Nov 2009
3 answers
219 views
I have just upgraded to 2009 Q3 version.

I have a RADform, with a RADGridView, with anchor settings: left, right, top, bottom  (there are other buttons and text box.)

Settings as follows:
RADform:
AutoScaleMode: dpi
WindowsState: Maximized

The RADForm is a MDI child.

I found that sometimes when it is opened (especially the first fime), the RADGridview does not anchored.

But I reopened it, most of the time it can anchor as expected.

Jack
Telerik team
 answered on 10 Nov 2009
1 answer
232 views
Hi

I'm using a trial copy of RadControls for WinForms Q2 2009 SP1,version 2009.2.9.729 for development

And i get the following Error in WinForms.Gridview

================================================================================================
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

/************** Exception Text **************
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

at System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
at Telerik.WinControls.RadElementCollection.RadElementEnumerator.MoveNext()
at Telerik.WinControls.UI.GridRowElement.UpdateInfo()
at Telerik.WinControls.UI.GridDataRowElement.UpdateInfo()
at Telerik.WinControls.UI.GridRowElement.Initialize(GridViewRowInfo rowInfo)
at Telerik.WinControls.UI.GridTableBodyElement.UpdateRow(Int32 position, GridViewRowInfo rowInfo)
at Telerik.WinControls.UI.GridTableBodyElement.UpdateRowElements(IEnumerable`1 rows, RectangleF clientRect, Single& y, Int32& position, Int32 startIndex, Int32& added, Single left, Single width)
at Telerik.WinControls.UI.GridTableBodyElement.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.W inControls.UI.GridTableElement.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout()
at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayoutCallback(ILayoutManager manager)/

================================================================================================

Thanks
Madhav
Jack
Telerik team
 answered on 10 Nov 2009
4 answers
62 views
I just installed Telerik Q3 2009 WinForms BETA (2009.2.9.1016) over Q2 2009 (2009.2.9.729) and the demo program now no longer shows ChildGridViewTemplate Rows after the 1st Row in at least the following scenario:

  1. Run the demo program and do to GridView, Hierarchy, Tabbed child views.
  2. Expand a ChildGridViewTemplate's ParentRow (all Rows are shown as expected).
  3. Collapse a ChildGridViewTemplate's ParentRow (all Rows are hidden as expected).
  4. Expand a ChildGridViewTemplate's ParentRow (only the 1st Row is shown and its height has increased to fill the whole ChildGridViewTemplate).

This occurs on a per-ParentRow basis.  I could only get this to occur in the demo program.  It did not happen in my app.

Telerik 2009Q3 Beta (2009.2.9.1016), VS 2005 (v8.0.50727.762 SP.050727-7600), .Net2 (2.0.50727), XP SP3, Core2Duo 2.99GHZ with 3GB.
Jack
Telerik team
 answered on 10 Nov 2009
2 answers
54 views
I have a bar graph and I need to change the color of the label in the series.
||||||||||||||||||||||||||||||||||||||||||||||||||||28
||||||||||||||||||||||||||14
Say it looks like this, I want to change the forecolor of the "28" and "14" to be white as the background is a dark blue.
Is this posible andif so how?
Dwight
Telerik team
 answered on 10 Nov 2009
2 answers
258 views
HI Telerik,
                 This s inform to you that i have using MaskedEdit Textbox as percentage mask fix .
 The 1st problem is that with MaskEdit box deafult value look like is "0.00 %"  another my requirements is "0%" how can i use/set mask look like "0%"

and other problem with this if the cursor are stand start of text on left side  value e.g "cursor Position is here  0%"  if i press the backspace button why the value are deleted on right side can you please help me to do fixing issue/problem.

percentage should in numeric value , cannot used as floating point that is big issue with MaskPercentage .

thanks
Khalid
Muhammad Khalid
Top achievements
Rank 1
 answered on 10 Nov 2009
2 answers
84 views
I just installed Telerik Q3 2009 WinForms BETA (2009.2.9.1016) over 2009Q2 (2009.2.9.729) and I get a error when I try to expand my 3rd-level ChildViewTemplate (MasterGridView being 1st level).  The only RadGridView change mentioned was combined Vertical Scroll Bar for Grids with ChildTemplateView's.

System.InvalidCastException: Unable to cast object of type 'Telerik.WinControls.Primitives.FillPrimitive' to type 'Telerik.WinControls.UI.GridDetailViewCellElement'. 
   at Telerik.WinControls.UI.GridDetailViewCellElement.UpdateTableElement() 
   at Telerik.WinControls.UI.GridDetailViewCellElement.UpdateInfoCore() 
   at Telerik.WinControls.UI.GridCellElement.UpdateInfo() 
   at Telerik.WinControls.UI.GridRowElement.UpdateInfo() 
   at Telerik.WinControls.UI.GridDetailViewRowElement.UpdateInfo() 
   at Telerik.WinControls.UI.GridRowElement.Initialize(GridViewRowInfo rowInfo) 
   at Telerik.WinControls.UI.GridTableBodyElement.UpdateRow(Int32 position, GridViewRowInfo rowInfo) 
   at Telerik.WinControls.UI.GridTableBodyElement.ArrangeOverride(SizeF finalSize) 
   at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect) 
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect) 
   at Telerik.WinControls.UI.GridTableElement.ArrangeOverride(SizeF finalSize) 
   at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect) 
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect) 
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout() 
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayoutCallback(ILayoutManager manager) 
 


Telerik 2009Q3 Beta (2009.2.9.1016), VS 2005 (v8.0.50727.762 SP.050727-7600), XP SP3 on Core2Duo 2.99GHZ with 3GB.
Tom Chien
Top achievements
Rank 1
 answered on 09 Nov 2009
2 answers
159 views
Hello,

how can I get the Index of a RadListBoxItem in a RadListBox?

My current code:
Dim myItem As New RadListBoxItem  
AddHandler myItem.Click, AddressOf Me.ListBoxClick  
Me.RadListBox1.Items.Add(myItem)  
 
 
Private Sub ListBoxClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)       
 
        Dim myItem As RadListBoxItem = sender   
        Dim myIndex As Integer = ???    <---- How can I get the index?   
 
        Me.RadListBox1.SetSelected(myIndex, True)  
End Sub  
 
 
 
 
 
 

 

 

 

 

 

 

 

Robert
Top achievements
Rank 1
 answered on 09 Nov 2009
1 answer
108 views
Hi
i cannot change my X-Axis Label after setting Chart.ItemSource ,please help !!!!

TickPointLabel=XX

i see that the property has changed in debgugger,but no changes in preview
Robert
Top achievements
Rank 1
 answered on 09 Nov 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?