Hi,
I have questions regarding..
I appreciate your help.
Thanks!
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;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.


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:
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.
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;
}
}