Telerik Forums
UI for WinForms Forum
36 answers
737 views
We are binding our grids to a BindingList<T> where T is a business object that implements IDataErrorInfo.

How do we "hook up" data validation in the GridView in this case?

When we had it bound to the Microsoft DataGridView we did not have to do anything. The error icons automatically appeared in the cell using the text defined using the IDataErrorInfo properties. But this does not appear to work with the GridView?

I read through what I could find on validation in the documentation and it appeared to require writing code in the Validating events. Is this still required when the binding source uses IDataErrorInfo?

Thanks!
Allen
Top achievements
Rank 1
 answered on 21 Dec 2010
2 answers
512 views
Hi,

Is there a way to set readonly to checkboxes within the treeview?

There is an Enabled property that will give me a similar effect I want however it does also disable the scrollbar access, which the screen view cannot be scroll to up or down.

Can you help? Many thanks in advance.

Dean Marriott
Top achievements
Rank 1
 answered on 21 Dec 2010
5 answers
190 views
Is it possible to group by date similiar to outlook?$0$0$0$0Like:$0$0$0$0$0Today$0$0Yesterday$0$0Sunday$0$0Saturday$0$0...$0$0Last Week$0$0This Month$0$0Last Month$0$0Older$0
Richard Slade
Top achievements
Rank 2
 answered on 20 Dec 2010
1 answer
145 views
I have added a  GridViewMultiComboBoxColumn column from code behind into a gridview.  Everthng works well but the drop down is very narrow and does not display the entire contents in each row.  What is the best way to size this control so that all values are displayed in its entirety.  Some of the things I have tried did not work.

 

cboCategory.FieldName =

"Category"

 

 

 

 

 

 

'cboCategory.HeaderText = "Category"

 

 

 

 

 

cboCategory.DataSource = objDT

cboCategory.ValueMember =

"Category"

 

cboCategory.DisplayMember =

"Category"

 

 

'cboCategory.Width = 0.2 * Me.RadQueuedFiles.Width

 

cboCategory.AutoSizeMode = BestFitColumnMode.DisplayedDataCells

 

'cboCategory.BestFit()

 

Richard Slade
Top achievements
Rank 2
 answered on 20 Dec 2010
3 answers
76 views
Put this in the startup code (After the fill.database:
InitializeTimeZones()
  
  
Here is The VB coding. 
  
  
  Private Sub InitalizeTimeZones()
        ddTimeZones.SortStyle = Telerik.WinControls.Enumerations.SortStyle.Ascending
        ddTimeZones.DataSource = Time.GetSchedulerTimeZones
        ddTimeZones.DisplayMember = "List"
    End Sub
    Private Sub RadButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton1.Click
        RadScheduler1.ActiveView.DefaultTimeZone = DirectCast(ddTimeZones.SelectedValue, SchedulerTimeZone)
    End Sub
    Private Sub RadButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton2.Click
        Dim view As SchedulerDayViewBase = TryCast(RadScheduler1.ActiveView, SchedulerDayViewBase)
        If view IsNot Nothing Then
            view.TimeZones.Add(DirectCast(ddTimeZones.SelectedValue, SchedulerTimeZone))
        End If
    End Sub
Dobry Zranchev
Telerik team
 answered on 20 Dec 2010
3 answers
151 views
I have created an unbound grid as follows

RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("GUID"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("P_ID"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("T_ID"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("Project_Name"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("T Information"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("File_Path"))
            RadQueuedFiles.Columns.Add(New GridViewTextBoxColumn("File Name"))
            RadQueuedFiles.MasterTemplate.AllowAddNewRow = False
  
  
            RadQueuedFiles.AutoSizeRows = True
            RadQueuedFiles.Columns(0).IsVisible = False
            RadQueuedFiles.Columns(1).IsVisible = False
            RadQueuedFiles.Columns(2).IsVisible = False
            RadQueuedFiles.Columns(3).Width = 0.15 * Me.RadQueuedFiles.Width
  
            RadQueuedFiles.Columns(4).DisableHTMLRendering = False
            RadQueuedFiles.Columns(4).Width = 0.55 * Me.RadQueuedFiles.Width
  
            RadQueuedFiles.Columns(5).IsVisible = False
  
RadQueuedFiles.Columns(6).Width = 0.35 * Me.RadQueuedFiles.Width
RadQueuedFiles.AllowEditRow = False
RadQueuedFiles.AllowAddNewRow = False
  
Dim descriptor As New GroupDescriptor()
descriptor.GroupNames.Add("Project_Name", System.ComponentModel.ListSortDirection.Ascending)
Me.RadQueuedFiles.GroupDescriptors.Add(descriptor)


When I run the program and add rows programatically, it groups by value in GUID column and not the project name... sample add is below

RadQueuedFiles.Rows.Add(Guid.NewGuid, cboProjectName.SelectedValue, RadT.CurrentRow.Cells(0).Value, cboProjectName.Text, strProjectIdentifier, file, file.Split(

"\")(file.Split("\").Count - 1))

What am I missing?

 

Richard Slade
Top achievements
Rank 2
 answered on 20 Dec 2010
4 answers
293 views
I have a WinForms dropdown list in DropDownList Sytle that is bound to a datatable.  I've read several articles in the forums, but found nothing to either let me set the selection to blank after binding, or insert a "Please Select" selection either before or after binding.

I've tried setting the text property and the Null Text property and these don't work either.

Any suggestions?

Julian Benkov
Telerik team
 answered on 20 Dec 2010
1 answer
128 views
I have a shaped form that looks normal in the designer, but when actually showing the form in the application its just a gray square. The controls are missing on it as well...

Can't seem to attached files right now, so no screen shots. 


Svett
Telerik team
 answered on 20 Dec 2010
4 answers
90 views
Hi,

I have succeeded in creating my own custom appointments, binded with a list of business object. Now, I would like to make a button on top of the screen to allow the user to save all his changes once he finishes assigning and arranging all of his appointments.

Is there a method similar to the GetChanges of the normal windows data binding? I am using the SchedulerBindingDataSource to bind the Scheduler with my list. 

Thanks in advance for your help.

Regards.
John
Dobry Zranchev
Telerik team
 answered on 20 Dec 2010
4 answers
124 views
Hello everyone. I'm just starting my first Telerik Windows Application. I needed a bit of advice regarding UI controls. My form will be re-sizable. I need to control the UI control placements using some layout engines. Kindly guide me if telerik has some layout provided or thngs to keep in mind microsoft's own layout controls. Thank you.
Richard Slade
Top achievements
Rank 2
 answered on 20 Dec 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)
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?