Telerik Forums
UI for WinForms Forum
1 answer
263 views

During the CellBeginEdit event I need to supply a default value for the cell if there is no data in the cell and only during an Edit event. I initialized the default value during the CellEditorInitialized event and all works, the default value appears.
 

 

 

Private Sub gv_CellEditorInitialized(ByVal sender As ObjectByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles gv.CellEditorInitialized  
    If TypeOf gv.ActiveEditor Is RadTextBoxEditor Then 
        gv.ActiveEditor.Value = IIf(object.Data= 0, "",object.Data)  
    End If 
End Sub

Now when the Enter Key is pressed (accepting the default value) the CellEndEdit event is fired and I have the following code:
If IsNumeric(e.Value.ToString) Then 
  object.data = e.Value  
End If 
The issue is that the Cell Value (e.value) is never equal to the default value, it's empty.

Any help greatly appreciated.



Jack
Telerik team
 answered on 18 Nov 2009
3 answers
193 views
What's the recommended solution for expanding a tree view when bound to an object data source.  The created nodes are collapsed by default and I don't see a way to change the default behavior, nor do I see any events indicating when a node is added
Victor
Telerik team
 answered on 18 Nov 2009
1 answer
149 views
Hello!

I have a really strange behavior with my project. If I put a RadImageButton to the ToolStripItem and I assign an image with red in it, it is not showing it. In design mode everything works fine, but as soon as I start the program (even from VS), I got an empty space for the image. 

I tried with several pictures (mainly with cancel and stop and so on), but as soon as the red appears, my image disappear. Other images works fine. The images are all pngs with transparent background.

I attached two screenshots and you can download a simple project from http://www.wellensteyn.ro/temp/HQ.ZIP
Does anybody experienced something like this? What can be the problem? 

Thanks: Botond
Nikolay
Telerik team
 answered on 18 Nov 2009
3 answers
494 views
Hi,

I have a GridView with a GridViewComboBoxColumn that has a list of strings as the datasource and is bound to a string property in my ViewModel. Is it possible to let the user add new values to the string-list by typing in the GridViewComboBoxColumn editor and not reject those values when they are not already in the list?

At the moment, when I type a string that is not already in the bound list, the string is saved in the editor (when I enter the cell again after leaving it, the value is still there) but not propagated through the ValueChanging event and also not written to the underlying ViewModel.

I'm looking for a way to either
  1. Add the new value directly to the string-list and to the ViewModel's property
  2. Get notified about the change with the new, not-in-list value and be able to put it in the string-list manually

Is there a way to do this?

Thanks in advance.
Jack
Telerik team
 answered on 18 Nov 2009
1 answer
235 views
I'm struggling with an easy (so it seems) task:

print a chart on a landscape A4 sheet of paper so that the chart fits on the page and uses optimum space.

Any Pointers?

Regards
Erwin
Dwight
Telerik team
 answered on 18 Nov 2009
5 answers
400 views
Hi there,

how can i disable close button which is on the right top corner of the toolwindow?
I have tried Caption visible property. But i want the other two button to be visible  and only close button to be disabled.

Thanks,
Satyajeet
Nikolay
Telerik team
 answered on 18 Nov 2009
1 answer
99 views
Hi.

I need a box with scrollbars in a custom cell i am building. I haven't been able to accomplish this. What I have at the moment is a RadPanelElement with the text as html which looks OK, but there is no scroll bar in a panelelement. I would like to add a RadListBoxElement but the items do not show. I have set the minsize as stated in another thread.

Thank you
/ jorge
Martin Vasilev
Telerik team
 answered on 17 Nov 2009
1 answer
579 views
Hi,
Is there any way to hide the dropdown arrow in order to create an autocomplete textbox? I know you can do it in your ASP controls but I can't find an equivalent way to do it in the winforms controls. Thanks
Deyan
Telerik team
 answered on 17 Nov 2009
9 answers
222 views
On Rows that have ConditionalFormattingObject's on one or more Columns, it's ignoring at least the MiddleRight (if not all) value of the TextAlignment Property and left-aligning at least the numeric (if not all types of) Columns.  I verified that the TextAlignment Property is set to MiddleRight before and after adding ConditionalFormattingObject's and before and after calling the Show method on the Form.

Telerik 2009Q2 (2009.2.9.729), VS 2005 (v8.0.50727.762 SP.050727-7600), XP SP3 on Core2Duo 2.99GHZ with 3GB.


Martin Vasilev
Telerik team
 answered on 17 Nov 2009
6 answers
335 views
Hi,
i'm trying to update SummaryRowsBottom values.

in CellEndEdit I try to do this :

GridViewRowInfo pRowInfo = this.RadGridView_Name.MasterGridViewTemplate.Rows[e.RowIndex].Cells[e.ColumnIndex].RowInfo;
this.RadGridView_Name.MasterGridViewTemplate.SummaryRowsBottom.BeginItemUpdate();
pRowInfo.Cells["CellName"].Value = "10";
this.RadGridView_Name.MasterGridViewTemplate.SummaryRowsBottom.EndItemUpdate();

infact, summary rows are not updated. If i sort my grid, it'll refresh values.

Please help :p

Thanks


Martin Vasilev
Telerik team
 answered on 16 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)
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?