Telerik Forums
UI for WinForms Forum
1 answer
140 views
I have a read-only grid with two summary rows: Total and Average. The first two columns in the simple example provided in the attached screenshot will not be totaled or averaged. Only the third column will be summarized.

I would like to insert text into the first column of each summary row describing what the value in that row represents ("Total" in the total row and "Average" in the average row). This is also displayed in the attached screenshot.

Is it possible to insert text only into a cell of a summary row without performing any calculations on its associated column?
Boryana
Telerik team
 answered on 29 May 2012
1 answer
236 views
Hello,

I would like to add a feature request for the RadGridView.

It would be nice if the RadGridView's HTML rendering could support base-64 encoded images, as i use these alot they are very handy because you don't have to have an image file or add a project resource for an image - you just add an img tag with the src as base-64 encoded image data.

Would be nice if i could add a base-64 encoded image + text to the a RadGridView cell contents (where the column's DisableHTMLRendering is set to false of course).

Any chance you guys could add support for this?

Let me know, thanks!
Peter
Telerik team
 answered on 29 May 2012
1 answer
128 views
Hi,

how can I align the title text of a RadRibbonForm to the left side?
I use the default Office2010Black, Office2010Blue and Office2010Silver themes and the title
is centered.

Regards
Marco
Boryana
Telerik team
 answered on 29 May 2012
1 answer
173 views
Hello
I change the version of Telerik from 2011 Q2 to 2012 Q1 ,but now I have alot of errors in my project wich are about 
1-Telerik.WinControls.UI.RadToolStripSeparatorItem()
2-using Telerik.WinControls.UI.ComboBox;
3-using Telerik.WinControls.UI.Grid

please help me what should I do
Boryana
Telerik team
 answered on 29 May 2012
15 answers
590 views
We implemented a Check Box column so that the user can select a series of rows to add to a collection and clicks on a button to submit.  When in on click, we check each row for a checked checkbox and add the databounditem to a collection for processsing.  I noticed this evening when I check a few rows and scroll those rows off the screen, the values get cleared when I scroll them back into view.

I have read in a few posts that you only maintain data in the current view for performance reasons, but is there a way to turn that off?  Or is there another workaround?

Thanks

Dennis
Nikolay
Telerik team
 answered on 29 May 2012
1 answer
82 views
Hello,

I have just inherited a project using Telerik controls from a colleague who is no longer here.  I opened the solution and after 25 minutes Telerik timed out and shut down.  To resolve this I logged on to Telerik, downloaded the latest version and installed it.  Now when I open the solution I get messages of the type:

Could not load file or assembly 'Telerik.WinControls.GridView, Version=....

I understand there is an Upgrade Wizard to resolve this, but I cannot find it, either in the Telerik menu item in VS2010 or in the Start menu.

Any ideas?
Luke
Top achievements
Rank 1
 answered on 28 May 2012
3 answers
158 views
Please refer the picture from attachment.

Question 1 : How to auto display dot dot dot value when mouse over?
Question 2 : How to auto display full header text when user manually adjust the header size to smaller?

Is possible can be done in telerik?
Boryana
Telerik team
 answered on 28 May 2012
3 answers
802 views
Hi,
I am trying to figure out how to make a radTextbox (with multiline=true) to allow a user to hit the enter key and start a new line.
john
Nikolay
Telerik team
 answered on 28 May 2012
1 answer
309 views
I'm trying to prevent cells from being focused.  I saw this piece of code on another forum post:

if (gridCellElement != null)
{
 if (gridCellElement.IsCurrent)
 {
  gridCellElement.IsCurrent = false;
  gridCellElement.IsCurrentColumn = false;
 }
 else
 {
  gridCellElement.ResetValue(LightVisualElement.DrawBorderProperty, ValueResetFlags.Local);
  gridCellElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
 }
}

This works until I start editing a cell.  I saw something about creating a custom theme, but I do not know how to do that.  I am really hoping that there is a property I missed that says "don't draw cell focus", but I can't find it.
Boryana
Telerik team
 answered on 28 May 2012
5 answers
205 views
Hi,

I was wondering if the solution I created below is the best way to do what I want.

I have a list that when the user types in, i'd like the suggestions to pop up, to suggest the items that begin with the text first, but then also include all other items that have that text within it below that.

i.e.
if the list is

aper

aaper

ape

per

pants per

aaa per


and the user types 'p' then I want the list to show

pants per

per

aaa per

aaper

ape

aper


when the user types 'pe' then i want the list to show

per

aaa per

aaper

ape

aper

pants per



when the user types 'per' then i want the list to show

per

aaa per

aaper

aper

pants per


My ApplyFilterToDropDown is an almost copy of the Telerik one, but injecting my comparer instead. I had to do this because if I just set the ItemsSortComparer to mine, then called the base.ApplyFilterToDropDown it always got wiped out, so I resorted to this.

Imports Telerik.WinControls.UI
  
Public Class Form7
    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()
        Dim RadListDataItem1 As Telerik.WinControls.UI.RadListDataItem = New Telerik.WinControls.UI.RadListDataItem()
        Dim RadListDataItem2 As Telerik.WinControls.UI.RadListDataItem = New Telerik.WinControls.UI.RadListDataItem()
        Dim RadListDataItem3 As Telerik.WinControls.UI.RadListDataItem = New Telerik.WinControls.UI.RadListDataItem()
        Dim RadListDataItem4 As Telerik.WinControls.UI.RadListDataItem = New Telerik.WinControls.UI.RadListDataItem()
        Dim RadListDataItem5 As Telerik.WinControls.UI.RadListDataItem = New Telerik.WinControls.UI.RadListDataItem()
        Dim RadListDataItem6 As Telerik.WinControls.UI.RadListDataItem = New Telerik.WinControls.UI.RadListDataItem()
        Me.RadDropDownList1 = New Telerik.WinControls.UI.RadDropDownList()
        CType(Me.RadDropDownList1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'RadDropDownList1
        '
        Me.RadDropDownList1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend
        Me.RadDropDownList1.DropDownAnimationEnabled = True
        RadListDataItem1.Text = "aper"
        RadListDataItem1.TextWrap = True
        RadListDataItem2.Text = "aaper"
        RadListDataItem2.TextWrap = True
        RadListDataItem3.Text = "ape"
        RadListDataItem3.TextWrap = True
        RadListDataItem4.Text = "per"
        RadListDataItem4.TextWrap = True
        RadListDataItem5.Text = "pants per"
        RadListDataItem5.TextWrap = True
        RadListDataItem6.Text = "aaa per"
        RadListDataItem6.TextWrap = True
        Me.RadDropDownList1.Items.Add(RadListDataItem1)
        Me.RadDropDownList1.Items.Add(RadListDataItem2)
        Me.RadDropDownList1.Items.Add(RadListDataItem3)
        Me.RadDropDownList1.Items.Add(RadListDataItem4)
        Me.RadDropDownList1.Items.Add(RadListDataItem5)
        Me.RadDropDownList1.Items.Add(RadListDataItem6)
        Me.RadDropDownList1.Location = New System.Drawing.Point(93, 126)
        Me.RadDropDownList1.Name = "RadDropDownList1"
        Me.RadDropDownList1.ShowImageInEditorArea = True
        Me.RadDropDownList1.Size = New System.Drawing.Size(106, 20)
        Me.RadDropDownList1.TabIndex = 1
        Me.RadDropDownList1.ThemeName = "ControlDefault"
        '
        'Form7
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(292, 273)
        Me.Controls.Add(Me.RadDropDownList1)
        Me.Name = "Form7"
        Me.Text = "Form7"
        CType(Me.RadDropDownList1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
        Me.PerformLayout()
  
    End Sub
    Friend WithEvents RadDropDownList1 As Telerik.WinControls.UI.RadDropDownList
  
  
    Public Class CustomAutoCompleteSuggestHelper
        Inherits AutoCompleteSuggestHelper
        Public Sub New(element As RadDropDownListElement)
            MyBase.New(element)
        End Sub
  
        Protected Overrides Function DefaultFilter(item As RadListDataItem) As Boolean
            Return item.Text.ToLower().Contains(Me.Filter.ToLower())
        End Function
  
        Public Overrides Sub AutoComplete(e As KeyPressEventArgs)
            MyBase.AutoComplete(e)
            If Me.DropDownList.Items.Count > 0 Then
                'Me.DropDownList.SelectedIndex = Me.DropDownList.FindString(Me.Filter)
            End If
        End Sub
  
        Private mFilter As String = String.Empty
        Protected Overrides ReadOnly Property Filter As String
            Get
                Return mFilter
            End Get
        End Property
  
        Public Overrides Sub ApplyFilterToDropDown(filter As String)
            Static filterFirstComparer As ListItemFilterAscendingComparer
            mFilter = filter
            If String.IsNullOrEmpty(filter) Then
                MyBase.ApplyFilterToDropDown(filter)
                Return
            End If
            With Me.DropDownList.ListElement
                .SelectionMode = SelectionMode.None
                .BeginUpdate()
                .Filter = Nothing
                .Filter = AddressOf DefaultFilter
                .SortStyle = Telerik.WinControls.Enumerations.SortStyle.Ascending
            End With
            ' will move all items that begin with the filter, to the top of the list
            If filterFirstComparer Is Nothing Then
                filterFirstComparer = New ListItemFilterAscendingComparer With {.filter = filter}
            Else
                filterFirstComparer.filter = filter
            End If
            Me.DropDownList.ListElement.ItemsSortComparer = filterFirstComparer
            Me.DropDownList.ListElement.EndUpdate()
        End Sub
  
        ''' <summary>
        ''' This class is used to compare data items when sorting in ascending order.
        ''' </summary>
        Private Class ListItemFilterAscendingComparer
            Implements System.Collections.Generic.IComparer(Of RadListDataItem)
  
            Public Property filter As String
  
            Public Overridable Function Compare(x As RadListDataItem, y As RadListDataItem) As Integer Implements System.Collections.Generic.IComparer(Of Telerik.WinControls.UI.RadListDataItem).Compare
                Dim ignoreCase = False
                If x.Owner IsNot Nothing Then
                    ignoreCase = Not x.Owner.CaseSensitiveSort
                End If
                Dim xStart = x.Text.StartsWith(filter, System.StringComparison.InvariantCultureIgnoreCase)
                Dim yStart = y.Text.StartsWith(filter, System.StringComparison.InvariantCultureIgnoreCase)
                If xStart AndAlso Not yStart Then
                    Return -1
                ElseIf yStart AndAlso Not xStart Then
                    Return 1
                End If
                Return String.Compare(x.Text, y.Text, ignoreCase)
            End Function
  
        End Class
    End Class
  
    Private Sub Form7_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        RadDropDownList1.AutoCompleteMode = Windows.Forms.AutoCompleteMode.SuggestAppend
        RadDropDownList1.DropDownListElement.AutoCompleteSuggest = New CustomAutoCompleteSuggestHelper(RadDropDownList1.DropDownListElement)
    End Sub
End Class


Peter
Telerik team
 answered on 28 May 2012
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?