Telerik Forums
UI for WinForms Forum
1 answer
97 views
HOW TO PASS THE VALUES TO THE CELLCLICK EVENT
Hristo
Telerik team
 answered on 04 Oct 2016
1 answer
120 views

Hello Support,

  I am using  Telerik for Winforms version "2015.2.728.40" and have discovered an issue in that the Selected item in a CommandBarDropDownList displays but appears to be cleared from the object after minimizing the window.

Attached is a sample project to reproduce this error(Please change the extension back to zip).  To reproduce, run the application and then click on the button on the toolbar, this should work and display a message.  Now minimize the form, then maximize.  Click the button on the toolbar again.  You should now see an error.

I have not tested this issue on the most recent version of the Telerik library, but I may do that next.  My project is very far along and would prefer to leave it at the older version if possible.

Thanks

Francisco

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Oct 2016
1 answer
97 views

Hello,

Is it possible or is there any way to access radMultiColumnComboBox search cell programmatically in C#?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Oct 2016
1 answer
103 views

     Hi there,

 

I saw the demo here: http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx?skin=Telerik.

 

I wish to achieve something similar in Windows Forms. How to achieve this? Please guide.

Thanks.

 

Pankaj

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Oct 2016
2 answers
55 views

Hello,

I'm on Progress OpenEdge 11.6.2.

Ich have a Gridview with about 1000 Adress rows. I create a new Adress outside the Grid and create via Datasource a new Row (at the end of the list) in the Grid.

I walk through the Rows an select the new row with "IsSelected = true". Everything works fine.

Only the Grid do not scroll to the selected row. So I have manually to scroll down to see this row. I tried "IsCurrent" with the same result.

Is there a way that the Grid autom. scoll down to selected row?

Thank you for your answer.

Regards Jürgen

Jürgen
Top achievements
Rank 1
 answered on 04 Oct 2016
3 answers
239 views

I've 2 questions:

First one:

I've a problem with custom Style definition. I want to edit some of built-in styles. At this moment I've got this code:

StyleDefinition h1 = this.radRichTextEditor1.Document.StyleRepository.GetValueOrNull(RadDocumentDefaultStyles.GetHeadingStyleNameByIndex(1));
h1.SpanProperties.FontSize = ConstDocumentationParams.fontSizeH1;
h1.SpanProperties.ForeColor = System.Drawing.ColorTranslator.FromHtml(ConstDocumentationParams.colorH1);
h1.SpanProperties.FontStyle = ConstDocumentationParams.typeH1;
h1.SpanProperties.FontWeight = Telerik.WinControls.RichTextEditor.UI.FontWeights.Normal;
h1.SpanProperties.FontFamily = new Telerik.WinControls.RichTextEditor.UI.FontFamily(ConstDocumentationParams.fontFamily);

 

Everything works fine until I select text and click the heading edited by me. Text changes to old style, not new. How can I fix this problem?

 

Second one:

How can I insert programmatically some element whitch will be generated to html tag: "<h1>","<h2>" etc.

 

Best regards

Marcin

Dimitar
Telerik team
 answered on 04 Oct 2016
2 answers
307 views

I'm using Telerik.WinControls.GridView version 2012.2.912.40.

I want to validate a cell and focus on it if it is not.

How to manually focus a radgrid view cell during CellEndEdit event.

Myo
Top achievements
Rank 1
 answered on 04 Oct 2016
1 answer
115 views
Hi,
I am using radchart view control in winforms. I have problem is that i used a drill down event on that and define a Case 0 , Case 1 and Case 2 it means three level but when i was in third level and then click on chart it calls the drill down event and there is no any Case 3 is define so report populate blank.
I need to handle that when i am in third level and click on chart report should not populate blank and needs go back to third level.
How can do this in winforms using VB.Net.
Your help will be appreciable
Hristo
Telerik team
 answered on 03 Oct 2016
8 answers
1.1K+ views

Hi,

 I'm working with RadButton, (like attached image). When click on WorkWeek button, the background is changed as attached image, but after click it change to color as the color when mouse on hover the button. But I want when after click it still keep color as the color when I click, and then I click on another button (Week button for example), that backcolor is set for another button (not set for WorkWeek button any more). How can I do it?

 Look forward to your reply,

Pham Thanh.

Hristo
Telerik team
 answered on 03 Oct 2016
5 answers
418 views

Hi

I'm trying to use the MultiColumn ComboBox to allow users to search and select values from a flat table on the database, just it's not working and I've spent already the entire day trying combinations without success.

This is the Class being binded:

public class DocumentType
    {
        public int id { get; set; }
        public string Code { get; set; }
        public string Label { get; set; }
        public string Description { get; set; }
    }

This is the Designe.cs code:

//
// cmbDocumentType
//
this.cmbDocumentType.AutoScroll = true;
this.cmbDocumentType.AutoSize = true;
this.cmbDocumentType.AutoSizeDropDownToBestFit = true;
//
// cmbDocumentType.NestedRadGridView
//
this.cmbDocumentType.EditorControl.AutoScroll = true;
this.cmbDocumentType.EditorControl.BackColor = System.Drawing.SystemColors.Window;
this.cmbDocumentType.EditorControl.Cursor = System.Windows.Forms.Cursors.Default;
this.cmbDocumentType.EditorControl.EnableFastScrolling = true;
this.cmbDocumentType.EditorControl.EnableGestures = false;
this.cmbDocumentType.EditorControl.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.cmbDocumentType.EditorControl.ForeColor = System.Drawing.SystemColors.ControlText;
this.cmbDocumentType.EditorControl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.cmbDocumentType.EditorControl.Location = new System.Drawing.Point(0, 0);
 gridViewTextBoxColumn1.EnableExpressionEditor = false;
