Telerik Forums
UI for WinForms Forum
2 answers
142 views
Hi Telerik

I've been struggling over the weekend with a problem in our app. We currently use a pageview in stack mode to display a collection of items grouped into the pageview's pages. The pageview and its pages are generated programmatically and we use another control dock/filled into the pages to contain the items.

The items display fine in stack mode but the number of items to be displayed now requires a mechanism of display which allows scrolling. I thought I woud use explorerbar for this but when I change the mode of the pageview to explorerbar the controls containing the items no longer show up in the pages. The pageview and its pages do show up.

I have not been able to reproduce the problem in a simple project (the explorerbar idea works fine in the simple project). More strangely I only need to change
RadPageView temp = new RadPageView() { Dock = DockStyle.Fill };
temp.ViewMode = PageViewMode.ExplorerBar;
to
RadPageView temp = new RadPageView() { Dock = DockStyle.Fill };
temp.ViewMode = PageViewMode.Stack;
and the rest of the code in the app creates the correct pages, controls and items and displays them.

Are there any properties I need to set specific to the explorerbar mode which will allow the content of my pages to show when in explorerbar mode?

Have you come across this problem before?

Regards
Ian Carson 
Ivan Todorov
Telerik team
 answered on 21 Dec 2011
3 answers
221 views

Hello,

 

I'm looking for the Entity Framework equivalent of dataset's tableAdapter.Fill/tableAdapter.FillByBy.

Because they were reusable to refill a GridView (Windforms), possibly using a different 'where clause'.

The only way I know to fill/refill the GridView from DB now using EF with different parameters:

this.myBindingSource.DataSource =  myNewSelectQueryObject;

the 'first fill' with this works fine, but the second one will cause the DataSource et the GirdView to be impossible to edit. (Although the BindingSource the GridView are NOT 'readonly'.) a,d EF.Refresh() doesn't seem to update records that could be in the DB but are not present in the 'EF'.

 

Thank you for your help.

Julian Benkov
Telerik team
 answered on 21 Dec 2011
2 answers
209 views
Hi ,
i am using latest telerik version
in order to make radlistview transparent to form background i had set the color of radlistview to transparent but it always show a white background on runtime.
if there is any code or method to make radlistview transparent to parent form i will appreciate help.
Best regards, jack
jack abdallah
Top achievements
Rank 1
 answered on 21 Dec 2011
5 answers
255 views
We continue to have problems with using a GridViewDateTimeColumn with DateTimeOffset. I *thought* we had this working months ago, but revisited a feature that we have not used for many months and we cannot get it to work. Don't know if it is due to the version of the controls we are using? Or something we have done.

We continue to either get "Converter can't convert" or other types of formatting errors. To help demonstrate this problem, we did a very simple sample. Just try to drop down one of the calendar drop downs and the error occurs.

Here is the code:

Imports System.ComponentModel
Imports Telerik.WinControls.UI
  
Public Class Form1
  
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        TimeCardGrid.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill
        TimeCardBindingSource.DataSource = TimeCards.Retrieve()
    End Sub
  
End Class
  
Public Class TimeCard
    Public Property StartTime As DateTimeOffset?
    Public Property endTime As DateTimeOffset?
End Class
  
Public Class TimeCards
    Inherits BindingList(Of TimeCard)
  
    Public Shared Function Retrieve() As TimeCards
        Dim timeCardList As New TimeCards From
                {New TimeCard With {.StartTime = New DateTimeOffset(2011, 12, 8, 9, 45, 30, New TimeSpan(-8, 0, 0)),
                                    .endTime = New DateTimeOffset(2011, 12, 9, 11, 45, 30, New TimeSpan(-8, 0, 0))},
                 New TimeCard With {.StartTime = New DateTimeOffset(2011, 12, 11, 9, 45, 30, New TimeSpan(-8, 0, 0)),
                                    .endTime = New DateTimeOffset(2011, 12, 12, 11, 45, 30, New TimeSpan(-8, 0, 0))}}
        Return timeCardList
    End Function
