Telerik Forums
UI for WinForms Forum
1 answer
198 views
I have implemented an export routine using the RadGridView control.

It seemed to be working okay until Q22010.

Here is my structure:

I have a master template with two child templates. I want to read a row from the master and then read all rows from one child template and then read all the rows of the second child template. Both child templates are children of the master. I am referring to the child templates by index. One template caption is 'MVA' (index 0) and the other is 'P' (index 1). Let's assume there is only 1 of each.

Here is what happens:

if I have the 'MVA' tab selected and then export the MVA template is output twice and no 'P' template is output. However, if I have the 'P' tab selected the two 'P' records are output and no 'MVA'.

It looks as if I need to programmatically select first the 'MVA' tab and output the rows and then select the 'P' tab and output the rows.

I can't seem to reference the two sets of child rows directly.

Jack
Telerik team
 answered on 20 Jul 2010
1 answer
188 views
We got these errors when trying to upgrade our Q1 SP2 projects:

1. no 'VisualElement' property
GridViewRowInfo r = radGridView.Rows[i];
r.VisualElement.ForeColor = System.Drawing.Color.Red;

2. no 'CellElement' property
GridViewCellInfo gvci = radGridView.Rows[i].Cells[0];
GridCheckBoxCellElement gcbce = (GridCheckBoxCellElement)gvci.CellElement;

3. no 'Owner' property
var col = (GridViewDataColumn)cell.ColumnInfo;
col.OwnerTemplate.Owner;

Please help us to fix the above errors. Thanks in advance.

BR/shortie

Jack
Telerik team
 answered on 20 Jul 2010
1 answer
125 views
Hello Telerik,

I am looking into the just released Demo of Winforms UI components Q2 2010. On a fresh Windows XP setup (all windows updates installed) the provided demo application shows in Gridview  / Spreadsheet a simple undhandeld exception because "System.ArgumentException: Font 'Calibri' cannot be found." A quick search seems to indicate that Calibri is a font that came new with Vista and can be installed on XP by downloading and installing the MS PowerPoint Viewer 2007.

Maybe you want to fix this in future releases to provide the best possible first impression of your great components.

Regards,
Ralf
Alexander
Telerik team
 answered on 20 Jul 2010
5 answers
330 views
Hi, a breaking change has happened between 2009Q1 1414 and 2009Q2 SP1 9729.

I add images dynamically to an imagelist. Then I change the ImageKey (tried with ImageIndex as well) on a node. The image is not shown. This breaks my application which worked fine on 2009Q1 1414.

        private void radButton1_Click(object sender, EventArgs e) 
        { 
            imageList1.Images.Add(radTextBox1.Text, Image.FromFile(radTextBox1.Text)); 
 
            //radTreeView1.Nodes[0].ImageKey = radTextBox1.Text; 
 
            radTreeView1.Nodes[0].ImageIndex = imageList1.Images.IndexOfKey(radTextBox1.Text); 
        } 

Any ideas?
- jorge
Victor
Telerik team
 answered on 20 Jul 2010
3 answers
171 views
I'm building a property-editor style grid with a readonly column with the name of the property and then an editable column to enter data.  Some of the rows have drop-down values where they have their own unique choice of drop-down entries.  I can get the comboBoxEditor to appear with the following code:

private void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
{
    List<string> fixedValues = GetFixedValues();
    if (fixedValues == null) return; //will use a normal textbox editor for items with no fixedValues
  
    RadComboBoxEditor comboEditor = new RadComboBoxEditor();
    (comboEditor.EditorElement as RadComboBoxEditorElement).DataSource = fixedValues;
  
    e.Editor = comboEditor;
    e.EditorType = typeof(RadComboBoxEditor);         
}

but I am having trouble optimizing the use of the combobox for data entry.  The comboBox loses its value as you tab through the cell without changing anything.  Basically I haven't found any way to set the selected index or the value.  I think it has to do with the Items property never being populated, but I can't get it to populate even though the DataSource is set.

Any ideas?

Thanks,
Adam


Martin Vasilev
Telerik team
 answered on 20 Jul 2010
1 answer
219 views
I add column checkbox in radGridView. When I check it error " Specified cast is not valid "

Code:
if (this.radGridView1.ActiveEditor is RadCheckBoxEditor)
{
        bool value = (bool)this.radGridView1.ActiveEditor.Value;
}

Help Me. Thank You.
Svett
Telerik team
 answered on 19 Jul 2010
2 answers
283 views
Hi !

1) I want add control in Cell of RadGridView.
2) Set color for Cell .
e.g: radGridView1.Rows[1].Cell[2]....?

Help Me. Thanks
Alexander
Telerik team
 answered on 19 Jul 2010
1 answer
88 views
Can you recommend me a method to obtain ajax loadingpanel-like functionality when using WinForms controls? This would help in showing to a user that a background operation is currently in progress on a particular part of the application (for example a control in the bottom-right corner of the application) while still allowing him to browse through the rest of the application. I feel that simply changing the cursor to a waitcursor is not enough, as he has to be hovering the mouse over the usercontrol to realize that work is being done related to that component.
Boryana
Telerik team
 answered on 19 Jul 2010
1 answer
539 views
This may not be the right place for this, but i've never really seen this happen before. 

Basically I have a user control (attachment 1). The control consists of a splitcontainer with 2 panels. panel 1 is a radgridview, panel 2 is a listbox. below the splitcontainer is a radtextbox. 

In my code i add that control with tabpage.contentpanel.controls.add()
and I use the Dock = DockStyle.Fill;

This does not turn out the way it should.(see attachment 2).
Any ideas why the Dock is not responding properly?



Boryana
Telerik team
 answered on 19 Jul 2010
1 answer
532 views
Is there a way to control how far a child node is indented?  right now, the treeview looks nice, but takes up too much horizonal space, and I am looking to compress it somewhat.

Thanks.
Emanuel Varga
Top achievements
Rank 1
 answered on 19 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
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?