Telerik Forums
UI for WinForms Forum
3 answers
91 views
My project requires me to have an expand/collapse feature (like the tree view), but my content isn't text - it's a bunch of labels and gridviews. Is there a way to implement this with the tree view? Users want the +/- feature, but my content isn't like what's posted on the examples. How would I go about accomplishing this?
Svett
Telerik team
 answered on 06 Jun 2011
3 answers
514 views

I'm using RadGridView control to view data.
My question is:

How to change the background color of header?
I want to change the background color of header similar with 2.jpg
Any Help will be appreciated!!!
Thanks in advance...

Charles
Top achievements
Rank 1
 answered on 06 Jun 2011
1 answer
150 views
i'm using MDI from with RadMenu, if i maximize the child from, it's RadMenu will merge with MDI RadMenu.
How to prevent that ?
Ivan Todorov
Telerik team
 answered on 06 Jun 2011
2 answers
180 views
hi
I have to columns in girdview. 1st is gridviewCombo --- > this have product master on page loading.
2nd is qty columns -- this is gridviewdecimal column --> for user enter the quantity.
   I want to block the key on GridviewCombobox on gridview when user press the unwanted key .
plz. help me.
subbarayan
Top achievements
Rank 1
 answered on 05 Jun 2011
1 answer
171 views
I want my grid to fill to the full available size. I also don't want the user to be able to adjust the column widths. There is a bug in the grid that does not allow both of these features.

If you try the sample code below, you will see that the grid automatically fills to the available size. Then uncomment out the two "AllowResize" lines and you will see that the grid no longer automatically fills to the available size.

Is there a way to both fill and prevent the user from resizing the grid columns? THANKS

Imports Telerik.WinControls.UI
  
Public Class Form1
  
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim people As New List(Of Person) From {New Person(1, "Richard"), New Person(2, "Peter"), New Person(3, "Chris")}
  
        Me.radgridview1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill
        Dim column1 As New GridViewTextBoxColumn("Column 1")
        'column1.AllowResize = False
  
        Dim column2 As New GridViewComboBoxColumn("Column 2")
        column2.Width = 100
        column2.FieldName = "Id"
        column2.DataSource = people
        column2.DisplayMember = "Name"
        column2.ValueMember = "Id"
        'column2.AllowResize = False
  
        Me.radgridview1.Columns.Add(column1)
        Me.radgridview1.Columns.Add(column2)
  
        ' Populate the cells
        Dim rowInfo As GridViewRowInfo = Me.radgridview1.Rows.AddNew()
        rowInfo.Cells(0).Value = "A1"
        rowInfo.Cells(1).Value = 1
        rowInfo = Me.radgridview1.Rows.AddNew()
        rowInfo.Cells("A").Value = "A2"
        rowInfo.Cells("B").Value = 2
    End Sub
End Class
  
Public Class Person
  
    Public Sub New(ByVal Id As Integer, ByVal Name As String)
        Me.Name = Name
        Me.Id = Id
    End Sub
  
    Public Property Name As String
    Public Property Id As Integer
End Class
Emanuel Varga
Top achievements
Rank 1
 answered on 05 Jun 2011
3 answers
115 views
Dear ...,
My problem is:
In my database, I have "CLASS" table. This table has 3 column: ClassID, ClassName and ManagerID

Now, I want to show all ClassIDs that have the same ManagerID on Combobox.

My code:
public class Classes
    {
        private int id;
        private string name;
 
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
 
 
        public int ID
        {
            get { return id; }
            set { id = value; }
        }
 
        public override string ToString()
        {
            return id.ToString();
        }
    }
private void LoadDataTocbClass()
        {
            cbClass.FindItemExact("hello");
            for (int i = 0; i < PrepareDataForcbClass().Count; i++)
            {
                cbClass.Items.Add(PrepareDataForcbClass()[i]); // ERROR, WHY?
            }
            cbClass.DisplayMember = ("Name");
        }
 
private List<Classes> PrepareDataForcbClass()
        {
            List<Classes> list = new List<Classes>();
            string sql = "select ClassID FROM [AttendanceDB].[dbo].[CLASS]" +
                            "where ManagerID=@ManagerID";
            SqlCommand myCommand = new SqlCommand();
            myCommand.Connection = myConnection;
            myCommand.CommandText = sql;
            myCommand.Parameters.AddWithValue("@ManagerID", ManagerID);
            myConnection.Open();
            SqlDataReader myDataReader = myCommand.ExecuteReader();
            Classes cl;
            while (myDataReader.Read())
            {
                cl = new Classes();
                cl.Name = myDataReader.GetString(0).ToString();
                list.Add(cl);
            }
            myDataReader.Close();
            myConnection.Close();
            return list;
        }

Can you help me write an example or help me fix my code.
I want to get all ClassIDs that have the same ManagerID from database to Combobox.
In my code, cbClass is my combobox.

Thanks and best regards,
Pham Son Truong
Cat Cheshire
Top achievements
Rank 1
 answered on 03 Jun 2011
13 answers
394 views
Hello,

I'm trying to implement the following code

Private Sub combo_SelectedValueChanged(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.Data.PositionChangedEventArgs) Handles cmbManager.SelectedIndexChanged, cmbYear.SelectedIndexChanged, cmbStatus.SelectedIndexChanged, cmbProductFamily.SelectedIndexChanged, cmbCommmodity.SelectedIndexChanged
    Try
            dtData.Rows(0).Item(sender.Tag) = sender.SelectedValue
            bEdited = True
    Catch ex As Exception
        Stop
    End Try
End Sub

However the sender in this event is NOT the RadDropDownList, it is a RadListElement and I cannot find a way to figure out which dropdown the element came from.  

Can anyone assist me?  I really hope I'm just overlooking something obvious.

Thanks!
Matthew 
Deborah
Top achievements
Rank 1
 answered on 03 Jun 2011
1 answer
439 views
We are trying to round off the corners of the majority of controls in all themes.
We are finally getting there by setting different backgrounds as transparent but we are having a problem with the raddropdownlist.

When the control drops down we are seeing the white background behind the list.

I have attached an image which hopefully shows what I mean.

How do we set the background of this dropdown to be transparent and rounded.

I thought you may be using the radlistcontrol but this is set to be rounded and transparent and works.
Radpanel is also transparent and rounded which also works.

We have also found that if you set the 
RadDropDownList
     RadDropDownListElement
           RadDropDownListEditableAreaElement
                  BackColor   to be transparent in the style builder, this effect is not brought through to the front end when the theme is loaded.

Hope someone can shed some light on this.

Regards,

Graeme.
Peter
Telerik team
 answered on 03 Jun 2011
1 answer
283 views
I'm in the long process of upgrading my project from Q1 2010 to Q1 2011, and am running into the following error with a form that uses the Scheduler:

Error 1 Type  in the data at line 152, position 5, cannot be loaded because it threw the following exception during construction: Could not load file or assembly 'Telerik.WinControls.Scheduler, Version=2010.1.10.409, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' or one of its dependencies. The system cannot find the file specified.

For some reason, it's looking for the previous version of the control even though the assemblies (including Telerik,WinControls.Scheduler) are all the Q1 '11 versions.  This seems to be the only Telerik control that's having this type of issue with the upgrade.  What is the issue?
T
hanks,
Jeremy
Nikolay
Telerik team
 answered on 03 Jun 2011
1 answer
132 views
Hi,
               I have schedular now i want to create an appointment and save it how can i do it can anyone explain it....


Thanks
Divya 
Stefan
Telerik team
 answered on 03 Jun 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)
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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?