Telerik Forums
UI for WinForms Forum
9 answers
950 views
Dear Telerik team,


I have an event handle on the RadGridView.CellEndEdit event;

Its purpose is to look up a value from the database by the value entered in that cell and overwrite it with the value returned from the database.

Scenario and implementation:

User creates a new row in the grid and enters 'ABC' as value for the 1st column//cell. Then they press ENTER which will cause the radGridView1_CellEndEdit to be invoked.

 

private void radGridView1_CellEndEdit(object sender, GridViewCellEventArgs e)
{
    int rowIndex = e.RowIndex; //is -1, since it's a new row
    int columnIndex = e.ColumnIndex; //is 0, since it's the 1st column that's being editited by the user.
    
GridViewRowInfo row = this.radGridView1.MasterGridViewInfo.CurrentRow; //The only way to get the row (since rowindex => -1)
    string cellText = row.Cells[0].CellElement.Text; //is 'ABC', as entered by the user
    string cellValue = (string)row.Cells[0].Value; /is <Null> ?????? 
    row.Cells[0].Text = string.Join(",", new string[] { cellText, cellText }); //Concatenats into 'ABC,ABC' and overwites the cells text with that.
}


Now when you look at the cell on screen, you'll see that it still presenting it as 'ABC'.

Remarks.
1) Setting the Cell value does not help in any way.
2) The code above does work if the row is not a new row.
3) If the grid is under VirtualMode = true, then NO text can be read from that cell in the snippet.



I would like to know what is there to do to have the value/text being overwitten on CellEndEdit' in case of a NEW row. It's a key requirement for the application I'm working on.

Kind regards,

Jack


 

Jack
Top achievements
Rank 1
 answered on 12 Nov 2008
3 answers
312 views
HI

i changed the classic look for the form to rad form but when i run the application

the rounded corners are not outlined as other borders.

 
erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 11 Nov 2008
8 answers
419 views
Hi,

I use the DockingManager in my project.
The line

   Me.DockingManager = New Telerik.WinControls.Docking.DockingManager

causes about 20 MessageBoxes to pop up saying "Can't find TypeConverter to string for animation step of type Telerik.WinControls.ColorAnimationStep"
After that everything seems to be working fine.
This happens only on machines where Telerik is not installed. Machines with RadControlsWinforms_Q3_2007 don't show any MessageBoxes.

I hope you can give me any advice,

Thanks,
Chris


Nick
Telerik team
 answered on 11 Nov 2008
1 answer
120 views
Hello,

where can i find the help for the RadRibbonForm ?

Greetings,

Ramius
Nikolay
Telerik team
 answered on 11 Nov 2008
1 answer
152 views
I've seen how beautiful the AJAX suite installer has been over the past releases.  It looks so cool!  I would like it if all of your product suites (or at least WinForms, to start!) used such gorgeous installer templates.  If it's not already something in your roadmap, I would definitely consider it.  Installing programs is a really mundane task, and enhancing the UX during that stage would be great.

Regards,

UIdev
Vassil Petev
Telerik team
 answered on 11 Nov 2008
2 answers
208 views
Azdravei (and apologies for mangling your words),

I am trying to inherit from the RadComboBox in my winform project. For starters, I simply created a class that inherited the RadComboBox and placed an instance of it on a form, right next to the original, uninherited RadComboBox. The two controls look radically different, with my inherited version looking like a broken misfit unworthy of the name Telerik.

I would like to know how to properly inherit and extend Rad controls. In my case, I simply want to add a field and property to the ComboBox to remember its previous SelectedIndex.

Thank you,
Guillaume
Guillaume Crétot Richert
Top achievements
Rank 1
 answered on 10 Nov 2008
1 answer
136 views
I have a C# WinForm demo that is based on a Shaped Form with a Docking Manager on it and a few Docking Panels.  If I drag a Docking Panel out of the form to create a new window, the new form appears to be a Windows Form.  Is there a way to have the new window be created as a Shaped Form with the same style as the one the Docking Panel came from?

Julian Benkov
Telerik team
 answered on 10 Nov 2008
3 answers
263 views
Hi :o)

I am having a strange problem when updating new added records in the grid.
I use the code below to cycle through the grid and change the ClientId to p_ClientId which works fine. This is why the msgbox is there to check the value which changes to the value in p_ClientId as expected. You can also see this reflected in the grid itself as the column is visible.

For i = 0 To Me.RadGridView1.RowCount - 1
     Me.RadGridView1.Rows(i).Cells("ClientId").Value = p_ClientId
     MsgBox(Me.RadGridView1.Rows(i).Cells("ClientId").Value)
Next

The problems comes when I save the grid to the database using the code below.

Me.ClientsSupportRequiredBindingSource.EndEdit()
Me.ClientsSupportRequiredTableAdapter.Update(Me.Clients)

The database only reflects the change in the last record. The others are added with a NULL in ClientId. This only affect this one field and only when adding a new record. If you update other fields directly using the grid then they update correctly. 

Thank you so much for your help

Tim

Julian Benkov
Telerik team
 answered on 10 Nov 2008
12 answers
453 views
Hi

In the scaling and zooming demo the controls display a popup.  How would I make something similar but which allows editing?  I'm after something like the toolbar in Word2007 that appears semi-transparent but then goes solid and allows interaction when I move my mouse over it.

Thanks

Sean
Mike
Telerik team
 answered on 10 Nov 2008
2 answers
130 views
hi all


Dose Ribbonbar support RTL and other controls same  as menus and other


because we can't use telerik controls that support RTL when other's don't support it


we need to use all controls

then i hope from telerik team to solve these problem

and do all telerik controls to support RTL, not some of them >>> same as RadGridView

with my thank's
Nick
Telerik team
 answered on 10 Nov 2008
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?