Telerik Forums
UI for WinForms Forum
3 answers
140 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
160 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
616 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
128 views
Is it possible to activate a child form from parent.

Nikolay
Telerik team
 answered on 02 Aug 2010
1 answer
332 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
141 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
428 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
464 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
338 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
2 answers
218 views
I have created a custom UserControl.  The structure of the UserControl is,

UserControl
   RadPanel1
      RadPanel2
      RadStatusStrip

RadPanel2 is where I draw graphics.  The RadStatusStrip display mouse location information below RadPanel2.  RadPanel1 is sized so that RadPanel2 and RadStatusStrip completely fill the area.

This UserControl is then placed in a ToolWIndow within a ToolTabStrip within a RadSplitContainer within a RadDock.

In the initial state, everything works fine.  However, I need to dynamically resize the UserControl when the RadSplitContainer is resized, or when the ToolWindow is undocked and resized.  I also need to resize the UserControl when the ToolWindow is redocked.

I have tried making the RadPanels the Windows Panel also.  In both cases, I cannot get the Resize event on the Panel or RadPanels to fire to allow me to redraw the contents according to the new size.  I do see the Resize event on the ToolWindow being fired.

What is the proper way for me to do the resizing of the UserControl and its contents?

Thanks for any help.


Ken...
Boryana
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)
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?