Telerik Forums
UI for WinForms Forum
1 answer
207 views
Hi All,

I am wondering how to programable change the ForeColor of a toolstrip label. The following code does not work.

tslMode.ForeColor = Color.Red

Thanks in advance
Mark

Martin Vasilev
Telerik team
 answered on 12 Nov 2009
6 answers
1.6K+ views
I am evaluating RadControls for WinForms, particularly the GridView and so far am impressed.  I was wondering though, is there a way to check if a row or cell is dirty, or has been changed?  It would be great if I could do this in the CurrentRowChanging event.
Martin Vasilev
Telerik team
 answered on 12 Nov 2009
7 answers
438 views
I'm trying to "Conditionally Format" a Row in a different color whose Date value in a specified Column is equal to a specified value.  I added ConditionalFormattingObject using RadGridView.Columns.Item("Date Column's Came").ConditionalFormattingObjectList.Add method.  I haven't been able to get it to work with comparison values other than blank.

I know I can always manually implement conditional formatting using the RowFormatting or CellFormatting Events.  However, that means the user can't add, edit or delete the formatting (unless you also implement your own Conditional Formats Editor) it and it can't be saved / loaded by SaveLayout / LoadLayout (unless you manually add / remove-interpret it before / after the calls to SaveLayout / LoadLayout ).  Getting the ConditionalFormattingObject to support comparing non-blank Date values would still be the ideal solution.

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 11 Nov 2009
1 answer
138 views
Hello

Currently I have the following problem: In my solution there is a radgridview object bound to a MS SQL table containing one string field, three numeric fields and one boolean field. None of these fields are allowed to be NULL. If I click on "new row" the editor of the first field opens correctly. Now if I click to another row in the table the grid raises the DataError event because the field values are not set. So far, so good.

In my event handler I want to check if all values are empty and then cancel the "add new row" process. So I want to check the values of the problem line by using GridViewDataRowInfo myRow = radGrid.Rows[e.RowIndex] and then loop over all cell values.
But when the event is raised I get e.RowIndex=0 and e.ColumnIndex=-1. RowIndex points to the first existing row in the table but this is not the problem line. Also the columnindex points not to the problem field.

Do I do a mistake by checking RowIndex/ColumnIndex for a new row?

I use Q2/2009 of the telerik suite.

Any ideas or better solutions to solve this problem are welcome.

Kind regards
Roger
Martin Vasilev
Telerik team
 answered on 11 Nov 2009
5 answers
193 views
Hello,

I have a RadDock with MDI enabled and when opening child forms they do not appear maximized.  I have set the property "WindowState" to "Maximized" on the RadForm and set the "MaximizeBox" and "MinimizeBox" properties to false.  However when I open up these forms in the RadDock they are not maximized and they still have the Maximize and Minimize buttons in the top right hand corner.  When I double click on the MenuBar they go away and appear maximized at that point.  Please advise.

Thanks,  

ayumi hinako
Top achievements
Rank 1
 answered on 11 Nov 2009
1 answer
111 views

Good morning.

            I have a problem with the DocumentWindow in your RadDock class. I downloaded your RadControls for WinForms Q3 2009 release. I did the following steps:

 

  1. New project, WindowsForm Application (with Visual Basic 2008 Express Edition).
  2. Insert a RadDock.
  3. Insert a RadMenu, one item only (“Add”).
  4. Here is the code in the form:

 

Imports Telerik.WinControls.UI.Docking

 

Public Class Form1

 

  Private Sub RadMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadMenuItem1.Click

    RadDock1.Visible = False

 

    Dim docW As DocumentWindow = New DocumentWindow("Test")

    Dim pnl As New Panel

    pnl.BorderStyle = BorderStyle.FixedSingle

    pnl.Dock = DockStyle.Fill

    docW.Controls.Add(pnl)

    RadDock1.AddDocument(docW)

 

    RadDock1.Visible = True

  End Sub

End Class

 

I programmatically insert a new DocumentWindow with a Panel in it. If you omit instruction “RadDock1.Visible = False”, all is ok, otherwise the panel will overlap the tab. If you click the small down arrow on the right (it’s almost invisible) and select the window (Test), all returns ok.

In my application, obviously much more complicated, I need to make invisible the RadDock during certain operations. What can I do to solve this problem?

 

Thank you.

Georgi
Telerik team
 answered on 11 Nov 2009
1 answer
170 views
Hi i have a radtab strip . Inside that i have two grids and a treeview . I had set the Tab content panel  Autoscroll property to false  . I need to enable the horizontal scroll bar only not the vertical scroll bar . When the autoscroll property is set to the Tab content panel when i scroll the entire content panel is scrolling . I need the only one grid should scroll while the other controls need not be scroll . How to enable the Horizontal scroll bar of the Tab content panel manually? Please suggest me a solution.Thanks .
Vassil Petev
Telerik team
 answered on 11 Nov 2009
1 answer
250 views

Good morning.

            I have a problem with the DocumentWindow in your RadDock class. I downloaded your RadControls for WinForms Q3 2009 release. I did the following steps:

 

  1. New project, WindowsForm Application (with Visual Basic 2008 Express Edition).
  2. Insert a RadDock.
  3. Insert a RadMenu, one item only (“Add”).
  4. Here is the code in the form:

 

Imports Telerik.WinControls.UI.Docking

 

Public Class Form1

 

  Private Sub RadMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadMenuItem1.Click

    RadDock1.Visible = False

 

    Dim docW As DocumentWindow = New DocumentWindow("Test")

    Dim pnl As New Panel

    pnl.BorderStyle = BorderStyle.FixedSingle

    pnl.Dock = DockStyle.Fill

    docW.Controls.Add(pnl)

    RadDock1.AddDocument(docW)

 

    RadDock1.Visible = True

  End Sub

End Class

 

I programmatically insert a new DocumentWindow with a Panel in it. If you omit instruction “RadDock1.Visible = False”, all is ok, otherwise the panel will overlap the tab. If you click the small down arrow on the right (it’s almost invisible) and select the window (Test), all returns ok.

In my application, obviously much more complicated, I need to make invisible the RadDock during certain operations. What can I do to solve this problem?

 

Thank you.

Georgi
Telerik team
 answered on 11 Nov 2009
4 answers
142 views
In Q2 version there was an EnsureChildElements method for the RadItem.
After I updated my project to Q3 version this method cannot be found and I get an error.

Any ideas?

Thanks in advance
Georgi
Telerik team
 answered on 11 Nov 2009
3 answers
207 views

I have a RadGridView which has a row for every employee in the database. Users manage employees using this Grid, so they have the capability to add, modify, and remove rows.

I have been able to use the RowsChanging/Changed events to call the appropriate DAL methods to add/remove the information from the underlying database, but when the user adds a row, the row is immediately sorted by whatever sort the user has chosen, and so it "appears" to disappear. In actuality, it has simply placed itself in the appropriate spot in the list according to the sort function. I would like to hook into an event that occurs when the user finishes adding the row and select the row so that the user can see that it was added successfully and did not disappear.

 

How would I accomplish this?

Martin Vasilev
Telerik team
 answered on 11 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
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?