Telerik Forums
UI for WinForms Forum
2 answers
149 views
Hi,

we have a localization problem. We have done the localization of the grid view. But now we have the following behaviour: The user starts the application the first language. As requested by the customer, the layout of the grid will be automatically saved. Now the user changes the language. The application starts and loads the layout, and everything is translated into the new language except the columns, because they are read from the layout file in the old language.

What is the right strategy to deal with this problem?

Thanks,
Michael
xclirion
Top achievements
Rank 1
 answered on 24 Jul 2013
1 answer
201 views
Hello,

I'm trying to use the RadTrackBar with Range mode, but I cannot access the values of the two ranges. I see in the documentation that I must use Ranges_CollectionChanged, but I don't understand how to access this function.

Do you have any example how to use two ranges.

Thank you,
Eduard
George
Telerik team
 answered on 24 Jul 2013
4 answers
180 views
Hi,
please is there any way to reach result attached in the second picture programatically ? The tab is aligned to bottom.

1) I would need to get close button to the right of the tab name
2) I would need to get rid of close button at one tab.

First picture describes current state. Second picture shows my wish.

Thanks
Dudu
Top achievements
Rank 1
 answered on 24 Jul 2013
3 answers
331 views
RadControls for WinForms Q2 2010 / 2010.2.10.071

I am trying to set the Font for the list elements of a drop down list. I am able to set the font using the Properties window but the setting does not effect the list elements when the application is run. At run time, the application creates an array of RadListDataItem which is used as the data source. I have also tried setting the Font property of the individual RadListDataItems.

Setting the font for the DropDownList works correctly for the text box associated with the list.

Thanks,
Scott
Paul
Telerik team
 answered on 23 Jul 2013
1 answer
200 views
If a property grid combo editor is double clicked to start an edit the value will cycle through the available values.

Here is a really simple code example for this.  If you just double click to start the edit on the MyEnum field you will notice that the value will keep changing every time you start the edit.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace PropertyGridTest
{
    public partial class Form1 : Form
    {
        MyObject theObject = new MyObject();
 
        public Form1()
        {
            InitializeComponent();
 
            theObject.MyEnum = MyEnum.One;
            theObject.Name = "test";
            radPropertyGrid1.SelectedObject = theObject;
        }
    }
 
    public enum MyEnum { One, Two, Three, Four, Five };
 
    public class MyObject
    {
        public string Name { get; set; }
        public MyEnum MyEnum { get; set; }
 
        public MyObject() { }
    }
}
George
Telerik team
 answered on 23 Jul 2013
1 answer
116 views
Hello all,

I'm currently trialing both the Winform and Reporting suites and have been very impressed. I have however come across some unwanted behaviour which I think is probably a bug.

The problem comes when you populate the AutoCompleteBox and start a search returning enough results to need the scrollbar. When clicking and dragging the scroll bar to scroll - if the cursor is not positioned directly over the scrollbar at the time you release the mouseclick, the dropdown list is closed an item is added to the selection.

If I encounter a problem like the above after purchasing the Telerik tools how long does it take to normally find a solution? I'm basically looking for confirmation I wouldn't have to wait for a Quarterly update.

Many Thanks.
Paul
Telerik team
 answered on 23 Jul 2013
1 answer
155 views
Hi,

When I have a few instances of the RadTextBox on a Form, and pressing Shift+Tab I have to press it twice to get the focus to the previous textbox. Pressing Tab only to get the focus to the next textbox works fine.

Best regards.
Stefan
Telerik team
 answered on 23 Jul 2013
1 answer
99 views
I have a application that on a screen is a RadGridView that contains a GroupPanel.  I would like to allow the users to export this grid to excel, but when I try to export I get an error converting the GroupPanel.  I have tried to set the ShowGroupPanel to false during the export but that does not seem to help.  IS there an export setting that would remove the GroupPanel?
Eric Klein
Top achievements
Rank 1
 answered on 22 Jul 2013
1 answer
239 views
Hello,

Is is possible to make the menus to be on the window title bar?
Something like this:
http://cdn1.pcadvisor.co.uk/cmsdata/products/3291330/CyberLink_PhotoDirector_2011_1000.JPG

