Telerik Forums
UI for WinForms Forum
7 answers
233 views

I have a drop down list that functions normally the first time I click the down arrow (the whole list of items displays).  On subsequent clicks the drop down list is only half the height of the control.  The pictures are attached.

I have some code to modify the font size and drop down arrow width..

// DropDownList ddlShortPick
ddlShortPick.ListElement.AutoSizeItems = true;
foreach (RadListDataItem x in ddlShortPick.ListElement.Items)
{
    x.Font = ddlShortPick.Font;
}
ddlShortPick.DropDownListElement.ArrowButton.MinSize = new Size(50, 0);

 

And these are the settings in the designer...

//
// ddlShortPick
//
this.ddlShortPick.AutoSize = false;
this.ddlShortPick.AutoSizeItems = true;
this.ddlShortPick.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
this.ddlShortPick.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ddlShortPick.Location = new System.Drawing.Point(559, 5);
this.ddlShortPick.Name = "ddlShortPick";
this.ddlShortPick.Size = new System.Drawing.Size(320, 31);
this.ddlShortPick.TabIndex = 32;
((Telerik.WinControls.UI.RadDropDownListElement)(this.ddlShortPick.GetChildAt(0))).DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;

 

Any idea what would be corrupting the behavior of the control?

 

Thank you,

Gary

Phil
Top achievements
Rank 1
 answered on 10 Jul 2017
0 answers
113 views
I have a gridview with CellValueChanged event on checkbox checked changed, and filtering is enabled
When i try to filter using checkbox column, it gives me exception???
I want some example to implement this scenario.
Ahmed
Top achievements
Rank 1
 asked on 10 Jul 2017
1 answer
109 views
i am unable to populate data from database table inside GridViewComboBox, how i can do that?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Jul 2017
1 answer
128 views

Hi

I added a radCalendar to my winform an when i want to run my program i get this error:

SeverityCodeDescriptionProjectFileLine
ErrorAssembly 'Telerik.WinControls.UI' with identity 'Telerik.WinControls.UI, Version=2017.2.502.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' uses 'Telerik.WinControls, Version=2017.2.502.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' which has a higher version than referenced assembly 'Telerik.WinControls' with identity 'Telerik.WinControls, Version=2017.2.502.20, Culture=neutral, PublicKeyToken=5bb2a467cbec794e'Clinic AppE:\4-Clinic App V1.5\Clinic App\Clinic App\CSC

Hristo
Telerik team
 answered on 10 Jul 2017
1 answer
82 views

Is this how the titlebar for the telerikmetrotouch theme should look? With the deep line over the control buttons to the right, but shallow over the form name?

I'm seeing it on each form, but would rather it were the same depth over the whole title bar. Im pretty sure the project manager will complain when he sees it.

 

Hristo
Telerik team
 answered on 10 Jul 2017
9 answers
191 views

Good evening,

 

I was trying to implement a generic column where depending the type of object being bind to it, different editors would be used.

At this moment i've settled for boolean, text and list and everyting is working well except the display of the checkbox.

The following happens: GridVirtualization

As you can see in the picture above, the top of the grid shows up fine, but on the bottom the checkboxes show up as text, as i use the scroll bar the lines eventually refresh to display the checkboxes(wich is why i assume this is something regarding the UI Virtualization).

I have tried invallidating rows, using dgvCustomer.TableElement.Update(Telerik.WinControls.UI.GridUINotifyAction.Reset) and a couple of alternatives that i have forgotten meantime.

The setup uses 3 custom cells, and the following custom column.

