Telerik Forums
UI for WinForms Forum
5 answers
393 views
Hi,

          Is there a method or a work around to Export the heirarchial RadGridView data to Excel?

I tried the following methods:
  1. Using Telerik.Data.RadGridViewExcelExporter 
  2. Using RadGridReportingLite. sample code using RadLite.

            (RadGridReport rep = new RadGridReport(strFileName);

            rep.ReportFormShow(

this, this.radGridView1);

both of them are exporting only MasterTable Data. child Table data is not exported.

Please suggest any solution.

Thank you,
Raja.

Martin Vasilev
Telerik team
 answered on 19 Apr 2011
3 answers
135 views
Hello,

I'm evaluating the GridView component. In any case there will be no detail data bound to the grid.
Only if I'm using AutoGenerateHierarchy = true the detail will appear.

Previous steps in the designer:
- Defined two columns for master template (Vorname, Nachname) -> FieldName and HeaderText
- Created a new template called 'childTemplate' and add two columns (Firma, Ort) -> FieldName and HeaderText

As follow the code behind:
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Telerik.WinControls.UI;
 
namespace TestForm
{
    public partial class Form1 : Form
    {
        private readonly List<Person> _personen = new List<Person>();
 
        public Form1()
        {
            InitializeComponent();
 
 
            _personen.AddRange(new[]
                              {
                                  new Person {Vorname = "Danny", Nachname = "Meier", Jobs = new List<Job>
                                                                              {
                                                                                  new Job {Firma = "Heiniger & Partner AG", Ort = "Wetzikon"},
                                                                                  new Job {Firma = "Scor AG", Ort = "Zürich"},
                                                                                  new Job {Firma = "ERNI Consulting AG", Ort = "Zürich"}
                                                                              }},
                                  new Person {Vorname = "Michael", Nachname = "Bolliger", Jobs = new List<Job>()},
                                  new Person {Vorname = "Daniel", Nachname = "Kuster", Jobs = new List<Job>
                                                                                              {
                                                                                                  new Job {Firma = "Heiniger & Partner AG", Ort = "Wetzikon"}
                                                                                              }}
                              });
        }
 
        private void Form1Load(object sender, EventArgs e)
        {
            radGridView1.AutoGenerateHierarchy = false;
 
            var relation = new GridViewRelation(radGridView1.MasterTemplate, childTemplate);
            relation.ChildColumnNames.Add("Job");
            radGridView1.Relations.Add(relation);
 
            radGridView1.DataSource = _personen;
        }
    }
 
    public class Person
    {
        public string Vorname { get; set; }
        public string Nachname { get; set; }
        public List<Job> Jobs { get; set; }
    }
 
    public class Job
    {
        public string Firma { get; set; }
        public string Ort { get; set; }
    }
}

Thank you for any assistance.

Kind regards,
Danny
Richard Slade
Top achievements
Rank 2
 answered on 19 Apr 2011
2 answers
70 views
Dear All,

I need you help in drawing a line graph which has the following data:

X-Axis : 0.2 0.3 0.5 0.8 1.2
Y-Axis: 16 19 21 23 26

How can specify the x and y value of the added item.

Thanks
Jalal Eddin
Top achievements
Rank 1
 answered on 19 Apr 2011
1 answer
104 views
hi, if I right click and add recurring item on the header part of the scheduler, it doesn't put the time in?  my version is 2010.2.10.914
Ivan Todorov
Telerik team
 answered on 19 Apr 2011
5 answers
168 views
Hello,

in our scenario we have a treeview bound with self referencing items.
The goal is to serialize the expansion node states when leaving the application and restoring them on resumption.
While the serialization works just fine we have run into an issue trying to expand and/or collapse nodes when they get created.
On  first glance the NodeFormatting event seemed promising since it gets fired at the right time.
Unfortunately any manipulation inside its handler, no matter how small, causes the node not to be shown in the tree, thus leaving our tree empty, since all nodes get formatted this way. We currently set this issue aside, but need to implement it at some point in the future.
Any help is greatly appreciated.

Falk Wegener
orgAnice Software GmbH
Richard Slade
Top achievements
Rank 2
 answered on 19 Apr 2011
3 answers
262 views
Is there a way to rotate the text of the column header by 180 degrees when it is set to vertical?

What I mean by this is that I have my column headers set to vertical, but the text is written from top down, and I would like it to be written from the bottom up.

Thanks.

EDIT: The title should read 180 degrees
Richard Slade
Top achievements
Rank 2
 answered on 19 Apr 2011
2 answers
106 views
I had a look at the "community code library" article

export-gridview-to-html-for-copy-paste.aspx

1. Seems that the code needs to be updated a little to be compatible with  Q1 2011.

2. With Copy and Paste being such a basic and essential feature for many apps, is it not possible for Telerik to provide us with an example/demo project in VB.NET for this kind of functionality.   I've got a few "bugs" using the code in the example so a complete project with the relevant code would be most welcome.

3. Is there anyone who can help that has used copy (from RadGrid) and paste (to MS Word)  successfully?

Many thanks


Martin Vasilev
Telerik team
 answered on 19 Apr 2011
2 answers
160 views
Hello.
I insert MultiComboBoxColumn to radGridView and i want it auto complete = true.
Ex: I type "h" it will show "hello" from db

i used
GridViewMultiComboBoxColumn col = new GridViewMultiComboBoxColumn();
           col.DataSource = mh.ToList();
           col.DisplayMember = "ProductName";
           col.ValueMember = "ProductId";
           col.FieldName = "ProductId";
           col.HeaderText = "Product Name";
           col.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;
           col.AutoCompleteMode = AutoCompleteMode.SuggestAppend;

or

FilterDescriptor descriptor = new FilterDescriptor(col.DisplayMember, FilterOperator.StartsWith, string.Empty);
col.FilterDescriptor = descriptor;

but it not work.

Any suggestions for me.
Sorry my english not well.


Thanks,
NLT
thien nluong
Top achievements
Rank 1
 answered on 18 Apr 2011
5 answers
120 views
The Help files for the Telerik WinForms Controls was supposed to become integrated into the Visual Studio help with the latest release. That does not seem to be the case for my coworkers and I in Visual Studio 2010 SP1. When trying to use the .chm file on its own I get both a .chm and a .chw on my desktop, neither of which is usable. Any suggestions or assistance would be greatly appreciated!
Stefan
Telerik team
 answered on 18 Apr 2011
1 answer
117 views
I have been testing out this article. http://www.telerik.com/support/kb/winforms/gridview/adding-custom-elements-inside-a-cell-when-it-is-in-edit-mode.aspx. It does almost everything i want, but the click event of the button is not firing.

Anyone who knows howto get the button click event to fire?

Svein Thomas

Ivan Petrov
Telerik team
 answered on 18 Apr 2011
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?