Thanks!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Jul 2013
1 answer
517 views
When GridView has a GridViewComboBoxColumn that is bound to a list of objects and that list changes a null reference error is thrown.  This error did not get throw in the previous release (2013 Q1), it just started happening in (2013 Q2, specifically 2013.2.612.40).

Here is a code example using a list of Authors and a list of books.  Basically the book object has a reference to the Author object.  When the author list changes the book grid will throw a null reference error.

Here is the stack trace of the error:

   at Telerik.WinControls.UI.GridViewComboBoxColumn.AddItem(Int32 i)
   at Telerik.WinControls.UI.GridViewComboBoxColumn.currencyManager_ListChanged(Object sender, ListChangedEventArgs e)
   at System.ComponentModel.ListChangedEventHandler.Invoke(Object sender, ListChangedEventArgs e)
   at System.Windows.Forms.CurrencyManager.OnListChanged(ListChangedEventArgs e)
   at System.Windows.Forms.CurrencyManager.List_ListChanged(Object sender, ListChangedEventArgs e)
   at System.ComponentModel.BindingList`1.OnListChanged(ListChangedEventArgs e)
   at System.ComponentModel.BindingList`1.Child_PropertyChanged(Object sender, PropertyChangedEventArgs e)
   at GridTest.Author.NotifyPropertyChanged(String info) in c:\Users\SESA124669\Documents\Visual Studio 2012\Projects\GridTest\GridTest\Form1.cs:line 69
   at GridTest.Author.set_Name(String value) in c:\Users\SESA124669\Documents\Visual Studio 2012\Projects\GridTest\GridTest\Form1.cs:line 97
   at GridTest.Form1.button1_Click(Object sender, EventArgs e) in c:\Users\SESA124669\Documents\Visual Studio 2012\Projects\GridTest\GridTest\Form1.cs:line 52
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at GridTest.Program.Main() in c:\Users\SESA124669\Documents\Visual Studio 2012\Projects\GridTest\GridTest\Program.cs:line 19
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Here is the code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Telerik.WinControls.UI;
 
namespace GridTest
{
    public partial class Form1 : Form
    {
        private BindingList<Author> AuthorData = new BindingList<Author>();
        private BindingList<Book> BookData = new BindingList<Book>();
 
        public Form1()
        {
            InitializeComponent();
 
            radGridViewAuthors.DataSource = AuthorData;
 
            radGridViewBooks.MasterTemplate.Columns.Clear();
 
            GridViewComboBoxColumn colAuth = new GridViewComboBoxColumn("Author");
            colAuth.HeaderText = "Author";
            colAuth.Name = "Author";
            colAuth.DataSource = AuthorData;
            colAuth.ValueMember = "Id";
            colAuth.DisplayMember = "Name";
            colAuth.DisplayMemberSort = true;
            radGridViewBooks.MasterTemplate.Columns.Add(colAuth);
 
            GridViewTextBoxColumn colName = new GridViewTextBoxColumn("Name");
            colName.HeaderText = "Name";
            colName.Name = "Name";
            colName.ReadOnly = true;
            radGridViewBooks.MasterTemplate.Columns.Add(colName);
 
            radGridViewBooks.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
 
            radGridViewBooks.DataSource = BookData;
        }
 
        private void button1_Click(object sender, EventArgs e)
        {
            Author m = new Author();
            m.Id = AuthorData.Count + 1;
            AuthorData.Add(m);
            m.Name = textBoxAuthorName.Text;
        }
 
        private void button2_Click(object sender, EventArgs e)
        {
            Book m = new Book(textBoxBookName.Text);
            BookData.Add(m);
        }
    }
 
    public class Author : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        protected void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
 
        private int id;
        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
                NotifyPropertyChanged("Id");
            }
        }
 
        private string name;
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
                NotifyPropertyChanged("Name");
            }
        }
 
        public Author() { }
        public Author(int id, string name)
        {
            Id = id;
            Name = name;
        }
    }
 
    public class Book : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        protected void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
 
        private string name;
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
                NotifyPropertyChanged("Name");
            }
        }
 
        private Author author;
        public Author Author
        {
            get
            {
                return author;
            }
            set
            {
                author = value;
                NotifyPropertyChanged("Author");
            }
        }
 
        public Book() { }
        public Book(string name)
        {
            Name = name;
        }
    }
}
George
Telerik team
 answered on 22 Jul 2013
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?