Telerik Forums
UI for WinForms Forum
1 answer
93 views
I can't find any control that works like the ASP.NET Schedule control on the Win32 platform. Am I blind og doesn't it exist?

Best regards
Dan
Boyko Markov
Telerik team
 answered on 21 May 2008
1 answer
102 views
A quick question about standard control properties;

I have just started using the Winforms control set and started throwing some controls onto the forms expecting to have little problem when swapping out standard controls (buttons, check boxes) etc.  I was surprised to find that the checkbox doesn't have a checked property??  Obviously I should be using IsChecked, but why the deviation from having the standard properties.  I assumed that I should be able to simply swap out the basic UI controls without issue.  Am I missing something very obvious here??

Thanks in advance.
Georgi
Telerik team
 answered on 20 May 2008
1 answer
144 views
The SortChanging-Event does create an wrong handler:

It should be (original documentation):
Private Sub radGridView1_SortChanging(ByVal sender As Object, ByVal e As SortChangingEventArgs)

It is (my project):
Private Sub rad_grid_SortChanging(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCollectionChangingEventArgs) Handles rad_grid.SortChanging

ergo, there no methods like e.NewSortExpression, etc.

I use the Version 6.0.2!

regards
Michael
Jordan
Telerik team
 answered on 20 May 2008
1 answer
195 views
I have a RadGridView which I clear the rows from, then add 5 or so records.  The bottom border is missing though...I can see the vertical column lines, but nothing at the bottom...is this a bug?

Screenshot
Nikolay
Telerik team
 answered on 19 May 2008
2 answers
70 views
I have used the Q3 2007 RADdatetimepicker on a windows form in my project. When I upgraded to Q1 2008, the form shows the following error message at design time:

"Value is lower than the minimum available value"

How can I resolve this error?
Boyko Markov
Telerik team
 answered on 19 May 2008
1 answer
122 views
I have a winforms application correctly displaying data from a dataset.

When a user double clicks on a row it opens a document associated with that row - I want the row to then be highlighted (ie create a border around it) so that the user knows they have viewed that item.

the code i'm using for this is:

 dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderColor = Color.Blue
        dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderColor = Color.Blue
        dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.OuterInnerBorders
        dg2.Rows(dg2.SelectedRows(0).ViewInfo.CurrentIndex).VisualElement.DrawBorder = True

this works fine - until i use the scroll bars - the highlights stay in the same place visually - but this now highlights the wrong items.

Help please......
Jack
Telerik team
 answered on 19 May 2008
4 answers
142 views
With the Q3 2007 this lines works

        For Each column As Telerik.WinControls.UI.GridViewDataColumn In RadGridView.MasterGridViewTemplate.Columns
            column.Filter.Function = Telerik.WinControls.UI.GridKnownFunction.Contains
        Next

but with the latest version i obtain the error
Error    1    'Function' no es un miembro de 'Telerik.WinControls.Data.FilterExpression'.
(Function is not a member of Telerik.WinControls.Data.FilterExpression)

Sorry for my english, i'm spanish.

Jordan
Telerik team
 answered on 17 May 2008
3 answers
246 views
Hi,
    if I try to cancel a delete action in the RadGridView, I got a execption error.

The problem appear in the Option dialog of the radRibbon. In this dialog I got a radGridview, if something are deleted, I check if I can delete it. If not a set the e.cancel = true. If e.cancel=true the system give me this error:

