Telerik Forums
UI for WinForms Forum
2 answers
163 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
101 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
130 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
509 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
97 views
Is it possible to activate a child form from parent.

Nikolay
Telerik team
 answered on 02 Aug 2010
1 answer
295 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
119 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
1 answer
344 views
Hi Telerik:
           IF i have too many items in Toolstrip, could I customize the overflow panel to only show the invisible ones, and NOT to show ones like "Add or Remove Buttons", "Customize", "Reset Toolbar"?
           And Overflow panel does not support the scroll bar, so users have no way to select the last ones, if there are too many items in RadToolStripItem.
Boryana
Telerik team
 answered on 30 Jul 2010
2 answers
393 views
Hi,
I got '4' radButtons for my application. When each button is clicked it will open up a form. I wanted to modify the buttons in such a way that the button which is clicked  keeps highlighted until another button is clicked...!

Thanks
Boryana
Telerik team
 answered on 30 Jul 2010
9 answers
302 views
I have code for a bound grid that changes a column filter based on the value of a checkbox on the form.  When the form initially loads, I am able to select a row by clicking on the grid.  After the filter is set programtically one or more times, I can no longer select a row by clicking on the grid.  The selected row stays the same.

 

 

if (showAll.CheckState != CheckState.Checked) {  
    FilterExpression _filter = new FilterExpression(FilterExpression.BinaryOperation.AND,  
    GridKnownFunction.EqualTo,  
    GridFilterCellElement.ParameterName);  
    _filter.Parameters.Add(GridFilterCellElement.ParameterName, 123);  
    Grid1.MasterGridViewTemplate.FilterExpressions.Clear();  
    Grid1.Columns["ID"].Filter = _filter;  
}  
else {  
        Grid1.MasterGridViewTemplate.FilterExpressions.Clear();  
        Grid1.Columns["ID"].Filter = null;  
}  
 

 

Julian Benkov
Telerik team
 answered on 30 Jul 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)
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?