Telerik Forums
UI for WinForms Forum
1 answer
118 views

First off, I'm not sure where to report bugs so if this is in the wrong Forum my apologies.

I've been using Telerik Controls for several years now - LOVE THEM!

This bug is pretty nit-picky but I thought I'd report it so at least you folks are aware of the issue and can address it (or not!) at your leisure.

Settings:

OS - Windows 7 64bit

Language - VB.Net

Telerik Version:  UI for WinForms 2017 Q2 (build?) 613

 

Steps to reproduce:

1) Place any Telerik control on a form.

2) Click on the control in the form to Select it.

3) Click the little right-arrow at the top of the control (I *think* its called the "Task Button" ??)

3a) This brings up a "helper" menu for the control.

4) Select "Edit UI Elements"

4a) This brings up the "Element hierarchy editor"

 

This Editor is resizable and that's great news since many of these controls are super-nested and their names are quite lengthy so to see as much as possible, it's not to be able to resize this box....BUT

Nothing in this Dialog Box has been set to resize WITH the dialog box...sure the border of the box changes but the lists remain exactly where they were when it opened, exactly the same size.

It's really, really easy to get controls to follow the size/shape of their parent just by altering their anchors (I know your developers already know this...this last comment was for any customers who happen to be new at programming!)

4b) "Control Element Structure" Group should have its anchor set to Top, Bottom, Left

4c) The label, "Selected element: AAAAAAAAAA" should have its anchor set to Bottom, Left

4d) "Selected Element Properties" group should have its anchor set to Top, Bottom, Left, Right

4e) the panel directly below "Selected Element Properties" should have anchor = Bottom, Left, Right

4f) The "Close" button should have its anchor set to Bottom, Right.

 

Not for nothing but the dialog box itself should have a Min Size set so you can't make it so small there's nothing to see and while we're at it get rid of the Min and Max buttons...there's no reason for those to be on this dialog box.

Like I said in the beginning - very nit-picky!  Sorry but I'm all about the UI (which is why I use Telerik Controls in the first place and have for YEARS!) and stuff like this is just polish that gives a more professional look IMO.

 

Sorry if I stepped on any toes here - just trying to help!

-C

 

 

 

 

 

     

Dimitar
Telerik team
 answered on 26 Jun 2017
6 answers
618 views
I have a TreeView that I sometimes set the Filter property of. Most of my top level nodes have child nodes; but when I use the Filter, child nodes that don't match the Filter are not shown underneath the parent nodes that DO match the filter.

Is there a way to not hide the child nodes of a parent node that matches the filter when the child nodes do not?

Edit: I discovered custom filtering and wrote this as my predicate:

private bool FilterNode(Telerik.WinControls.UI.RadTreeNode oNode)
        {
            if (oNode.Text.ToLower().Contains(txtSearch.Text.ToLower()))
                return true;
            else if (oNode.Parent != null)
                return (FilterNode(oNode.Parent));
            else
                return false;
        }

Does what I need.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Jun 2017
2 answers
104 views

Hi,

I want to connect two item on the diagram programmatically. I am not sure that the procedure is correct or not?

1) set a  ID (name)

2) search diagram.Shap array and find two ID

3) make connection with source and target index based on ID <name> found in step 2

Thank you.

Sina
Top achievements
Rank 1
 answered on 25 Jun 2017
11 answers
502 views
I am using 2012.1.12.215 RadControls for WinForms and two things are happening.
  1. When I run the Toolbox Configuration tool to add the RadControls, it is continuously adding the controls again to the toolbox after VS2010 is restarted, Why?
  2. I cannot find the editors, and basic RadControls like textbox, button and such, why?
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 24 Jun 2017
2 answers
76 views

Hi, I've tried to create a radGridView control programmatically so I can host it inside of a radHostControl, I do believe the problem has nothing to do with hosting as it occurs before I host it. : When I create teh control using the following code, I give it a Datasource which has data, however the control reports that it has no columns in its properties. And continuing, the control actually shows the data and all the columns when the app is live; the problem being I can't access these columns as they apparently do not exist:

            RadGridView gridView = new RadGridView();
            Telerik.WinControls.UI.TableViewDefinition tableViewDefinition14 = new Telerik.WinControls.UI.TableViewDefinition();

            gridView.BeginInit();
            gridView.MasterTemplate.BeginInit();

            gridView.Size = new Size(100, 300);
            gridView.AutoGenerateColumns = true;
            gridView.DataSource = blacklistProps;
            getBlacklist();

            gridView.MasterTemplate.AllowAddNewRow = false;
            gridView.MasterTemplate.AllowColumnChooser = false;
            gridView.MasterTemplate.AllowColumnHeaderContextMenu = false;
            gridView.MasterTemplate.ShowColumnHeaders = false;
            gridView.MasterTemplate.ShowFilteringRow = false;
            gridView.MasterTemplate.ShowRowHeaderColumn = false;
            gridView.MasterTemplate.ViewDefinition = tableViewDefinition14;
            gridView.Name = "blacklistGridView";

            gridView.RootElement.MinSize = new System.Drawing.Size(0, 0);
            gridView.ShowGroupPanel = false;
            //gridView.Size = new System.Drawing.Size(316, 381);
            gridView.TabIndex = 0;

            gridView.ContextMenuOpening += new Telerik.WinControls.UI.ContextMenuOpeningEventHandler(this.gridViewMappings_ContextMenuOpening);

            gridView.MasterTemplate.EndInit();
            gridView.EndInit();

