Telerik Forums
UI for WinForms Forum
3 answers
512 views
I noticed that some other folks were having a similar issue, but not the same issue I am having.  I am binding my RadGridView to a Generic List.  When I delete the item in the Generic List and rebind the row doesn't remove until I scroll the deleted row out of view and then back into view. 

The item is removed, but the physical row is still on the grid.  It throws the following exception:

The following exception occurred in the RadGridView:  
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.  
Parameter name: index  
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)  
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()  
   at System.Collections.Generic.List`1.System.Collections.IList.get_Item(Int32 index)  
   at Telerik.WinControls.UI.GridViewData.GetValue(Int32 boundColumnIndex, Int32 columnIndex, Int32 rowIndex)  
 

Sample Code to reproduce the error:

' in form load, the grid is bound to the genericList  
private sub frm_frmLoad()  
  Me.radGridView.DataSource = genericList  
End Sub 
 
public sub RemoveItemFromList(ByVal customItemToRemove as CustomItems)  
  ' remove item from the List(Of CustomItems)  
  If genericList.Contains(customItemToRemove) Then 
    genericList.RemoveAt(genericList.IndexOf(customItemToRemove))  
  End If 
 
  ' rebind to   
  Me.radGridView.DataSource = genericList  
End Sub 

I am currently using Q1 2007 with VS2005 SP1.

Thanks for a great product and any thoughts on this.

Dennis
Julian Benkov
Telerik team
 answered on 16 Oct 2007
1 answer
108 views
Hi Telerik Team,

I am facing formatting issue with GridView.
In One column of gridview i am showing value with decimal places some are 0 and some are "blank" . So, when I in properties Datatextstring when i write syntax like  {0:#.##}  that time i get values with proper format but ALL zeros ie 0 are replace  by Blanks.

Please provide some solution.

Thanks
Nickty
Peter
Telerik team
 answered on 16 Oct 2007
22 answers
294 views
It there a way to deactivate the selection of dates from the individule days on the calendar?  This way the only way anyone could select anything it would be on a week-by-week basis (via the row (week) number).  Then be able to pull the dates that were selected from that row?
Boyko Markov
Telerik team
 answered on 16 Oct 2007
4 answers
245 views
Hi All,

Can someone please tell me how to set the size of the space ( I think content panel ) between 2 radPanelBarGroupElement in the readPanelBar control.
The GroupStyle choose is ListBar.
Also I was creating simple RadPanelBar control on a form and was trying the example given in the QuickStart for Telerik RandControls for WindForms Q2 2007 , and I could not get the "Contacts" RadPanelBarGroupElement to be collapsed. Everytime I run the application it is showing up as expanded.

Quick reply would be appreciated.

Thanks
Rupa
Barkha
Top achievements
Rank 1
 answered on 15 Oct 2007
1 answer
148 views
Hi Telerik Team,

I am using gridview for winforms here is the probem .

How can I Add some row like e.g. 6th to the top in the radgridview.
Other is Question is:
How Can  I add radLabels to the form . I am trying to drag and drop on winform it get disapper.
Please provide solution.


Thanks
Sushil

Angel
Telerik team
 answered on 15 Oct 2007
3 answers
72 views
version 2007Q2 (4.1)
I have a treeview with two main nodes.
In the first main node two of the subnodes have a different color than the rest.

On load everything looks as expected.

If I then collapse the first main node.. then suddenly some of the subnodes in the second main nodes gets colored.

If I then expand the main node again the subnodes are again colored as expected

recreation code:
            RadTreeNode Node1 = new RadTreeNode("Drinks", true);
            RadTreeNode Node2 = new RadTreeNode("Dinner", true);


            RadTreeNode Node4 = new RadTreeNode("Beer 10");
            RadTreeNode Node5 = new RadTreeNode("Cola 8");
            Node5.ForeColor = Color.Blue;
            RadTreeNode Node6 = new RadTreeNode("Cola 12");
            Node6.ForeColor = Color.Red;
            RadTreeNode Node7 = new RadTreeNode("Vodka 370");

            RadTreeNode Node8 = new RadTreeNode("buffet adult 150");
            RadTreeNode Node9 = new RadTreeNode("buffet child 100");
            RadTreeNode Node10 = new RadTreeNode("A la carte 300");
            RadTreeNode Node11 = new RadTreeNode("3-course Menu 400");

            radTreeView2.Nodes.Add(Node1);
            radTreeView2.Nodes.Add(Node2);

            Node1.Nodes.Add(Node4);
            Node1.Nodes.Add(Node5);
            Node1.Nodes.Add(Node6);
            Node1.Nodes.Add(Node7);

            Node2.Nodes.Add(Node8);
            Node2.Nodes.Add(Node9);
            Node2.Nodes.Add(Node10);
            Node2.Nodes.Add(Node11);
Jordan
Telerik team
 answered on 15 Oct 2007
1 answer
85 views
If you have a tabbed document + a docked panel, when dragging the splitter between the two, it only updates to about half the distance you drag it to.

This only happens in the designer.

Simple to reproduce (hopefully it's not just me) - new form, add a DockingManager, set the Dock=Fill property, and then add a tabbed document and a docked panel to the left or right. Try to resize the docked panel, and it will only go 1/2 as far as it should.
Nikolay
Telerik team
 answered on 15 Oct 2007
7 answers
191 views
I have a button that add a row in my grid.
when a row is added i need to put the first cell in edit mode with the focus on it.

How to do this?
thanks
Jack
Telerik team
 answered on 12 Oct 2007
4 answers
293 views
How do I do a drag and drop from one radlistbox control to another? I have done it in the past with two of the stock winforms listbox controls.
Angel
Telerik team
 answered on 12 Oct 2007
1 answer
100 views
Noticed this interesting little bug with the docking control. I've got a dual monitor setup, and for whatever reason, if I move my application to the right hand monitor, if I right click on the docking panel & its documents & panes, the context menu pops up on the side of the LEFT monitor.

It seems like the control assumes that my left monitor is the extent of the desktop, and tries to make sure the context menu is fully visible on that monitor, without realizing that I have 2 monitors.


Oh, and another thing - the Office2007Black theme for the docking control makes the unselected tabs almost invisible. Not sure if that's intentional or not..

Edit: Eep! What a spelling mistake to put in a thread title!
Julian Benkov
Telerik team
 answered on 12 Oct 2007
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?