Telerik Forums
UI for WinForms Forum
7 answers
84 views

Hello all

 

how to prevent double open form in tabbed document 

or how to cek if the form is opened, if opened so it will activated

 

thanks all 

Hengky
Top achievements
Rank 1
Veteran
 answered on 25 Apr 2017
2 answers
94 views

I have a multiselect radlistControl. I want to make the scrollbar 50% transparent. How can i do that?

Rohanjoy
Top achievements
Rank 1
 answered on 24 Apr 2017
6 answers
358 views

hello 

I would like to express a Text in cell value.
but An error occurs.

so,
I would like to know whether there are any add-ons after this post

- Similar post in 2012' (last update 2014' , ASP)
http://www.telerik.com/forums/will-pivot-grid-show-the-string-values

and,
Please let me know if i don't know the case using pivotgrid.

 

Programming Language : C#
OS : Windows7 x86
.NET4
Telerik : R2 2016 SP1

Hristo
Telerik team
 answered on 24 Apr 2017
4 answers
416 views

How to change the color of the item in a radlistcontrol in winfroms using telerik.
I want to hover the mouse in the listbox and want the hilighted color of the list item to be black instead of deafult white. Please help.

I have posted my current status and my requirement.

 

Rohanjoy
Top achievements
Rank 1
 answered on 21 Apr 2017
5 answers
83 views

Hello,

in the ControlDefault theme all documentwindows have this cutted edge. In all other themes is it a full rectangle. Is this adjustable?

I'm working with Progress OpenEdge 11.6.2

Thank you for your answer.

Regards, Jürgen

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Apr 2017
5 answers
620 views

Hi

I’m using the RadDock and have a few issues with docking and floating windows.

1. The default size for floating windows is 300 x 300. I know I can set the DefaultFloatingSize but I'd prefer if it stayed the same size as when it was docked. I’ve tried the FloatingWindowCreated event but can’t identify the tab on it as that hasn’t happened yet. Do you think it’s possible?

2. I can float a DocumentWindow or ToolWindow by double clicking the title bar but double clicking it again doesn't make it redock. I could use the MouseDoubleClick event to programmatically set the DockState but how do I check the user clicked the title bar?

3. If I redock a floating DocumentWindow with the ‘Dockable’ context menu option, it doesn't go to its original location. It goes to the first position of the topmost horizontal tab group. It's worse if I have one tab at the top with multiple tabs grouped underneath and float the top tab; it redocks next to the multiple tabs at the bottom and leaves a big empty space where it was located originally (see attached images). Note: the Dockable option works for ToolWindows; if I dock one ToolWindow on the left and another on the right, each redocks to the correct location.

I'm using version 2016.608.40 of RadDock and tried 2017.1.21.40 as well.

Regards

Tung

Hristo
Telerik team
 answered on 21 Apr 2017
1 answer
89 views

I have created a class based off the MaskedEditBox. However, every time I drop it on a form, it auto populates the value with "1____-____". If I drop another on the same form, it populates the value with "2____-____".  Is this done by design?  My desired value would be "_____-____" or "" as the value.

 

public class NtsMaskedEditBoxZipCode : RadMaskedEditBox
  {
     #region Public Constructors
 
     public NtsMaskedEditBoxZipCode()
     {
        Mask = @"99999-9999";
        MaskType = MaskType.Standard;
        Text = @"_____-____";
        TextMaskFormat = MaskFormat.ExcludePromptAndLiterals;
     }
 
     #endregion Public Constructors
 
     #region Public Properties
 
     public sealed override string Text
     {
        get { return base.Text; }
        set { base.Text = value; }
     }
 
     #endregion Public Properties
  }
Dimitar
Telerik team
 answered on 20 Apr 2017
5 answers
189 views

I have a RadMaskedEditBox with the MaskType set to "DateTime", the Mask set to "MM/dd/yyyy", TextMaskFormat set to "includeLiterals". This control is programmatically bound to an object in which the Date/Time value can be null.  in the KeyDown event of the control, if the user presses the "DELETE" key and the selected text is the same as the text value and the selected text length is > 0, I clear the textbox using the "CLEAR()" method and then set the value to null. 

However, the display value now changes to "01/01/0001".

