Telerik Forums
UI for WinForms Forum
1 answer
268 views
Hello, I'm trying to create a grid that allows editing when I click a command column button but only for that row, all other rows should stay read-only to reduce human error.  Any ideas?

Thanks,
Jason
Stefan
Telerik team
 answered on 25 Aug 2011
5 answers
159 views
I have a grid view, which values can be edited by the user. I want to refresh the content of the grid, if the user changes the value of the cell. So say I have : 

1, 2, 3 as the initial state. If the user changes the value 2 to 5, i want the values in the grid to show , 1,5,6. ( this is a new list that's get assigned as data source to the gridview )

My understanding is that in order to refresh the grid. One has to create a new reference of the list and reasign it to the data source. 

When this is done in the CellValueChanged event, the gridview crashes, with the following error. 

How does one refresh the grid view after a value has changed ? 

- Thanks 

Steps to get the error : 

1. Create a GridView 
2. Assign it for data source a list of your favorite object. Strings or what not. 
3. Add a handler for the CellValueChanged. 
4. On the CellValueChanged handler, asign a new list of strings of your  to the grid's data source. 
5. Build start. Edit a cell, and hit enter. 

Error Message. 

   at Telerik.WinControls.UI.GridViewEditManager.EndEditCore(Boolean validate, Boolean cancel)
   at Telerik.WinControls.UI.GridViewEditManager.EndEdit()
   at Telerik.WinControls.UI.RadGridViewElement.EndEdit()
   at Telerik.WinControls.UI.GridRowBehavior.ProcessEnterKey(KeyEventArgs keys)
   at Telerik.WinControls.UI.GridRowBehavior.ProcessKey(KeyEventArgs keys)
   at Telerik.WinControls.UI.BaseGridBehavior.ProcessKey(KeyEventArgs keys)
   at Telerik.WinControls.UI.BaseGridBehavior.ProcessKeyDown(KeyEventArgs keys)
   at Telerik.WinControls.UI.BaseGridEditor.OnKeyDown(KeyEventArgs keyEventArgs)
   at Telerik.WinControls.UI.GridSpinEditor.OnKeyDown(KeyEventArgs e)
   at Telerik.WinControls.UI.GridSpinEditor.spinElement_KeyDown(Object sender, KeyEventArgs e)
   at Telerik.WinControls.RadItem.OnKeyDown(KeyEventArgs e)
   at Telerik.WinControls.UI.RadSpinElement.OnKeyDown(KeyEventArgs e)
   at Telerik.WinControls.UI.RadSpinElement.textItem_KeyDown(Object sender, KeyEventArgs e)
   at Telerik.WinControls.RadItem.OnKeyDown(KeyEventArgs e)
   at Telerik.WinControls.UI.RadTextBoxItem.TextBoxControl_KeyDown(Object sender, KeyEventArgs e)
   at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   at System.Windows.Forms.TextBox.WndProc(Message& m)
   at Telerik.WinControls.UI.HostedTextBoxBase.WndProc(Message& message)
   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 Watson.ModelingTool.Main() in C:\Development\Watson\GL.Desktop\ModelingTool\ModelingTool.cs:line 45
Erion
Top achievements
Rank 1
 answered on 24 Aug 2011
2 answers
259 views
Hey at Telerik

I have a problem when binding gridview to a List<Car>.
The Car object contains two objects Engine and CarColor.

If an Engine or CarColor is initialized on the car object the e.Value in the

 

rgvCars_CellEndEdit event is correctly changed and parsed and object is updated.

If no Engine or CarColor object is initialized on the Car object and i try to set for instance and engine in the combobox, the e.Value in  the rgvCars_CellEndEdit event is null and the object is not updated.

How do i set an Engine or CarColor on the Car object if there's no Engine or CarColor initialized ??

I have include an example (Without an assembly) that shows the problem at hand when you try to select for intance an Engine on the Car that doesn't have an Engine object initialzed.

Link to example. http://kort2.lifa.dk/Examples/GridViewCellEndEditIssue.zip

Sincerly Jan

Stefan
Telerik team
 answered on 24 Aug 2011
1 answer
217 views
Hi, I have a button and I have setted up an image that is bigger than the button.
Is there a posibility from ImageScalingSize property to display the image at the same size like the button is?

Also I have attached an image
Thanks
Stefan
Telerik team
 answered on 24 Aug 2011
1 answer
78 views

Hi all,
I using wraptext to format a header like:
rgvBob.Columns(6).Width = 60
rgvBob.Columns(6).HeaderText = "Internal Diameter"
rgvBob.Columns(6).WrapText = True

and the grid works fine, but when I use a ViewDefinition in my grid, the propertie wraptext above is ignored and the header doesn´t show the text in 2 lines.
There are some properties in ViewDefinition to do a wraptext in header?

tks,
Nelson




Martin Vasilev
Telerik team
 answered on 24 Aug 2011
3 answers
256 views
How can I stop the items in the carousel from rotating?

I tried setting AnimationsToApply to None, but then all my items appeared stacked on top of each other. I also tried setting EnableLooping to False, and that seemed to do the trick. After selecting an Item I'd display a form, when the user closed the form, the carousel was no longer rotating (or looping), however, one slight issue occurred-- two of the items appeared stacked on top of each other.

I want the items to appear in a carousel-like circle, but I just don't want them to rotate, because some of my users are finding it annoying.

Stefan
Telerik team
 answered on 24 Aug 2011
1 answer
187 views
Hello all!

I have radPageView1, I create 3 radPageViewPage.  In radPageViewPage, I create radButtons.

Now, I want find that radbutton when i click.

Help me!
Thanks!
Stefan
Telerik team
 answered on 24 Aug 2011
6 answers
645 views
Hi

I would like to delete some rows on condition.
My Grid don't use database and is filled by code

So I want to delete all row where column named "ColA" = "b"

I work with VB...
Fiko
Telerik team
 answered on 24 Aug 2011
1 answer
175 views
Hi
Try this.
DropDownList.AutoCompleteMode = SuggestAndAppend
Then Bind it to a datasource.
so now open the popup of DropDownList, and NOW start writing (for testing the autocomplete).
you will see that popup still is open and autocomplete list will open too,
It`s easy to close the popup in code to shown only suggestion list, but if it`s a bug I think it`s better you to fix that up in newx releases
I think it`s unwanted to have both openned at the same time

thank you
Stefan
Telerik team
 answered on 24 Aug 2011
5 answers
256 views
Does anybody have the same problem with the Office 2010 Blue theme?
The position of the radRibbonBar.RibbonBarElement.ApplicationButtonElement is 2 pixels to low.
I am not sure if this behavior was also present in Q1 2011.
I have tried to correct it programtically by shifting the Location property, but it doesn't help.
Is there any solution without definining a custom theme?
Alexander
Telerik team
 answered on 24 Aug 2011
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?