gridViewTextBoxColumn1.FieldName = "Code";
gridViewTextBoxColumn1.HeaderText = "Code";
gridViewTextBoxColumn1.Name = "Code";
gridViewTextBoxColumn1.Width = 58;
gridViewTextBoxColumn2.EnableExpressionEditor = false;
gridViewTextBoxColumn2.FieldName = "Label";
gridViewTextBoxColumn2.HeaderText = "Label";
gridViewTextBoxColumn2.Name = "Label";
gridViewTextBoxColumn2.Width = 112;
gridViewTextBoxColumn3.EnableExpressionEditor = false;
gridViewTextBoxColumn3.FieldName = "Description";
gridViewTextBoxColumn3.HeaderText = "Description";
gridViewTextBoxColumn3.Name = "Description";
gridViewTextBoxColumn3.Width = 357;
this.cmbDocumentType.EditorControl.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] {
gridViewTextBoxColumn1,
gridViewTextBoxColumn2,
gridViewTextBoxColumn3});
 
//
//
//
this.cmbDocumentType.EditorControl.AllowAddNewRow = false;
this.cmbDocumentType.EditorControl.AllowCellContextMenu = false;
this.cmbDocumentType.EditorControl.AllowColumnChooser = false;
this.cmbDocumentType.EditorControl.AllowColumnReorder = false;
this.cmbDocumentType.EditorControl.AllowDeleteRow = false;
this.cmbDocumentType.EditorControl.AllowDragToGroup = false;
this.cmbDocumentType.EditorControl.AllowEditRow = false;
this.cmbDocumentType.EditorControl.AutoGenerateColumns = false;
this.cmbDocumentType.EditorControl.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
 
this.cmbDocumentType.EditorControl.EnableFiltering = true;
this.cmbDocumentType.EditorControl.EnableGrouping = false;
this.cmbDocumentType.EditorControl.EnableSorting = false;
this.cmbDocumentType.EditorControl.ShowFilteringRow = false;
//this.cmbDocumentType.EditorControl.ViewDefinition = tableViewDefinition1;
this.cmbDocumentType.EditorControl.Name = "NestedRadGridView";
this.cmbDocumentType.EditorControl.NewRowEnterKeyMode = Telerik.WinControls.UI.RadGridViewNewRowEnterKeyMode.None;
this.cmbDocumentType.EditorControl.ReadOnly = true;
this.cmbDocumentType.EditorControl.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.cmbDocumentType.EditorControl.ShowGroupPanel = false;
this.cmbDocumentType.EditorControl.Size = new System.Drawing.Size(545, 31);
this.cmbDocumentType.EditorControl.TabIndex = 0;
this.cmbDocumentType.EnableAnalytics = false;
this.cmbDocumentType.EnableGestures = false;
this.cmbDocumentType.Location = new System.Drawing.Point(202, 7);
this.cmbDocumentType.Name = "cmbDocumentType";
this.cmbDocumentType.ShowItemToolTips = false;
this.cmbDocumentType.Size = new System.Drawing.Size(271, 20);
this.cmbDocumentType.TabIndex = 4;
this.cmbDocumentType.TabStop = false;
this.cmbDocumentType.ThemeName = "Office2007Black";
this.cmbDocumentType.UseCompatibleTextRendering = false;

And this is the code right at the end of the form's constructor:

this.cmbDocumentType.AutoFilter = true;
 
CompositeFilterDescriptor compositeFilter = new CompositeFilterDescriptor();
compositeFilter.LogicalOperator = FilterLogicalOperator.Or;
 
FilterDescriptor fdLabel = new FilterDescriptor("Label", FilterOperator.Contains, string.Empty);
compositeFilter.FilterDescriptors.Add(fdLabel);
 
FilterDescriptor fdDescription = new FilterDescriptor("Description", FilterOperator.Contains, string.Empty);
compositeFilter.FilterDescriptors.Add(fdDescription);
 
FilterDescriptor fdCode = new FilterDescriptor("Code", FilterOperator.Contains, string.Empty);
compositeFilter.FilterDescriptors.Add(fdCode);
 
this.cmbDocumentType.EditorControl.FilterDescriptors.Add(compositeFilter);
 
 
RadGridView gridViewControl = this.cmbDocumentType.EditorControl;
gridViewControl.MasterTemplate.AutoGenerateColumns = false;
this.cmbDocumentType.MultiColumnComboBoxElement.DropDownAnimationEnabled = false;

Later on, if by user input the combo is required, then I'm binding the data (list of DocumentType) from MemoryCache:

if (this.cmbDocumentType.DataSource == null)
                {
                        this.cmbDocumentType.DataSource = Globals.Cache.GetMobileDocumentTypes();
                        this.cmbDocumentType.Text = string.Empty;
                    }
                }

I don't know what's wrong, I've followed by the letter the documentation from here and still doesn't work.

  • Could you please tell me what's wrong?
  • Also, how can I highlight on the grid the text that the user has typed?
  • Can be changed the sort order once there is a match, let's say of 5 items containing the same text but a "SortPriority" property?

Thank you for your time,

Alejandro

 

Dimitar
Telerik team
 answered on 03 Oct 2016
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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?