Telerik Forums
UI for WinForms Forum
1 answer
182 views
Hi ,
  Is there any option in telerik Gridview where I can add a dropdown List in the Header Column ?
ie. the header will have a drop down to select the name of the column
Ivan Petrov
Telerik team
 answered on 22 Mar 2013
2 answers
442 views
Hi,

Is it possible to have a static / fixed position summary Row at the end of a grid.

By this I mean a Summary Row that is outside of the scroll area, so if I have 1000 rows the user will see, say the first 20 rows and can scroll up or down to see the other rows but the summary row is always visible, something like freezing the top row in Excel. 

What I want to see is the sum of a "volume"column at all times, I need to consider any filters that have been applied as well as only sum rows that have been checked.

Another option would be for me to add my own summary panel below the grid but then I would need to be able to get the position of the Volume column after resize or datadinding with Best fit so I can set the left value of say a label so that it is aligned with the Volume column. I tried to use CurrentCell to get the x coordinate, but I'm guessing that relies on the cell being selected.

Hope this makes sense and thanks in advance for your help..... Great controls by the way.

Cheers
Shaun.




Shaun
Top achievements
Rank 1
 answered on 22 Mar 2013
1 answer
87 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
193 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
56 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
163 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
629 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
427 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
129 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
129 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
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
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
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?