Telerik Forums
UI for WinForms Forum
1 answer
174 views

Hi,

I have questions regarding..

 

  1. How to add multiple RadCharts to the same print document?
  2. How to print RadChart and RadGridView in the same document?
  3. Is there a way to add a page header and a footer or some kind of text while printing the RadChart control?

I appreciate your help.

Thanks!

Giuseppe
Telerik team
 answered on 03 Aug 2010
4 answers
423 views
Hi,

I have a gridview with 2 columns and the AutoSizeColumnsMode is set to Fill.
The grid's datasource is a LinqToSql query, with both fields being strings and it's set in the Form_Load.

The width of the first column however isn't big enough for either the value or the headertext of that column.
I've tried using BestFitColumn but then both columns get a small width.
Is there some other property or something i need to set?

Below is the definition of the grid.
this.radGridView1.MasterGridViewTemplate.AllowAddNewRow = false;
this.radGridView1.MasterGridViewTemplate.AllowColumnReorder = false;
this.radGridView1.MasterGridViewTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
gridViewTextBoxColumn1.AllowResize = false;
gridViewTextBoxColumn1.AllowSort = false;
gridViewTextBoxColumn1.FieldName = "Ordernumber";
gridViewTextBoxColumn1.HeaderText = "Ordernumber";
gridViewTextBoxColumn1.UniqueName = "OrdernumberColumn";
gridViewTextBoxColumn2.AllowResize = false;
gridViewTextBoxColumn2.FieldName = "OrderProduct";
gridViewTextBoxColumn2.HeaderText = "Product";
gridViewTextBoxColumn2.UniqueName = "OrderProductColumn";
this.radGridView1.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn1);
this.radGridView1.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn2);
this.radGridView1.MasterGridViewTemplate.EnableGrouping = false;
this.radGridView1.Name = "radGridView1";
this.radGridView1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 1);
this.radGridView1.ReadOnly = true;
Martin Vasilev
Telerik team
 answered on 03 Aug 2010
2 answers
156 views
Hi all,
I have a question, exist one way at the moment adding winform add Dock, this appears in the right side?.

Example
Normal way:
..., Documento 3, Documento 2, Documento 1

I want to do:
Documento 1, Documento 2, Documento 3, ....

Thanks a lot

Victor
vbocanegra
Top achievements
Rank 2
 answered on 03 Aug 2010
2 answers
210 views

Hello everybody
I'm sorry if this question was discussed somewhere and I ask it again but rush search didn't give suitable solution.

My aim is to resize two controls according to the size changes that user does. I mean user enhanced width form 200 to 300 and 2 controls get +50 pixels to width.

SplitContainer does exactly what I want but is there any ability to forbid SplitConteiner resizing using arrows (or borders between splitPanels?) I need SplitContainer be invisible on the form and the only thing that can it do - resize inner content when user resizes the form.

Thanks, sorry about my poor english.

Stefan
Telerik team
 answered on 02 Aug 2010
3 answers
146 views
Hi ,  
    I am new for Telerik. And m using RadControls for Winforms Q1 2010 SP1.

    I need Clarification How can we Create RadComboBox withi having Horizantal Scroll. And also how can we use this Horizantal Scroll comboBox as one of the GridViewCell in the GridView.
 
Plese replay ASAP. I am waiting for ur response.

Thanks,
KKC
Boryana
Telerik team
 answered on 02 Aug 2010
1 answer
171 views
Hi,
    I am using Rad controls for Winforms Q1 2010 SP1 in my Client machine. Actually m facing problem with how Can we merge cells in the Gridview based on the Cell value is null.
Please help me, How to reslove this issue in my Project. Ans also m sending sample snap shoot how data should present in the Gridview. If, Mergging cell is not posiable in GridView, please suggest me is there any alternate flow to achive this functionality.

Awaiting for your response.

Thanks,
KKC
Stefan
Telerik team
 answered on 02 Aug 2010
6 answers
636 views

Hi,

I would like to send a GridView to the RadGridReportingLite in order to create a report. Since I need to change the grouping and sorting of the GridView for the report with no effect on the display, I thought of cloning the GridView, send it to the RadGridReportingLite and dispose it.

There is no method of deep copying of the GridView so what I do is:

  1. Create new GridView.
  2. Save the layout of the original GridView and load it to the new one.
  3. Create a copy of the original DataSet (which is the data source of the grid).
  4. Bind the new DataSet to the new GridView;
  5. Send the new GridView to the RadGridReportingLite.

The following code snippet demonstrates it.

// Create a new grid for the report.
RadGridView grdReport = new RadGridView();
 
