Telerik Forums
UI for WinForms Forum
3 answers
164 views
Hi,

I want to disable the most of the controls in the form. is there a way to do it for all of them at the form level.

also, I have a requirement of NOT greying out the controls when they are disabled.

thanks for your advice and help in advance.

regards,
Khizar
Nikolay
Telerik team
 answered on 09 Jul 2010
1 answer
195 views
Hi!

I have encountered a problem with RadGrid when using AutoGenerateColumns=false. Having defined the required columns and setting the property to false (both in code and in the property designer) the resulting output when the grid is bound to a data reader is far from what is to be expected.

The columns I specify do not take on the values defined by the fields assigned to them, rather they display the contents of coumns in the order the query returns them, append the remaining columns (ignoring the autogenerate setting) to my defined set, ie

Query returns ID, strSurname, StrForename, strPhone, strLocation

I defined a simple grid (as a test) to display only the column strSurname with the heading "Surname"

What happened was I got a grid with columns "Surname",  lngID, strSurname, strForename, strPhone

With 'Surname' displaying the values for lngID, 'lngID' displaying the values for strSurname etc.
Julian Benkov
Telerik team
 answered on 09 Jul 2010
2 answers
271 views
Hi,

I'm trying to list some information about tasks and when I'm trying to set a date/time entry, I'm only able to edit the date part, not the time part.

I've tried to change the DataEditFormatString to be able to change the time part but without success.

What am I doing wrong?

Here is a code of one of the GridViewDateTimeColumn.

            gridViewDateTimeColumn1.DataEditFormatString = "{0:D}"; 
            gridViewDateTimeColumn1.DataType = typeof(System.DateTime); 
            gridViewDateTimeColumn1.FieldAlias = "DateBegin"; 
            gridViewDateTimeColumn1.FieldName = "DateBegin"; 
            gridViewDateTimeColumn1.HeaderText = "DateBegin"; 
            gridViewDateTimeColumn1.IsAutoGenerated = true; 
            gridViewDateTimeColumn1.UniqueName = "DateBegin"; 
            gridViewDateTimeColumn1.Width = 140; 

Thanks,
Alexander
Telerik team
 answered on 08 Jul 2010
1 answer
351 views
1. Thanks for fixing the typo (shuld be documented in the Release Notes)
2. In my app The event does not get fired, I use it to add an indication about Item Counts per Group.

What's the strategy to update Group Summaries with custom data?
This is the code I currently use:

   void OctopusGridView_GroupSummaryEvaluate(object sender, GroupSummaryEvaluationEventArgs e) 
        { 
            string suff = String.Concat(" (", e.Group.RowCount.ToString(), ")"); 
 
            if(e.FormatString.EndsWith(";")) 
            { 
                e.FormatString = e.FormatString.Substring(0, e.FormatString.Length - 1); 
            } 
 
            if (!e.FormatString.EndsWith(suff)) 
            { 
                e.FormatString = String.Concat(e.FormatString, suff); 
            } 
        } 

Alexander
Telerik team
 answered on 08 Jul 2010
1 answer
204 views
I have created a simple winform, added a RadButton, hooked up a click event handler, and then attempted to assign shortcut keys to it but cannot get it to work at all. I am using 2010 Q1 release.

Is there a bug? If you could post a working sample of accomplishing this, I would appreciate it.
Stefan
Telerik team
 answered on 08 Jul 2010
1 answer
145 views

We had quite lot problems with the GridViewMaskBoxColumn in Numeric masktype. We use "," not "." for decimal point that coused lot of bugs in the GridViewMaskBoxColumn. And altought the grid was setted to our localization setting the GridViewMaskBoxColumn still used the point. So here is the sollution what we figured out with the help of the telerik team.

This will hold the new row after we begin the edit.
Private newRow As Telerik.WinControls.UI.GridViewDataRowInfo 

 

 

Private Sub RadGridView1_RowsChanged(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCollectionChangedEventArgs) Handles RadGridView1.RowsChanged

 

 

 

If e.Action = Telerik.WinControls.Data.NotifyCollectionChangedAction.Add Then

 

newRow =

 

TryCast(e.NewItems(0), Telerik.WinControls.UI.GridViewDataRowInfo)

 

 

 

End If

 

 

 

End Sub

 


In CellEndEdit event we replace the point with the comma. If the row has an index of -1 then thats a newrow.