System.ArgumentOutOfRangeException was unhandled  
  Message="L'index Ã©tait hors limites. Il ne doit pas Ãªtre négatif et doit Ãªtre inférieur Ã  la taille de la collection. Nom du paramètre : index" 
  ParamName="index" 
  Source="mscorlib" 
  StackTrace:  
       Ã  System.Collections.ArrayList.get_Item(Int32 index)    Ã  Telerik.WinControls.UI.GridViewInfo.DeleteRow(GridViewDataRowInfo[] rows)    Ã  Telerik.WinControls.UI.GridTableBodyElement.ProcessCmdKey(Keys keyData)    Ã  Telerik.WinControls.UI.RadGridView.ProcessCmdKey(Message& msg, Keys keyData)    Ã  System.Windows.Forms.Control.PreProcessMessage(Message& msg)    Ã  System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)    Ã  System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)    Ã  System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)    Ã  System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)    Ã  System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)    Ã  System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)    Ã  System.Windows.Forms.Form.ShowDialog(IWin32Window owner)    Ã  System.Windows.Forms.Form.ShowDialog()    Ã  Progest.ProgestVB.frmMain.RadRibbonBar1_OptionsButton_Click(Object sender, EventArgs e) dans C:\DotNet_WS\Progest\Dev\Progest\Forms\frmMain.vb:ligne 191    Ã  System.EventHandler.Invoke(Object sender, EventArgs e)    Ã  Telerik.WinControls.RadItem.OnClick(EventArgs e)    Ã  Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)    Ã  Telerik.WinControls.RadItem.DoClick(EventArgs e)    Ã  Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)    Ã  Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)    Ã  Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)    Ã  Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)    Ã  Telerik.WinControls.RadElement.DoMouseDown(MouseEventArgs e)    Ã  Telerik.WinControls.RadControl.OnMouseDown(MouseEventArgs e)    Ã  System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)    Ã  System.Windows.Forms.Control.WndProc(Message& m)    Ã  System.Windows.Forms.ScrollableControl.WndProc(Message& m)    Ã  Telerik.WinControls.RadControl.WndProc(Message& m)    Ã  Telerik.WinControls.UI.RadPopupControl.WndProc(Message& m)    Ã  System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)    Ã  System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)    Ã  System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)    Ã  System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)    Ã  System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)    Ã  System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)    Ã  System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)    Ã  System.Windows.Forms.Application.Run(Form mainForm)    Ã  Progest.ProgestVB.Program.Main(String[] args) dans C:\DotNet_WS\Progest\Dev\Progest\Main.vb:ligne 17    Ã  System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)    Ã  System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)    Ã  Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()    Ã  System.Threading.ThreadHelper.ThreadStart_Context(Object state)    Ã  System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)    Ã  System.Threading.ThreadHelper.ThreadStart()  
  InnerException:  

I try to use e.cancel=true in the validating event and all work good. I have trouble only in the deleting event.

The exception are on the line:  opt.ShowDialog()

        Private Sub RadRibbonBar1_OptionsButton_Click(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles RadRibbonBar1.OptionsButton.Click  
            Dim Opt As New dlgOptions  
            Opt.ShowDialog()  
            Opt.Dispose()  
        End Sub 

here the deleting function:
        Private Sub RadGridSegments_RowDeleting(ByVal sender As ObjectByVal e As Telerik.WinControls.UI.RowDeletingEventArgs) Handles RadGridSegments.RowDeleting  
            If oSegment.PeutEffacer(e.Row.Cells("ID").Value) = False Then 
                MessageBox.Show(RM.GetString("dlgConfig_EffSegment"), "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)  
                e.Cancel = True 
            End If 
        End Sub 

any suggestion?
Jack
Telerik team
 answered on 17 May 2008
3 answers
135 views
Ok, so I have the trial for the Q1 2008 Winforms and I would like to test out the desert theme...actually...any theme would be nice.

I create a new radform, set the theme to Desert and in the designer it looks great. I run it...everything goes back to plain.

If I choose other themes most of them don't even change from the default. The few that do still don't show anything at runtime.

What am I missing?

David
Peter
Telerik team
 answered on 17 May 2008
1 answer
596 views

I'm in the process of resolving the issues created by upgrading to Q1 2008 for all of my instances of the RadGridView control.  In Q3 2007, I was able to loop through the selected rows and add the value of a specific cell to a generic list by doing the following:

Dim mPartNumberList As New List(Of String)
Dim selectedRows As List(Of GridViewRowInfo) = PartListRadGridView.SelectedRows

For Each row As GridViewRowInfo In selectedRows
     mPartNumberList.Add(Convert.ToInt32(row.Cells(1).Value))
Next

This now fails.  What is the equivalent in Q1 2008?

Thanks.

Nikolay
Telerik team
 answered on 17 May 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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?