Telerik Forums
UI for WinForms Forum
2 answers
351 views
Hi,

Is it possible to change the border color of the tab strip on selected?

Thanks in Advance
Ivan Todorov
Telerik team
 answered on 07 Apr 2011
8 answers
416 views
Hello, I have a data grid with a GridViewComboBoxColumn bound to an field which is an enumeration. I use DataSource and properties 'ValueMember' and 'DisplayMember' to map enum values to readable strings. When I try to set a filter on the column an exception ist thrown 'column <x> not found'  ( where x is the string represantation of the enum value )

Here is an example: If I then try to set filter to EProductType.Hard => EvaluateExcetion is thrown 'column [Hard] not found'
First FilterConditionType is 'NoFilter', when I select condition exception occurs

public enum EProductType 
    { 
        None = 0
        Soft = 1
        Hard = 2 
    } 
         
    class Product 
    { 
 
        EProductType _productType; 
 
        public EProductType ProductType 
        { 
            get { return _productType; } 
            set { _productType = value; } 
        } 
 
        string _key; 
 
        public string Key 
        { 
            get { return _key; } 
            set { _key = value; } 
        } 
 
        string _name; 
 
        public string Name 
        { 
            get { return _name; } 
            set { _name = value; } 
        } 
    } 
 
private void AddMapping() 
IList<ValueMapping> mappings = new List<ValueMapping>(); 
            mappings.Add(new ValueMapping(EProductType.None, "")); 
            mappings.Add(new ValueMapping(EProductType.Hard, "Hardware")); 
            mappings.Add(new ValueMapping(EProductType.Soft, "Software")); 
 
            Telerik.WinControls.UI.GridViewComboBoxColumn comboColumn = radGridView1.Columns[0] as Telerik.WinControls.UI.GridViewComboBoxColumn; 
            comboColumn.DataSource = mappings
            comboColumn.ValueMember = "ValueMember"
            comboColumn.DisplayMember = "DisplayMember"
 
class ValueMapping 
    { 
        public ValueMapping(object value, string displayMember) 
        { 
            _valueMember = value; 
            _displayMember = displayMember; 
        } 
 
        string _displayMember; 
 
        public string DisplayMember 
        { 
            get { return _displayMember; }             
        } 
 
        object _valueMember; 
 
        public object ValueMember 
        { 
            get { return _valueMember; }             
        } 
    } 
 

Tried with current version 2010 Q1 SP 1
Is there a workaround ?

Regards,
Markus
Alexander
Telerik team
 answered on 07 Apr 2011
2 answers
106 views
How can I show WeekView with the first day of the week as monday?

Basically, how can I get the same functionality as the ASP.Net FirstDayOfWeek and LastDayOfWeek properties?

So calendar looks like this.
Mo Tu We Th Fr Sa Su

Stefan
Telerik team
 answered on 07 Apr 2011
1 answer
92 views
Dear All,

There is a very critical problem in my project. Please see the screenshot I have attached for my problem. There is big red box is appearing like that when using the application. What might cause this problem. Please help me on this.


Thanks & Regards
Vijay
Emanuel Varga
Top achievements
Rank 1
 answered on 07 Apr 2011
1 answer
100 views
Hi
Im needing help with dragging and dropping between different radcontrols.
i need to drag from a bound carousel to a gridview, and also a bound listcontrol to a gridview
im using winforms Q1 2011 in VB.net
thanks
Svett
Telerik team
 answered on 07 Apr 2011
3 answers
114 views
Would be great if you add the column selection option in future.
If a bitmap column - we don't need Type name instead.
Just my desire.
Martin Vasilev
Telerik team
 answered on 07 Apr 2011
2 answers
303 views
Hi All,

I have a RadGridView bound to a BindingList that does not update when I change my BindingList.  Basically, I am traversing my list with LINQ and updating some fields, but these fields are not updating in the RadGridView.

Hers is my code:
var mAgentsInList = from a in cAgentList
              where a.AgentId.ToLower() == p_AgentId.ToLower()
              select a;
foreach (DTLAgent feAgentToUpdate in mAgentsInList)
{
    feAgentToUpdate.OutboundCalls = 99;
    if (p_Direction.ToUpper() == "IN")
    {
        feAgentToUpdate.Direction = "In";
    }
}


The only way I can reflect these changes is by calling:
grdAgents.MasterTemplate.Refresh();

However, this grid has about 300 Agents, and whenever I call this Refresh, the grid scrolls back to the top - which is not something that works for me.

Thanks in advance for any help!
Julian Benkov
Telerik team
 answered on 07 Apr 2011
6 answers
403 views

Hi

By default if validation for row failed there is icon with exclamation mark in row header (I use GridViewRowInfo.ErrorText to define text for tool tip).

 

I would like to use my own icon. How can I do it?

Regards

Martin Vasilev
Telerik team
 answered on 07 Apr 2011
4 answers
126 views
Hi Telerik,
I have a Radgridview with combo box column . consider i have 3 rows.
in  the first row am selecting some value like "x" from the combobox column ,
 then when i select the  same value "x" in the second row , i should say the value x is already selected
 i guess we have to loop the columns across the gridview .... could anybody provide some idea

Thanks in Advance
Dev
deva subramanian
Top achievements
Rank 1
 answered on 07 Apr 2011
1 answer
182 views
Hello,

I can't seem to trap any Function keys while editing a cell on the radGridView. Could you provide any clues where I am going wrong? I have practically copied the code from your help documentation. If I press Ctrl+L then all works fine.

Regards

Terry

Public Class Form1
  
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
  
  
        Me.KeyPreview = True
  
        Dim x As Boolean
        x = LogIntoSQL()
  
        If x = True Then
            Try
                myList = New BindingList(Of CompanyHistory)()
                LoadNewCompanyHistory()
                RadGridView1.DataSource = myList
  
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End If
  
         
  
    End Sub
  
     
    Private tbSubscribed As Boolean = False
  
    Private Sub radGridView1_CellEditorInitialized(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs)
        Dim tbEditor As RadTextBoxEditor = TryCast(Me.RadGridView1.ActiveEditor, RadTextBoxEditor)
        If Not tbEditor Is Nothing Then
            If (Not tbSubscribed) Then
                tbSubscribed = True
                Dim tbElement As RadTextBoxEditorElement = CType(tbEditor.EditorElement, RadTextBoxEditorElement)
                AddHandler tbElement.KeyDown, AddressOf tbElement_KeyDown
            End If
        End If
    End Sub
  
    Private Sub tbElement_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
        If e.Control Then
            If e.KeyCode = Keys.F1 Then
                CType(sender, RadTextBoxEditorElement).Text = "F1"
            End If
  
            If e.KeyCode = Keys.F2 Then
                CType(sender, RadTextBoxEditorElement).Text = "F2"
            End If
  
            If e.KeyCode = Keys.L Then
                CType(sender, RadTextBoxEditorElement).Text = "LLLL"
            End If
  
        End If
  
  
    End Sub
  
    Public Sub New()
  
        ' This call is required by the designer.
        InitializeComponent()
  
        ' Add any initialization after the InitializeComponent() call.
        AddHandler RadGridView1.CellEditorInitialized, AddressOf radGridView1_CellEditorInitialized
    End Sub
End Class

 

 

 

 

 

 

 

 



Emanuel Varga
Top achievements
Rank 1
 answered on 06 Apr 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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?