Telerik Forums
UI for WinForms Forum
8 answers
173 views
Hi All;

When i click a filtering texbox of an imageColumn a have an exception. what am i supposed to do?

if you tell the way  to close "all filtering stuff" of image columns. It's o.k too.

Thanks You

the exception:
Value cannot be null.
Parameter name: key
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
   at Telerik.WinControls.UI.GridViewEditManager.GetDefaultEditor(IEditorProvider provider)
   at Telerik.WinControls.UI.BaseGridBehavior.InitializeEditor(GridViewColumn column)
   at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDownLeft(MouseEventArgs e)
   at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDown(MouseEventArgs e)
   at Telerik.WinControls.UI.RadGridView.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
Bimar
Top achievements
Rank 1
 answered on 16 Jul 2008
2 answers
119 views
Hey Peoples
Is it possible to set a Image for a Chunk?
I want that it looks like that:
http://img258.imageshack.us/img258/2802/ribbonxl9.jpg

thanks
Einar
Top achievements
Rank 1
 answered on 16 Jul 2008
4 answers
219 views
How would I go about adding a select all checkboxes header element to a check box column?  I'd settle for a button at this point as well.

Thanks,
Colin
Nikolay
Telerik team
 answered on 15 Jul 2008
3 answers
314 views
I am manually building a radgridview with a childgridview with custom objects but I am not clear on how to retrieve the child rows value on press of a button.  I am adding a decimal column that I want to retrieve the user input.

Below is the code that populated the radgridview.

Thanks.



BindingList<LoadLine> loadLines = new BindingList<LoadLine>();
            BindingList<PartLocation> partLocations = new BindingList<PartLocation>();

GridViewTemplate locationsTemplate = new GridViewTemplate(this.radGridViewLoadDetailLoadLines);
                locationsTemplate.AutoGenerateColumns = false;

                #region Manually Add Columns for Child Table

                GridViewDataColumn columnPartId = new GridViewDataColumn();
                columnPartId.UniqueName = "PartId";
                columnPartId.FieldAlias = "PartId";
                columnPartId.FieldName = "PartId";
                locationsTemplate.Columns.Add(columnPartId);

                GridViewDataColumn columnLocationId = new GridViewDataColumn();
                columnLocationId.UniqueName = "LocationId";
                columnLocationId.FieldAlias = "LocationId";
                columnLocationId.FieldName = "LocationId";
                locationsTemplate.Columns.Add(columnLocationId);

                GridViewDataColumn columnAvailableQty = new GridViewDataColumn();
                columnAvailableQty.UniqueName = "AvailableQty";
                columnAvailableQty.FieldAlias = "AvailableQty";
                columnAvailableQty.FieldName = "AvailableQty";
                locationsTemplate.Columns.Add(columnAvailableQty);

                GridViewDecimalColumn columnQtyToAllocate = new GridViewDecimalColumn();
                columnQtyToAllocate.UniqueName = "QtyToAllocate";
                columnQtyToAllocate.HeaderText = "Qty To Load";
                locationsTemplate.Columns.Add(columnQtyToAllocate);

                #endregion

                locationsTemplate.DataSource = partLocations;
                locationsTemplate.AllowAddNewRow = false;
                locationsTemplate.AllowAutoSizeColumns = true;
                locationsTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;

                this.radGridViewLoadDetailLoadLines.MasterGridViewTemplate.ChildGridViewTemplates.Add(locationsTemplate);
                GridViewRelation relation = new GridViewRelation(this.radGridViewLoadDetailLoadLines.MasterGridViewTemplate);
                relation.RelationName = "Load Line Part Locations";
                relation.ParentColumnNames.Add("PartId");
                relation.ChildColumnNames.Add("PartId");
                relation.ChildTemplate = locationsTemplate;
                this.radGridViewLoadDetailLoadLines.Relations.Add(relation);

this.radGridViewLoadDetailLoadLines.DataSource = loadLines;
Michael
Top achievements
Rank 1
 answered on 15 Jul 2008