01.using System;
02.using System.Collections.Generic;
03.using Telerik.WinControls.UI;
04. 
05.namespace Inl.TelerikExtensions40.WinForms
06.{
07.    public class GenericDataColumn : GridViewDataColumn
08.    {
09. 
10.        public GenericDataColumn() : base()
11.        {
12.        }
13. 
14.        public GenericDataColumn(string fieldName) : base(fieldName)
15.        {
16.        }
17. 
18.        public GenericDataColumn(string uniqueName, string fieldName) : base(uniqueName, fieldName)
19.        {
20.        }
21. 
22.        public override Type GetCellType(GridViewRowInfo row)
23.        {
24.            if (row is GridViewDataRowInfo)
25.            {
26.                if (row.Tag != null)
27.                {
28.                    var types = (Dictionary<int, Type>)row.Tag;
29.                    if (types.ContainsKey(base.Index))
30.                    {
31.                        return types[base.Index];
32.                    }
33.                }
34. 
35.                return typeof(CustomTextBoxCell);
36.            }
37.            return base.GetCellType(row);
38.        }
39. 
40.        public override Type GetDefaultEditorType()
41.        {
42.            var cellType = GetCellType(base.OwnerTemplate.DataView.CurrentItem);
43. 
44.            if (cellType == typeof(CustomTextBoxCell)) {
45.                return typeof(RadTextBoxEditor);
46.            }
47.            if (cellType == typeof(CustomCheckBoxCell))
48.            {
49.                return typeof(CustomCheckBoxEditor);
50.            }
51.            if (cellType == typeof(CustomComboBoxCell))
52.            {
53.                return typeof(RadDropDownListEditor);
54.            }
55. 
56.            return base.GetDefaultEditorType();
57.        }
58. 
59.        public void SetType(Enumeration.DataTypesEnum tipo, GridViewRowInfo row)
60.        {
61.            Dictionary<int, Type> types = default(Dictionary<int, Type>);
62. 
63.            if (row.Tag != null)
64.            {
65.                types = (Dictionary<int, Type>)row.Tag;
66.            }
67.            else
68.            {
69.                types = new Dictionary<int, Type>();
70.            }
71. 
72.            if (types.ContainsKey(base.Index) == false)
73.            {
74.                switch (tipo)
75.                {
76.                    case Enumeration.DataTypesEnum.Texto:
77.                        types.Add(base.Index, typeof(CustomTextBoxCell));
78.                        break;
79.                    case Enumeration.DataTypesEnum.Booleano:
80.                        types.Add(base.Index, typeof(CustomCheckBoxCell));
81.                        break;
82.                    case Enumeration.DataTypesEnum.Lista:
83.                        types.Add(base.Index, typeof(CustomComboBoxCell));
84.                        break;
85.                }
86.            }
87. 
88.            row.Tag = types;
89.            //row.InvalidateRow();
90.        }
91.    }
92.}

 

I'll be willing to supply any other code necessary.

Thank you in advance.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Jul 2017
1 answer
99 views
when using radPdfViewer1.PdfViewerElement.Find function the return type is Telerik.Windows.Pdf.Documents.Fixed.Search.SearchResult I would like to convert/cast that to Telerik.Windows.Documents.Fixed.Search.SearchResult.

when I attempt to create an instance of either SearchResult I get "SearchResult' does not contain a constructor that takes 0 arguments" but can find a constructor for either.

Hristo
Telerik team
 answered on 10 Jul 2017
9 answers
408 views
Hello Telerik Team,
at our project we have specific request on search feature in datagridview. When user starts typing in datagrid we have to perform incremental search in selected column (in THE column that is sorted) as user types. At the same time the grid should scroll through records the datagrid.

I know the similar functionality in that use case is achieved via filter, but customer want to have all the items in the grid while searching for the record.

is there any easier way to implement this (than my solution mentioned lower)? Perphaps by telerik API?

It's just a first draft because i will have to extend this code so that typed string is somehow "visible" to the user)

 private string searchString = "";
        private void grdKlienti_KeyPress(object sender, KeyPressEventArgs e)
        {
            searchString += e.KeyChar;
            int sortColumn = grdKlienti.Columns.Where(a => a.IsSorted).First().Index;
           
            int scrollTo;
            for (scrollTo = 0; scrollTo < grdKlienti.RowCount; scrollTo++)
            {
                if (grdKlienti.Rows[scrollTo].Cells[sortColumn].Value.ToString().StartsWith(searchString))
                {
                    break;
                }
            }
          
            grdKlienti.GridElement.ScrollToRow(scrollTo);
        }





Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Jul 2017
8 answers
389 views
Dear Support Team,

How we obtain the cartesian grid line annotation value exact based in mouse position  to plot vertical or horizontal grid line annotations using mouse click without insert the exact value manually?

Thanks in advance!

Best regards,

Henrique
Maurer
Top achievements
Rank 2
 answered on 07 Jul 2017
1 answer
114 views

I'm a creating my own theme using the Visual Style Builder for WinForms. I have styled much of the RadGridView the way that I want to except the Relationship tabs (Captions). They are confusing me. I don't see them. Are they under another control? I don't see them in the preview or design mode for the RadGridView. What I am referring to is the GridViewRelation when there is more than one for a GridViewTemplate, it shows tabs. I want to style those in a theme (hopefully not in code at runtime).

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jul 2017
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
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?