End Class
  
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits System.Windows.Forms.Form
  
    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub
  
    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
  
    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Dim GridViewDateTimeColumn1 As Telerik.WinControls.UI.GridViewDateTimeColumn = New Telerik.WinControls.UI.GridViewDateTimeColumn()
        Dim GridViewDateTimeColumn2 As Telerik.WinControls.UI.GridViewDateTimeColumn = New Telerik.WinControls.UI.GridViewDateTimeColumn()
        Me.TimeCardBindingSource = New System.Windows.Forms.BindingSource(Me.components)
        Me.TimeCardGrid = New Telerik.WinControls.UI.RadGridView()
        CType(Me.TimeCardBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.TimeCardGrid, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'TimeCardBindingSource
        '
        Me.TimeCardBindingSource.DataSource = GetType(WindowsApplication9.TimeCard)
        '
        'TimeCardGrid
        '
        Me.TimeCardGrid.Location = New System.Drawing.Point(12, 12)
        '
        'TimeCardGrid
        '
        Me.TimeCardGrid.MasterTemplate.AllowAddNewRow = False
        Me.TimeCardGrid.MasterTemplate.AllowColumnChooser = False
        Me.TimeCardGrid.MasterTemplate.AllowColumnReorder = False
        Me.TimeCardGrid.MasterTemplate.AllowDeleteRow = False
        Me.TimeCardGrid.MasterTemplate.AllowDragToGroup = False
        Me.TimeCardGrid.MasterTemplate.AutoGenerateColumns = False
        GridViewDateTimeColumn1.DataType = GetType(System.Nullable(Of System.DateTimeOffset))
        GridViewDateTimeColumn1.FieldName = "StartTime"
        GridViewDateTimeColumn1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
        GridViewDateTimeColumn1.FormatString = "{0:d}"
        GridViewDateTimeColumn1.HeaderText = "StartTime"
        GridViewDateTimeColumn1.Name = "StartTime"
        GridViewDateTimeColumn2.DataType = GetType(System.Nullable(Of System.DateTimeOffset))
        GridViewDateTimeColumn2.FieldName = "EndTime"
        GridViewDateTimeColumn2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
        GridViewDateTimeColumn2.FormatString = "{0:d}"
        GridViewDateTimeColumn2.HeaderText = "EndTime"
        GridViewDateTimeColumn2.Name = "EndTime"
        Me.TimeCardGrid.MasterTemplate.Columns.AddRange(New Telerik.WinControls.UI.GridViewDataColumn() {GridViewDateTimeColumn1, GridViewDateTimeColumn2})
        Me.TimeCardGrid.MasterTemplate.DataSource = Me.TimeCardBindingSource
        Me.TimeCardGrid.MasterTemplate.ShowFilteringRow = False
        Me.TimeCardGrid.MasterTemplate.ShowRowHeaderColumn = False
        Me.TimeCardGrid.Name = "TimeCardGrid"
        Me.TimeCardGrid.ShowGroupPanel = False
        Me.TimeCardGrid.Size = New System.Drawing.Size(315, 235)
        Me.TimeCardGrid.TabIndex = 2
        Me.TimeCardGrid.Text = "RadGridView1"
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(347, 263)
        Me.Controls.Add(Me.TimeCardGrid)
        Me.Name = "Form1"
        Me.Text = "Form1"
        CType(Me.TimeCardBindingSource, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.TimeCardGrid, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
  
    End Sub
    Friend WithEvents TimeCardBindingSource As System.Windows.Forms.BindingSource
    Friend WithEvents TimeCardGrid As Telerik.WinControls.UI.RadGridView
  
End Class


Please let us know what we need to do to get this to work.

THANKS!
Peter
Telerik team
 answered on 21 Dec 2011
1 answer
97 views
is there a method to make listview transparent
Ivan Todorov
Telerik team
 answered on 21 Dec 2011
2 answers
282 views
Hello, I am having an issue rendering RadControls For WInforms in the VS2008 IDE, seems when I drop any controls on a form they do not render on the page so that can click resize move around etc. I see all controls represented at the bottom of the form as if they were objects that are not visually represented such as DataBindingDatasources controls.  I have uninstalled the Controls and re-installed but this has not solved the issue. (See attached Screen shot)
  • Visual Studio 2008 Pro Sp1
  • Using Microsoft.Net v2.0.50727 (with 3, 3.5 framework)
  • Windows Server 2003 sp2
  • WinForms_2011_3_11_1116

Thank You
Kerry
Top achievements
Rank 1
 answered on 20 Dec 2011
1 answer
108 views
Hello Guys,

        private void radGridViewTakeSomeData_CellValueChanged(object sender, GridViewCellEventArgs e)
        {
            bool isChecked = (bool)e.Row.Cells[4].Value;
            if (isChecked == true)
            {
                            //Do something....
            }
        }

When I check GridViewCheckBoxColumn , the event acts the moment I click somewhere else in the grid. Should I change the event I'm using or is any "End Edit Mode" property in order to act immediately after I tick the Checkbox??

Thanks in advance!!
Ivan Petrov
Telerik team
 answered on 20 Dec 2011
4 answers
167 views
Dear,

I would like to customize sorting with the treeview.

For instance I bound treeview to Person class entity list.

Then I would like to sort by firstname or lastname or age.

I tried SortDescriptors without success.

Thanks

Marc
Julian Benkov
Telerik team
 answered on 20 Dec 2011
1 answer
149 views
Hello

I am setting a flag that is evaluated in ItemCheckedChanging. At times I need to stop an item from being checked. I have tried e.Cancel but it does not seem to work. In addition I looked for a property that contained previous checked state property but did not find anything.

I would like to be able to keep an item from being checked on a per item base.

Any suggestions?

Thank You
Stefan
Telerik team
 answered on 20 Dec 2011
1 answer
284 views
Hi

I have a problem with the ValueChanged event. It does not fire when i populate the record, but when the control is shown.
This is because the control is binded to the object. So I really dont know if the change is done by the user or bye the binding it self. 
Is there a way to check if the value is set by the object binding or by the user?

Regards
Svein Thomas

Peter
Telerik team
 answered on 19 Dec 2011
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
ProgressBar
CheckedDropDownList
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
VirtualKeyboard
NavigationView
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?