Telerik Forums
UI for WinForms Forum
1 answer
79 views
I load classes in a propertygrid that I do not have direct access to change the ToString() displayed when the grid item is a collection.

The problem I have is when the property item is a collection, the value shows the full namespace but I would like to override the text value to something more user friendly.

Some of those collections have sub items and some use UIType editors.

Is it possible?

I tried everything I could think of from pgrid_ItemFormatting and from pgrid_SelectedObjectChanged
Ivan Petrov
Telerik team
 answered on 21 Mar 2013
2 answers
180 views
Hi,

I'm having a problem where I have a gridview with a master and child template.  I noticed that the parent row doesn't seem to be changing when I select a child row from a different row unless I select the parent row first.  The parent row will only change when I select the parent row directly.  If I move from one expanded child row to another expanded child row (a different parent record) this will not update any bound textbox controls with the parent row values.  The previous row values remain in the bound textbox controls.

I may be missing something obvious here but I would have thought that selecting childrows in different records should change the underlying parent record.

Thanks for any advice on this.

Stefan
Telerik team
 answered on 21 Mar 2013
1 answer
52 views
Hi,

I'm working on gridview and I updated the latest components Telerik. I tested in Winforms application to display hierarchical data. When I was finally able to view the data, I found a bug.

When I select a child row and all child rows that have the same index are selected. But if I select another row (different index) then all the selected rows to store the value of the previous row selected.
Even in your demo in the object-Relational the same problem exists.

I would like to know if there is already a solution to fix this problem or that it will be corrected in a future patch?
Stefan
Telerik team
 answered on 21 Mar 2013
1 answer
157 views
Hi, 

When I create and show RadMessageBoxForm from System.Threading.ApartmentState.MTA thread I cannot copy text from it by Ctrl+C key pressing.
I got ThreadStateException:
Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
Anton
Telerik team
 answered on 21 Mar 2013
1 answer
595 views
Hello
 I'm creating a winform application. I need to create certain users with different roles. Here are the 3 user groups:

Admin : RW: Scheduler, Overall Planning data, Data Filter, Leaves Tracker, Scrum Meeting Data, Available PDs, Resource E-mailer
           : R: Effort Recorder
Coord : RW: Data Filter, Scrum Meeting Data, Resource E-mailer
           : R: Effort Recorder, Leaves Tracker, Available PDs, Overall Planning Data,
Tester    : RW: Effort Recorder, Data Filter
          : R: Overall Planning Data, Leaves Tracker, Scrum Meeting Data

As stated above, Admin, Coord and Tester are the 3 user groups under which I've create multiple users. RW states Read-Write access to each of the modules mentioned above (such as Scheduler, Data Filter etc. ).  R indicates only the Read access.

How could I achieve this using winforms? Could you please help?

Here's the initial code I've so far!

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Login : Form
    {
        public Login()
        {
            InitializeComponent();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Indexer ins = new Indexer();
            ins.MdiParent = this.MdiParent;
            this.Hide();
            ins.ShowDialog();
        }
    }
}

Also, I've attached the design of Indexer which would be the next screens once a user logs in.
Julian Benkov
Telerik team
 answered on 21 Mar 2013
7 answers
415 views
Hey all,

So here is my situation:

I have a column that is of type double. If I "accidentally" enter in characters into the filter, I get an exception thrown that says: "FilterExpressionException" unhandled.

Where do I handle this?

Thanks,
Erik Van Norstrand
Svett
Telerik team
 answered on 20 Mar 2013
3 answers
119 views
Hello,
in a grid, I want to show a generic list of objects (type: Cars). No problem. One of the columns should be a ComboBox. In the combobox  the selection should be based on a different class (type: Country). The name of country should be displayed in the grid. In both classes, there is a property ID of type GUID. The ID will be created automatically and have no setter.

using System;
using Telerik.WinControls.UI;
using System.Linq;
 
namespace Grid_Test
{
    public partial class frmMitarbeiterlister : Telerik.WinControls.UI.RadRibbonForm
    {
        private TestData.Task taskNewBefore = null;
        private TestData.Task taskNewAfter = null;
 
        public frmMitarbeiterlister()
        {
            InitializeComponent();
            
        }
 
 
        private void GetTestData()
        {
            TestData.TestDataGenerator.GenerateTestData(1000);
            gridMitarbeiterListe.DataSource = TestData.DataAccessLayer.EmployeeList;
            gridMitarbeiterListe.BestFitColumns();
        }
        private void btnTestdatenErstellen_Click(object sender, EventArgs e)
        {
            GetTestData();
        }
 
