Telerik Forums
UI for WinForms Forum
1 answer
103 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
236 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
119 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
442 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
434 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
145 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
20 answers
479 views
Hi Experts,

Is it possible to select multiple appointments? I would like the user to select multiple appointments with the CTRL key and move the selected appointment in the schedule. Example, user select 3 appointments and drag those 2 hours later.

Regards,
Nadia
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jul 2017
1 answer
424 views

Hi,

Is it possible to define a background color for radgridview.

As on the brown rectangle on the attached file. We are on the grille but no rows.

I hope that you are understand.

Thanks for response

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jul 2017
1 answer
275 views

Smart Tag in Rad Grid view not visible.

When right click on the gridview and select the 'open Property Builder', error occurred as "Object Reference not set to an instance of an object".

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jul 2017
3 answers
214 views

Hi.

I'd like to use the scheduler for a work time recording software where users can enter their worktime by creating events in the scheduler.
There is also a time clock in the office and I'd like to highlight the times when users came in or left the office, just like the ruler does.
So, is it possible to draw two rulers per day? Or is it possible to draw custom lines?
Right now, I am changing the background color of the timespan where the user is in the office, but that approach has a low performance
because I handle that in the CellFormatting event and I have to check if the current cell is in that timespan.

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
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
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?