Telerik Forums
UI for WinForms Forum
5 answers
154 views
Hi,
I have a GridViewCommandColumn in my grid. I populate the grid, sort on the command column. Then in some operation I update the values of the GridViewCommandColumn. Upon clicking any cell of this column, I get the following exception

Message : {"Expecting 1 value(s) for the key being indexed, but received 0 value(s)."}
Stack :    at System.Data.Index.FindNodeByKeys(Object[] originalKey)
   at System.Data.Index.FindRecordByKey(Object[] key)
   at System.Data.DataView.FindByKey(Object[] key)
   at System.Data.DataView.Find(Object[] key)
   at Telerik.WinControls.Data.DataAccessComponent.FindRow(GridViewRowInfo rowInfo)
   at Telerik.WinControls.UI.GridViewInfo.GetVisibleRowIndex(GridViewRowInfo rowInfo)
   at Telerik.WinControls.UI.GridCellElement.get_RowIndex()
   at Telerik.WinControls.UI.GridViewCellEventArgs..ctor(GridCellElement GridViewCell)
   at Telerik.WinControls.UI.GridCommandCellElement.OnClick(EventArgs e)
   at Telerik.WinControls.UI.GridCommandCellElement.button_Click(Object sender, EventArgs e)
   at Telerik.WinControls.RadItem.OnClick(EventArgs e)
   at Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
   at Telerik.WinControls.RadItem.DoClick(EventArgs e)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
   at Telerik.WinControls.RadElement.CallDoMouseUp(MouseEventArgs e)
   at Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
   at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
   at Telerik.WinControls.UI.RadGridView.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.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(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 System.Windows.Forms.Application.Run(Form mainForm)
   at Microsoft.AdCenter.CommunityPlatform.UI.Desktop.Program.Main() in c:\Enlistments\CommunityPlatform\Dev\private\src\UI\Desktop\Program.cs:line 19


Please suggest what can be wrong here.

Thanks
Ankur
Jack
Telerik team
 answered on 11 Aug 2009
2 answers
179 views
When attempting to associate the Click event of the radButtonElement of radToolStrip, Application throws error

"Index (zero-based) must be greater than or equal to zero and less than the size of the argument list".

I have tried
RadButtonElement radButtonElement = new RadButtonElement("Test");
WorkItem.Commands"MyCommandName".AddInvoker(radButtonElement, "Click");

with a regular ToolMenuStrip, however, i do not run into this problem. Any ideas?

Thanks in advance.
Jordan
Telerik team
 answered on 11 Aug 2009
30 answers
608 views
During the installation of "RadControls for WinForms" on a machine that only has VS2008 Pro installed, I receive the following error:

"ToolBox has encountered a problem and needs to close.  We are sorry for the inconvenience."

After the install I have to then manually add the controls to the toolbox...
Jordan
Telerik team
 answered on 11 Aug 2009
1 answer
151 views
Hi All,

I am regocnizing that WinForms are running on XP and obviously under Vista. Would they run on Windows 2000 as well?

Many thanks

Andi
Robert
Top achievements
Rank 1
 answered on 10 Aug 2009
1 answer
83 views
I am using RadControls for WinForms Q2 2009 in VS2008.  I am able to set the RadGridView control's datasource to a DataTable.DefaultView and enable reordering of the columns.  I am able to perform a drag/drop reordering of the columns.
My problem occurs when the datasource changes to a different DataTable.DefaultView.  The columns no longer respond to the drag/drop column reordering feature.  I've attempted setting the MasterGridViewTemplate.AllowColumnReorder to true, but that fails to work.  Any suggestions?
Greg Montoya
Top achievements
Rank 1
 answered on 10 Aug 2009
2 answers
139 views
Hi,

I have been working on the carousel control I would like to know how can I Add a context menu to it .

I tried dragging the context menu onto the RAD form but when I select the Carousel control and goto properties and when I select context menu strip it doesn't show me the contextmenu controlwhich I have dragged onto the form

Thanks,
Mahitha Prem
Mahitha Madala
Top achievements
Rank 1
 answered on 10 Aug 2009
3 answers
199 views
I have two documents in one TabStrip.  I drag one out. Just right after the drag is over I need the information on what Documents (from entire RadDock control) are actually visible (drawn on the screen; not Class-property-wise visible)  and which are hidden beneth the others. This only concerns DocumentWindows.
Paul
Top achievements
Rank 1
 answered on 10 Aug 2009
7 answers
460 views
HI i am trying to use the waitingbar bar but i can't get it to work, here is  my code:

  private void btnCheckServers_Click(object sender, EventArgs e)  
        {    
                this.radWaitingBar1.StartWaiting();  
                label1.Text = "trying to connect....";  
                Telnet Session = new Telnet(this.txtIP.Text, Convert.ToInt16(this.txtPortTest.Text), 1000);  
 
                try 
                {  
                    Session.Connect();  
                    label1.Text = Session.ReturnMessage;  
                }  
                catch (Exception ex)  
                {  
                    label1.Text = ex.Message;  
                }  
 
                this.radWaitingBar1.EndWaiting();  
   
        } 


Can someone tell me what i do wrong?

Thanx and greetings,
Wim

In the Help i read this:
  1. Place a RadWaitingBar control and a RadButton control on a form.
  2. Select the RadWaitingBar control.
  3. Set the StepWidth property to 4.
  4. Set the ThemeName property to ControlDefault.
  5. Set the BackColor property to BlueViolet.
  6. Select the RadButton control.
  7. Set the Text property to Animate.
  8. In the Properties window, click the events button.
  9. Double-click the Click event.
  10. Replace the automatically-generated event handler with this code:


thing is that i cant find property StepWidth!

Victor
Telerik team
 answered on 10 Aug 2009
1 answer
75 views
Hey 
     
        I need to copy and past from the radgrid to excel.  I almost done wtih that using Control +
c  and Control +V. But how i can do this using Context Menu. when i right click , i can see the Copy, Past options , but its not working for the Selected Cells.

regards
Naji
Nikolay
Telerik team
 answered on 10 Aug 2009
3 answers
375 views
hi
before i use these code for next row in gridview  but in radgrid i don't know.
privatevoid btnNext_Click(object sender, EventArgs e)
{
int index = radgrid1.CurrentRow.Index + 1;
if (index == radgrid1.Rows.Count)
index = 0;
radgrid1.Rows[index].Cells[0].Selected =
true;
}
please help me
thank you very much
niloo norouzi
Top achievements
Rank 1
 answered on 09 Aug 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
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
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?