1 answer
228 views
Not sure if I'm doing this the wrong way, or if there is a bug in the control, but I can't seem to set the enabled or readonly property to disable text entry for a time.  Is there something I'm doing wrong or a workaround?

I tried
Element.Enabled = false;
Element.TextBoxItem.Enabled = false;
Element.TextBoxItem.ReadOnly = true;
Element.TextBoxItem.HostedControl.Enabled = false;

None seemed to work.
Nikolay
Telerik team
 answered on 15 Jul 2008
2 answers
108 views
Hello

I am trying to create a toolbar similar to the visual studio toolbox where everything will be in groups.

In visual studio when you right click to add a new group, once added the caption comes up as editable!

Is there a built in way of making the caption editable on the panel bars group element?

Or do you have any suggestions of the best way of going about it?

Thanks

Bex
Bexm
Top achievements
Rank 1
 answered on 15 Jul 2008
1 answer
108 views
I have a form using the radRibbonBar and it works fine but I have one annoying problem. In order to make the form look right I need to hide the blue title bar on the form - this means setting the text property to nothing and turning off the control box. The form looks good but the button associated with it that appears in the taskbar has no text in it. I've set the text property of the ribbonbar but this isn't reflected in the button.

Is there a way to set the button text independently of the form?

I've tried setting the text property after the form has loaded but this made no difference.

Thanks for any suggestions,
Martin.
Peter
Telerik team
 answered on 15 Jul 2008
2 answers
135 views
Hello,

I need a help,please. I have some RadComboBoxElements in my RadGridView in sense of previously posted ProgressBarInGrid project. And I have to AddHandler of RadComboBox.DropDownOpened/Closed events, but the RadComboBoxElement has not this events like the normal RadComboBox does. But other RadComboBox events such as SelectedIndexChanged are included and work well. If there is a ellegant way(Because these elements are DropDownList i could handle click_event and check if isdroppeddown but this part solution does not handle if someone open the list and then close it by clicking somewhere on form ) of Handling these events, please post it. Thanks.
Daniel
Top achievements
Rank 1
 answered on 15 Jul 2008
3 answers
118 views

Hey guys,

Someone had asked about showing a form in a Carousel or Rotator - don't remember which. Anyway, that got me thinking...hmmmm....though you may not be able to show an entire form in those controls, you can display a RadPanel in those controls. So then it occurred to me that you could create a RadPanel on a different form, then populate the Carousel or Rotator with that panel. This allows you to put the entire contents of the RadPanel from Form2 on Form1.

Here's what I mean....

Consider this:
- Create two forms - Form1 and Form2
- On Form1, add a RadRotator and a button to change rotator pages (button click, radRotator1.Next();)
- On Form2, add two RadPanels and some RadButtons or other rad controls on each panel
- Back on Form1, create these two methods:

private RadPanel GetPanel(Form form, string panelName)
{
  RadPanel panel = (RadPanel)form.Controls[panelName];
  if (panel == null)
  {
    panel = new RadPanel();
    panel.Text = "UNKNOWN PANEL: " + panelName;
  }

  return panel;
}

private void PopulateRotator()
{
  //create instance of Form2
  Form2 form2 = new Form2();

  //get radPanel1 from Form2
  Telerik.WinControls.UI.RadPanel panel = this.GetPanel(form2, "radPanel1");
  radRotator1.RotatorElement.Items.Add(new RadHostItem(panel));

  //get radPanel2 from Form2
  panel = this.GetPanel(form2, "radPanel2");
  //add the second panel to the rotator
  radRotator1.RotatorElement.Items.Add(new RadHostItem(panel));

  radRotator1.OpacityAnimation = true;
  radRotator1.Next();
}
       
       
- Finally, add the Form_Load event in Form1 and call the PopulateRotator() method.

DISCLAIMER: Just an idea. You'll need to add error handling and stuff...and eh...did I mention this was only an idea?!!!!!  :-)

Mike
Telerik team
 answered on 14 Jul 2008
3 answers
148 views
In many applications now, if you click the upper left corner of a grid/table, it will select the entire table.  Is this possible in the GridView?
Martin Vasilev
Telerik team
 answered on 14 Jul 2008
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?