Telerik Forums
UI for WinForms Forum
1 answer
111 views
Hello,
I have a problem with the shape of the tabstripitem with Q2 2011:
In the previous libraries version the shape of the tabstrip didn' t overcome the text of the tabstrip, while now it does (the shape is a Vs Tab shape).
I want to restore the old shape/text relation.

As attachement screenshot of the actual and desired layout.

Thank you in advance.

Stefan
Telerik team
 answered on 27 Sep 2011
7 answers
453 views
First, I am unable to get alternating row color to work. I have implemented it like this article says (http://www.telerik.com/help/winforms/gridview-styling-and-appearance-alternating-row-color.html) but all the columns remain white. Can you please tell me in which method to put

CType
(Me.RadGridView1.TableElement, GridTableElement).AlternatingRowColor = Color.Yellow

I have tried in the form load and other events of the grid, like row formatting.


Also, I am trying to implement the hover over and selected row color but when I set the Row Formatting like the following article (http://www.telerik.com/community/forums/winforms/gridview/change-color-of-selected-row-in-gridview.aspx) the row is highlighted with orange and of the two columns in the row, the one that is not selected is the correct color, blue. This changes when I click on the other cell in the row. Furthermore, the cell that is blue still has an orange border.
Martin Vasilev
Telerik team
 answered on 26 Sep 2011
2 answers
184 views
how to integrate DropDownList with treeview ?

thanks
Jack
Telerik team
 answered on 26 Sep 2011
1 answer
283 views
I want to use collapsable Key-Name pairs, similar to Points(x,y) which show on one line but can be expanded to separate x and y lines.
But I do not see the Subclass Fields in the property grid. What is missing?

  //some Subclasses  
   [Category("Detail")]
    public class WorktypeInfo
    {
        private string _WorktypeNo;
        private   string _WorktypeName;
  
        [Category("Detail")]
        public string WorktypeNo
        {
            get
            {
                return _WorktypeNo;
            }
            set
            {
                _WorktypeNo = value;
            }
  
        }
  
  
//used in Mainclass 
  
        [Category("Detail")]
        [Description("Tätigkeitscode")]
        public WorktypeInfo WorktypeInfo
        {
            get
            {
                return _WorktypeInfo;
            }
            set
            {
                _WorktypeInfo = value;
            }
        }
  
...

Any help is appreciated...Thanks  Daniel

Ivan Petrov
Telerik team
 answered on 26 Sep 2011
1 answer
267 views
Private Sub LoadSupplierCombo()
        Cursor = Cursors.WaitCursor
        tsstatus.Text = "Loading Suppliers, please wait..."
        Refresh()
        '     cbSuppliers..MasterTemplate.AutoGenerateColumns = True
 
        Dim TicketsDA As SqlDataAdapter
        Dim TicketsDS As DataSet
        Dim TicketsDV As DataView
        Dim SQLString As String = ""
 
 
        DBOpen()
        Try
 
            SQLString = "SELECT     Supplier.SupplierName AS Supplier, Supplier.SupplierAccountNo AS [Account No] " & _
"FROM         SZTickets INNER JOIN " & _
                     " SZTicketStatus ON SZTickets.statusId = SZTicketStatus.id INNER JOIN " & _
                     " SZTicketPriority ON SZTickets.priorityId = SZTicketPriority.id INNER JOIN " & _
                     " Supplier ON SZTickets.supplierId = Supplier.SupplierID " & _
"GROUP BY Supplier.SupplierName, Supplier.SupplierAccountNo " & _
"ORDER BY Supplier DESC"
 
            Dim SQLcmd As New SqlCommand(SQLString, cnn1)
            TicketsDA = New SqlDataAdapter(SQLcmd)
            TicketsDS = New DataSet
            TicketsDV = New DataView
 
            TicketsDA.Fill(TicketsDS, "Suppliers")
            TicketsDV.Table = TicketsDS.Tables("Suppliers")
 
 
            cbSuppliers.DataSource = TicketsDV
 
            SQLcmd.Dispose()
            TicketsDA.Dispose()
 
 
 
 
        Catch ex As Exception
            g_error.DBErrorMsg("Failure to load tickets", SQLString, ex)
        Finally
            dgTickets.ResumeLayout()
            DBClose()
        End Try
        Cursor = Cursors.Default
        tsstatus.Text = ""
 
        Dim columns As RadMultiColumnComboBoxElement = cbSuppliers.MultiColumnComboBoxElement
 
        For Each column As GridViewDataColumn In columns.Columns
            column.BestFit()
        Next
 
        
    End Sub


Hi

The above code loads my multi-column list box. However I would like to add <All Suppliers> at the beginning of the list as well as the supplier. I would like this to be the item selected on load.


Also, I cant find the equivalent command for combobox.items.clear() 

How do I remove all the items?

Cheers

Baz
Svett
Telerik team
 answered on 26 Sep 2011
1 answer
138 views
Okay, I'm successfully changing the backcolor of cells in my grid based on the data being populated.

What I want to do now is when a button is clicked, check to see if any of the cells still have a red background.

However, I cannot seem to get any property that will tell me if the cell has a background color of Color.Red.

Here is the code I've been trying:

for (int iRow = 0; iRow < ProductsRadGridView.Rows.Count; iRow++)
{
          for (int iCell = 2; iCell < 6; iCell++)
          {
                    if (ProductsRadGridView.Rows[iRow].Cells[iCell].Style.BackColor == Color.Red)
                    {

                    }

                    //valid = false;
                    //MessageBox.Show("One or more Line Item Values needs modification. Please make the necessary change.);
                    //return valid;
          }
}

However, the Style.BackColor returns some ambigous name called "ControlDarkDark". This is the value regardless of the back color.

How can I check what the back color really is?

Lee

Stefan
Telerik team
 answered on 23 Sep 2011
1 answer
222 views
Hi,

I have been working on a function that allows a user to search for an appointment ID, and the appointment corresponding to the appointment ID is highlighted/selected.

I have been able to do this by using the following:
Dim appt As IEvent = Nothing
appt = GetAppointment(CLng(msSearchID))
If appt IsNot Nothing Then
   SchedulerUIHelper.SelectAppointment(radScheduler1, appt, True)
End If
Private Function GetAppointment(ByVal nID As Long) As IEvent
        Dim appt As IEvent = Nothing
        Try
            For Each a As IEvent In radScheduler1.Appointments
                If a.UniqueId.KeyValue = CStr(nID) Then
                    appt = a
                End If
            Next
            Return appt
        Catch ex As Exception
            Return appt
        End Try
End Function

However, an appointment which has a RecurrenceRule (a master appointment) is not being highlighted. Recurring Appointments are also not being highlighted, but this is understandable as radScheduler1.Appointments collection does not have separate instances of the recurrence, but it does have the master appointment.

For example, an Appointment with ID 45 is a master appointment with 4 more appointments recurring daily. If the user enters 45, we select this appointment from the GetAppointment function as shown above, then pass it to SchedulerUIHelper.SelectAppointment to highlight this. The SelectAppointment method does not work, even though we pass the correct IEvent to it.

Alternatively, if the user enters ID 33 (which is a normal appointment without any recurrence rule), then SelectAppointment function does work and the desired appointment is highlighted.

Is this a bug in SchedulerUIHelper.SelectAppointment? If so, how do I implement the same functionality as the SelectAppointment function?

Thanks, 
Ivan Todorov
Telerik team
 answered on 23 Sep 2011
3 answers
209 views
I have a multi-column combo box with 2 columns using the drop down list style.  When the user selects something new, I want to combine the text from both columns and display it in the text area.   Is this possible?  Even if I set the Text property of the combo box to something new, it still just shows the text from the first column.  It does seem to work when initializing the control but not when the selected index is changed.
Jack
Telerik team
 answered on 23 Sep 2011
4 answers
225 views
Is there a way to use the ErrorProvider with the RadGridView. Currently we are using it with the GridDataView. We are wanting to replace the DataGridView's with RadGridView, but the functionality the ErrorProvider provides with the DataGridView is important to us.

Thanks

Theo
Top achievements
Rank 2
 answered on 22 Sep 2011
2 answers
147 views
Hi,
When I try to run Adapter.Update method a SqlException occurs but DataError event doesn't fire.
I want to detect the row which have raised the exception and show errorprovider's icon on some cell. but can not do it.
please help me.
Theo
Top achievements
Rank 2
 answered on 22 Sep 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?