        private void frmMitarbeiterlister_Load(object sender, EventArgs e)
        {  
            GetTestData();
            GetComboBox();
             
            
        }
 
        private void GetComboBox()
        {
            GridViewComboBoxColumn cbTask = new GridViewComboBoxColumn();
            cbTask.UniqueName = "TaskNew";
            cbTask.HeaderText = "New Task";
            cbTask.DataSource = TestData.DataAccessLayer.TaskCatalog;
            cbTask.ValueMember = "ID";
            cbTask.DisplayMember = "Description";
            cbTask.FieldName = "TaskNew.ID"; // Name in the employee-class
             
            gridMitarbeiterListe.MasterTemplate.Columns.Add(cbTask);
 
            // problem: After leaving the row the new value disapear.
        }
    }
}

Here is my class model
using System;
using System.Collections.Generic;
using System.Linq;
 
 
namespace Grid_Test.TestData
{
    internal static class DataAccessLayer
    {
        internal static  List<Employee> employeeList = new List<Employee>();
        internal static List<Task> taskCatalog = new List<Task>();
 
        public static List<Employee> EmployeeList
        {
            get {
                if (employeeList == null) { employeeList = new List<Employee>(); }
                return employeeList;
            }
        }
 
        public static List<Task> TaskCatalog
        {
            get
            {
                if (taskCatalog == null)
                { taskCatalog = new List<Task>(); }
                return taskCatalog;
            }
        }
    }
}


internal class Employee
    {
        internal Employee() { }
 
        private Guid id = Guid.NewGuid();
        private string firstname;
        private string lastname;
        private DateTime birthDay;
        private Task taskOld;
        private Task taskNew;
 
        public Guid ID { get { return id; } }
        public string Firstname { get { return firstname; } set { firstname = value; } }
        public string Lastname { get { return lastname; } set { lastname = value; } }
        public DateTime BirthDay { get { return birthDay; } set { birthDay = value; } }
        public Task TaskOld { get { return taskOld; } set { taskOld = value; } }
        public Task TaskNew { get { return taskNew; } set { taskNew = value; } }
 
 
 
    }

internal class Task
    {
        internal Task() { }
 
        private Guid id = Guid.NewGuid();
        private string description;
 
        public Guid ID { get { return id; } }
        public string Description { get { return description; } set { description = value; } }
 
        public override string ToString()
        {
            return Description;
        }
 
    }


I have found
no example for this purpose. For help, I would be grateful.
Christian Rudat
Peter
Telerik team
 answered on 20 Mar 2013
1 answer
119 views
Hi all,

how to set the encoding for the csv file which will be created when exporting the RadGridView?
I found no property or option in the exporter class.

Regards
Hardy
Ivan Petrov
Telerik team
 answered on 20 Mar 2013
2 answers
414 views
Dear all, Telerik members.
I have question for telerik radgirdview.
I has a combobox column in radgirdview. How I can set background image for this button foreach record.
See attached file below:
http://img849.imageshack.us/img849/550/equipment.gif
Mr.Het
Stefan
Telerik team
 answered on 20 Mar 2013
2 answers
233 views
Hi
I have just upgraded from 2011.2.11.0712 to Q1 2013.  Then my application breaks.  When one of the form loads, an error message popped up saying "Arrange with infinity or NaN size (parent: Telerik.WinControls.UI.RadPageViewStackElement, this: Telerik.WinControls.UI.RadPageViewStackItem)"

In designer view inside Visual Studio, I got the same error with call stack

at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.UI.RadPageViewStackElement.ArrangeItems(RectangleF clientRect)
at Telerik.WinControls.UI.RadPageViewElement.PerformArrange(RectangleF clientRect)
at Telerik.WinControls.UI.RadPageViewElement.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.RootRadElement.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.RootRadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.RadElementTree.PerformInnerLayout(Boolean performMeasure, Int32 x, Int32 y, Int32 width, Int32 height)
at Telerik.WinControls.RadControl.OnLoad(Size desiredSize)
at Telerik.WinControls.RadControl.LoadElementTree(Size desiredSize)
at Telerik.WinControls.RadControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at System.Windows.Forms.Form.ControlCollection.Add(Control value)
at System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add(Control c)

Error list showed the error in designer.cs
Following the line number, the error came from this line

            this.Controls.Add(this.tableLayoutPanel1);

tableLayoutPanel1 is of type System.Windows.Forms.TableLayoutPanel


What does that mean and how to fix?

Regards
Edwin
Peter
Telerik team
 answered on 19 Mar 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)
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
StatusStrip
CheckedListBox
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?