Telerik Forums
UI for WinForms Forum
0 answers
188 views
Hi Telerik
i am having issue with RadGridView most of time it works fine but some times when i load gridview it comes with blank rows the number of rows are same as my datatable row count but there is no data in rows

im using datatable to loop grid and add each row one by one

example
RadGridView.Rows.Clear()

for i=0 to dtTable.rows.count-1
    RadGridView.Rows.AddNew()
    RadGridView.Rows(i).Cells(1).Value ="<value>"
    ..
next

now most of time it works fine but some time it just shows me blank rows with no data
i was using Q2 2009 now i have updated with Q3 2009 but still same problem

help me please thanks

Kind Regards:
Harinder Singh

PunjabiSingh
Top achievements
Rank 2
 asked on 12 Nov 2009
1 answer
105 views
I am using the following code to set the datasource for combobox Column

((GridViewComboBoxColumn)radGridView1.Columns["Name"]).DataSource = from medicine in db.Medicines
                                                                                                                         select medicine;
 ((GridViewComboBoxColumn)radGridView1.Columns["Name"]).DisplayMember = "Name";
((GridViewComboBoxColumn)radGridView1.Columns["Name"]).ValueMember = "ID";

during adding new row in grid, when i click on combo column, following exception throws

but getting the following Exception

"The list must be an IBindingList to AddNew."

a quick response would be highly appreciated

thanks
Julian Benkov
Telerik team
 answered on 12 Nov 2009
1 answer
218 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
445 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
143 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
197 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
116 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
175 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
259 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
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?