// Clone the dataset with the original data.
DataSet dsReport = ((DataView)grdOriginal.DataSource).Table.DataSet.Copy();
 
// Set it as the new grid's data source.
grdReport.DataSource = dsReport.Tables[0].DefaultView;
 
// Create a stream in the memory.
using (MemoryStream stream = new MemoryStream())
{
    // Save the grid to the stream.
    grdOriginal.SaveLayout(stream);
 
    stream.Seek(0, SeekOrigin.Begin);
 
    // Load the original grid layout to the new one.
    grdReport.LoadLayout(stream);
}

When I execute this code I get an exception from the RadGridReportingLite, because the GridView is empty. The GridView is never displayed so the binding doesn’t occur. What I’m asking is how do I execute the binding explicitly (something like the DataBind() method in ASP.NET)?

BTW, is there a better way to achieve this functionality?

I’m using 2010 Q1 SP controls.

Thanks in advance,

Sharon.

Martin Vasilev
Telerik team
 answered on 02 Aug 2010
1 answer
132 views
Is it possible to activate a child form from parent.

Nikolay
Telerik team
 answered on 02 Aug 2010
1 answer
343 views
I have an application that fires of a workerthread where I do all my loading from a database.  The workerthread is fired off from the Form.Load event and unless I put text into the radProgressBar, no information is being displayed on the screen.  Also I cannot figure out how the set the percent value correctly to display.  I have minimum and maximum values set to 1 and 100 and during progress worker thread event I send in correct percentage but it never updates percent in any of my forms....Help would greatly be appricated as we are trying to ship this product out this week.

According to documentation, I doing everything correctly...

Load Code:

radProgressBarSearchLocal.Minimum = 0;

radProgressBarSearchLocal.Maximum = 100;

radProgressBarSearchLocal.StepWidth = 12;

radProgressBarSearchLocal.Text =

"Loading Collection...";

 

radProgressBarSearchNetwork.Minimum = 0;

radProgressBarSearchNetwork.Maximum = 100;

radProgressBarSearchNetwork.StepWidth = 12;

radProgressBarSearchNetwork.Text =

"Loading Collection...";

 

radProgressBarSearchOutlook.Minimum = 0;

radProgressBarSearchOutlook.Maximum = 100;

radProgressBarSearchOutlook.StepWidth = 12;

radProgressBarSearchOutlook.Text =

"Loading Collection...";

 

totalitems = 0L;

processeditems = 0L;

radBack.Enabled =

false;

 

radCancel.Enabled =

false;

 

radNext.Enabled =

false;

 

radFilterLDCollection.Enabled =

false;

 

radFilterNDCollection.Enabled =

false;

 

radFilterOutlookCollection.Enabled =

false;

 

radSearchLDCollection.Enabled =

false;

 

radSearchOutlookCollection.Enabled =

false;

 

radSearcNDhCollection.Enabled =

false;

 

 

Program.myIndex = null;

 

 

this.Cursor = Cursors.WaitCursor;

 

whichbackground = 1;

backgroundWorker1.RunWorkerAsync();


 

private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)

 

{

 

switch (Program.activeCollection)

 

{

 

case COLLECTION_TYPE_LOCALDRIVES:

 

radProgressBarSearchLocal.Text = e.UserState.ToString();

radProgressBarSearchLocal.Value1 = e.ProgressPercentage;

radProgressBarSearchLocal.ProgressBarElement.PerformStepValue1();

radProgressBarSearchLocal.Refresh();

 

break;

 

 

case COLLECTION_TYPE_NETWORKDRIVES:

 

radProgressBarSearchNetwork.Text = e.UserState.ToString();

radProgressBarSearchNetwork.Value1 = e.ProgressPercentage;

radProgressBarSearchNetwork.ProgressBarElement.PerformStepValue1();

radProgressBarSearchNetwork.Refresh();

 

break;

 

 

case COLLECTION_TYPE_OUTLOOK:

 

radProgressBarSearchOutlook.Text = e.UserState.ToString();

radProgressBarSearchOutlook.Value1 = e.ProgressPercentage;

radProgressBarSearchOutlook.ProgressBarElement.PerformStepValue1();

radProgressBarSearchOutlook.Refresh();

 

break;

 

}

}


Progress event code:

Ray McCue
Software Consultant
ecWest LLC
Nikolay
Telerik team
 answered on 02 Aug 2010
1 answer
148 views
I am trying to set the location of a shaped form to be relative to a specific control on the calling form, however when i change the location before the "ShowDialog()"  it doesn't actually move the form. 

regardless of the cords that i put in, the shaped form opens in the same spot. 

Thanks!
Nikolay
Telerik team
 answered on 02 Aug 2010
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?