Nathan
Top achievements
Rank 1
 answered on 23 Jun 2017
15 answers
628 views
Hi,

My grid is a readonly grid and with FullRow Selection mode. But still are the cells highlighted when i'm clicking in the grid. Look at the attached screenshot.

How can I disable this highlighting ? 

I have tried with this code, but still the cell is "in a way" highlighted..

if (e.CellElement.IsCurrent)
            {
                e.CellElement.DrawFill = false;
                e.CellElement.DrawBorder = false;
            }
            else
            {
                e.CellElement.ResetValue(LightVisualElement.DrawBorderProperty, Telerik.WinControls.ValueResetFlags.Local);
                e.CellElement.ResetValue(LightVisualElement.DrawFillProperty, Telerik.WinControls.ValueResetFlags.Local);
            }

BTW: The EnableHotTracking is truned of.

Regards
Svein Thomas
Hristo
Telerik team
 answered on 23 Jun 2017
5 answers
1.5K+ views
Hi everybody!

I'm looking something which allow me to set the cursor at the beginning of my MaskedTextBox.

I have a mask like this : '00 00 00 00 00'
When I enter into my field, my cursor isn't at begin.    '00 0|0 00 00 00' instead of    '|00 00 00 00 00'

I tried this code :

private void maskedTextBox1_Enter(object sender, EventArgs e)
        {
            if ((maskedTextBox1.Text.Trim()).Length == 0)
            {
                maskedTextBox1.Focus();
                SendKeys.Send("{HOME}");
                MessageBox.Show(maskedTextBox1.Focused.ToString());
            }
        }

But it doesn't work.

I tried the same code on MouseUp Action but I need to select the control.
If I do a MouseUp inside MaskedTextBox nothing happend, but if I do a MouseUp on the border of my MaskedTextBox, it works. Why?

What should I do in order to set my cursor in the first position?

I tried maskedTextBox1.SelectionStart = 0; but doesn't work.

Thanks

Lookoum
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Jun 2017
15 answers
450 views
I get an error in RadGridView when I closing the form.
But I never use this property =="

Full Message below:
Code generation for property 'PrintCellPaint' failed. Error was:'Object does not match target type'.

Please refer the attachment...

Thank You

Hristo
Telerik team
 answered on 23 Jun 2017
0 answers
129 views

Hi!

Is there a way, maybe I'm missing something, to apply a DataTypeConverer to a DropDownList, the same as we are able to do with a column in a RadGridView?

The idea is that the DisplayMember I need to set is a collection of KeyValuePair. Depending on a key configured externally, I need to choose a specific value. This can be done for grid by applying a custom DataTypeConverter.

For example, let's say the data source is like the following:

var dataSource = new List<Entity>{
        new Entity
{
            int Id = 1;
            string Name = "NameSample";
            Dictionary<int, string> Descriptions = new Dictionary<int, string>
            {
                {0, "descriptionInEnglish"},
                {1, "descriptionInGerman"}
            };
        }

};

I need to set the DisplayMember of the DropDownList to show the description in a language depending on an external setting.

 

Thanks!

Timotei
Top achievements
Rank 1
 asked on 22 Jun 2017
1 answer
130 views

I have a GridViewComboBoxColumn and while in edit mode I want the StretchVertically to be false so I use the following code:

this.radGridView1.CellBeginEdit += RadGridView1_CellBeginEdit;

private void RadGridView1_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
switch (e.Column.Name)
{
case "MyColumn":
RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor;
if (editor != null)
{
editor.EditorElement.StretchVertically = false;
editor.EditorElement.Alignment = ContentAlignment.TopLeft;
}

But the dropdownlisteditor is still vertically centered in the cell. Is there a way to have it TopLeft?

Dimitar
Telerik team
 answered on 21 Jun 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)
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?