Private Sub RadGridView1_CellEndEdit(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles RadGridView1.CellEndEdit  
        If e.RowIndex >= 0 And e.RowIndex < RadGridView1.Rows.Count And e.ColumnIndex >= 0 And e.ColumnIndex < RadGridView1.Columns.Count Then  
            If RadGridView1.Columns(e.ColumnIndex).GetType.Name = "GridViewMaskBoxColumn" Then  
                Dim cell As Telerik.WinControls.UI.GridViewCellInfo = RadGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex)  
                cell.Value = cell.Value.ToString().Replace("."c, ","c)  
            End If  
        Else  
            If newRow IsNot Nothing Then  
                For Each cella As Telerik.WinControls.UI.GridViewCellInfo In newRow.Cells  
                    If cella.Value IsNot Nothing And cella.ColumnInfo.GetType.Name = "GridViewMaskBoxColumn" Then  
                        cella.Value = cella.Value.ToString().Replace("."c, ","c)  
                    End If  
                Next  
            End If  
        End If  
    End Sub 

In the CreateRow we can give starting values for the cells if they were left blank.

Private Sub RadGridView1_CreateRow(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.GridViewCreateRowEventArgs) Handles RadGridView1.CreateRow  
        For i As Int32 = 0 To e.RowInfo.Cells.Count - 1  
            If IsDBNull(e.RowInfo.Cells(i).Value) Then  
                If RadGridView1.Columns(i).GetType.Name = "GridViewMaskBoxColumn" Then  
                    Dim oszlop As Telerik.WinControls.UI.GridViewMaskBoxColumn  
                    oszlop = TryCast(RadGridView1.Columns(i), Telerik.WinControls.UI.GridViewMaskBoxColumn)  
                    e.RowInfo.Cells(i).Value = "0,00" 
                End If  
            Else  
                If e.RowInfo.Cells(i).Value = "" Then  
                    If RadGridView1.Columns(i).GetType.Name = "GridViewMaskBoxColumn" Then  
                        Dim oszlop As Telerik.WinControls.UI.GridViewMaskBoxColumn  
                        oszlop = TryCast(RadGridView1.Columns(i), Telerik.WinControls.UI.GridViewMaskBoxColumn)  
                        e.RowInfo.Cells(i).Value = "0,00" 
                    End If  
                End If  
            End If  
        Next  
    End Sub 




Alexander
Telerik team
 answered on 08 Jul 2010
1 answer
128 views
We are creating a custom appointment editor dashboard that implements the IEditAppointmentDialog interface. We are not interested in inheriting from the stock dialog form however; this application addresses a business need that requires a highly customized UI for our custom Appointment derived type, and the limitations of inheriting fromt the stock form are not acceptable for this situation.

That said, casual object browser inspection of the EditAppointmentDialog lets us see that the Appointment is passed to the editor dialog by value via the Edit Appointment function. We were actually expecting that to be a reference. What we need to know, then, is what mechanism is used to pass the edited IEvent back to the Scheduler control?

Even better would be a simple overview of the the edit dialog flow. I know we could go look at the source, but if its a fairly simple then I'd rather not have to dig.



Dobry Zranchev
Telerik team
 answered on 08 Jul 2010
3 answers
138 views
I'm using the trial version of Telerik Rad WinForm Tools in Visual Studio 2010 Ultimate,
 but when I move my project in a second computer the Rad Tools doesn't work correctly.
I am asking you if the trial versions of Telerik Rad WinForm Tools have any problem and also if the new versions of Telerik Rad WinForm Tools supports all functionality of older versions.

Thank you in advance!
Vassil Petev
Telerik team
 answered on 07 Jul 2010
3 answers
669 views
First)
Need to align RadButtonElement's  to the right within RadStatusStrip.
As follows:
+------------------------------------------------------------------------------------------------------------------------------------+
                                                                                        |  radButtonElement1 |     |  radButtonElement2 |
+------------------------------------------------------------------------------------------------------------------------------------+
Is this possible?

Second)
Can give a particular theme to the radButtonElements?

Thanks
Nikolay
Telerik team
 answered on 07 Jul 2010
4 answers
841 views
Hi telerik team,


I am trying to use the RAD grid view for winform. What i need is to change the color as the user moves the mouse over the rows.
I.e. A row should change its color when user hovers the mouse and as the user leaves the mouse from this row, it should again change color. This is very critical for me so any help will be appreciated.

Please reply ASAP

Thanks
Ravi
Boryana
Telerik team
 answered on 07 Jul 2010
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?