What am I missing. 

 

Here is my "KeyDown" event

private void radMaskedEditBoxDate_KeyDown(object sender, KeyEventArgs e)
{
   if (e.KeyData == Keys.Delete)
   {
      RadMaskedEditBox radMaskedEditBox = (RadMaskedEditBox) sender;
      if (radMaskedEditBox.SelectionLength > 0 && radMaskedEditBox.SelectedText == radMaskedEditBox.Text)
      {
            radMaskedEditBox.Clear();
 
         //radMaskedEditBox.Value = null;
         radMaskedEditBox.Value = radMaskedEditBox.NullText;
      }
   }
}

Dimitar
Telerik team
 answered on 20 Apr 2017
5 answers
224 views

Hello to all!

I'm using C#.

I have a RadListView that I only ever display in ListView mode. I have created a custom SimpleListViewVisualItem descendant, which has a DockLayoutPanel, inside of which is a GridLayout and another DockLayoutPanel, and inside the second DockLayoutPanel is a RadButtonElement, two RadDropDownListElement, and a RadTextBoxElement.

The first two attachments show the issue, both with and without the vertical scrollbar.

I ***believe*** I have all the appropriate ClipDrawing states set, because the RadDropDownListElement is clipping just fine (third attachment).

Is this a known issue?

Thanks.

Sam.

Sam
Top achievements
Rank 1
 answered on 19 Apr 2017
1 answer
95 views

Purples: 

    I have a master-details gridview, but the data should be refreshed when the source data is changed. I implemented INotifyPropertyChanged interface for the model class. However, when I use the hierarchical gridview, when the binding data is changed, the gridview could NOT always work fine.

The attached is my test program.

The first level is Product, the child level is its orders.

I have a background thread to update the product and orders.

I am using 2017.1.221.40.Trial.

 

CODE below:

----------------------------------------------------------------------

 public partial class RadForm1 : Telerik.WinControls.UI.RadForm
    {
        BindingList<ProductData> _tradeProdDataList = new BindingList<ProductData>();      
        public RadForm1()
        {
            InitializeComponent();
            GenenateData();
            this.radGridView1.DataSource = _tradeProdDataList;
           
            this.radGridView1.AutoGenerateHierarchy = true;
        }
        
        private void GenenateData()
        {
            for (int i = 0; i < 10; i++)
            {
                var prod = new ProductData() { ID = i };
                _tradeProdDataList.Add(prod);
            
                var list = new List<OrderData>();
                for (int j = 0; j < 10; j++)
                {
                    var o = new OrderData() { ProductID = i, OrderName = string.Format("Test-{0}-{1}", i, j) };
                    list.Add(o);
                }
                prod.Orders.AddRange(list);
            }
        }

        private void radButton1_Click(object sender, EventArgs e)
        {
            var t1= Task.Factory.StartNew(new Action(() =>
            {
                while (true)
                {
                    _tradeProdDataList.ToList().ForEach(p =>
                    {
                        p.Quantity = new Random().NextDouble() * 1000.0;
                        p.Orders.ToList().ForEach(o =>
                        {
                            o.LastPx = new Random().NextDouble() * 1000.0;
                        });
                    });
                }
            }));
        }
    }
    

    public class ProductData : INotifyPropertyChanged
    {
        public ProductData()
        {
            Orders = new List<OrderData>();
        }
        public int ID { get; set; }
        private double _Quantity;
        public double Quantity { get { return _Quantity; } set { _Quantity = value; NotifyPropertyChanged(); } }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged([CallerMemberName] string propertyName = "none passed")
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
        public List<OrderData> Orders
        {
            get; set;
        }
    }

    public class OrderData : INotifyPropertyChanged
    {
        public int ProductID { get; set; }     

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged([CallerMemberName] string propertyName = "none passed")
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

        private string _OrderName; public string OrderName { get { return _OrderName; } set { _OrderName = value; NotifyPropertyChanged(); } }

        private double _LastPx;
        public double LastPx { get { return _LastPx; } set { if (value != _LastPx) { _LastPx = value; NotifyPropertyChanged("LastPx"); } } }

    }

 

 

 

Hristo
Telerik team
 answered on 19 Apr 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?