Telerik Forums
UI for WinForms Forum
2 answers
224 views
I want to show currency like '9.999,99' in GridViewMaskBoxColumn
it mean "." is Thousand separator and "," is Decimal point

it same RadMaskedEditBox with 'Culture' property =  new System.Globalization.CultureInfo("vi-VN");

How to do it with GridViewMaskBoxColumn ?

Thanks & Best regards
thien nluong
Top achievements
Rank 1
 answered on 06 Jun 2011
1 answer
110 views
Hi,
               In the day view i am getting 3 days displayed and todays is focused instead of that in day view i should only get only todays day thats all how can i do it....


Thanks
Divya
Stefan
Telerik team
 answered on 06 Jun 2011
3 answers
153 views
Is there any way to stop a different row from being highlighted when I'm scrolling through the grid view?

Currently using 2011 Q1 and can repeat it using the following steps.

  1. Create a RadGridView so that it contains enough rows to have a vertical and/or horizontal scroll bar
  2. Select a cell in the RadGridView
  3. Left mouse click (and hold) whilst scrolling the scrollbar, 'accidentally' hover over a new row/cell.
  4. This causes the row to be highlighted (as per screenshot).
Alexander
Telerik team
 answered on 06 Jun 2011
3 answers
100 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
522 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
162 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
188 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
184 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
122 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
413 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
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
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
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?