Telerik Forums
UI for WinForms Forum
1 answer
111 views
I may be doing something wrong here, but I've added a button to my form that would allow the user to change the view mode. 
Basically, its just not working. The pageview never changes modes. What am i doing wrong?

The code is here:


private void btnView_Click(object sender, EventArgs e)
       {
           if (pvChecklist.ViewMode == PageViewMode.Stack)
               pvChecklist.ViewMode = PageViewMode.Strip;
           if (pvChecklist.ViewMode == PageViewMode.Strip)
               pvChecklist.ViewMode = PageViewMode.ExplorerBar;
           if (pvChecklist.ViewMode == PageViewMode.ExplorerBar)
               pvChecklist.ViewMode = PageViewMode.Stack;
       }
Phillip Foster
Top achievements
Rank 1
 answered on 25 Feb 2011
8 answers
296 views
I have a radgridview whoose headers are built though columngroupdefinition. The radgridview has 2 view settings and user can toggle between the two. The column chooser works fine the first time it loaded (It does not allow a column on the grid to be dragged onto the it, but that can be worked around by right clicking on the column and hiding it). When the user toggles the view, the column chooser can be loaded, however it does not do anything. Cannot drag columns from and to the column chooser


Thanks
Deepak
Richard Slade
Top achievements
Rank 2
 answered on 25 Feb 2011
25 answers
553 views
I have a GridView containing two visible columns, PropertyName and Value.  The PropertyName is read only, but the value is to be edited.  Most of the time, a text box is reaquired for freeform text, however, sometimes the property has fixed values, which we want to display as a dropdown, or the value may contain a more complex type (xml) which we would like to display a button, and have the button pop up a new gridview with the xml bound to it,

How can I use a different edit control on different rows, but in the same column? Is this possible?:

Thanks
Bimar
Top achievements
Rank 1
 answered on 25 Feb 2011
1 answer
147 views

Good morning.
I'm studying your demos for RadCarousel, in particular the "First Look" one, and I want to intercept the double click event on an item. I don't know how to do it, as the item hasn't the double click event wired to it. How can I solve this problem?

Thank you

Gianfranco Pesenato

Ivan Todorov
Telerik team
 answered on 25 Feb 2011
0 answers
102 views

As a good tradition we are happy to announce the availability of Q1 2011 Beta of RadControls for WPF. Along with a bunch of new features and improvements we are glad to present you several new controls.

RadRichTextBox 

In response to numerous client requests we included the RichTextBox control in our WPF suite. Just like its counterpart for Silverlight the new RadRichTextBox for WPF offers broad editing and formatting capabilities with unmatched performance and true Word-like experience.


RadDataForm
 

RadDataForm control provides UI for displaying and editing properties of an object in a form layout. It includes collection navigation capabilities, editing and respects key DataAnnotation attributes.


RadExpressionEditor
 

The new RadExpressionEditor provides end users the ability to write and edit complex formula expressions as a free form text. At the same time the new control gives the developers access to the structured data (in the form of a LINQ expression) about the entered expression. The primary use case for this component is integration within RadGridView and its LINQ based data engine, which allows unlimited runtime data shaping customizations.


RadMaskedInput
 

RadMaskedInput controls are designed for masking (controlling correct input) and formatting (displaying) culture specific values like numbers, currency, dates and text. The controls support data validation and provide great control over the input behavior, navigation, masked text (when in edit mode), display text (when not in edit mode).

You can download the installation files under your accounts. The files are marked with Q1 2011 Beta.

Online demos are available at:

RadControls for WPF

Full details can be found at:

RadControls for WPF

We will greatly appreciate your feedback in our Beta forums:

http://www.telerik.com/community/forums/wpf/beta.aspx

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 25 Feb 2011
2 answers
97 views
I'm using the Office 2010 theme and have the following issues

1.  How do I see the text "Click here to add a new row"?  With this theme, I am not seeing this.  I assume this is because of the theme, perhaps not.  Either way, the documentation shows this at the top of the grid (directly under the column headers) and my grid does not show it.

2.  How can I change the background color of this new row which is being filled in? 

Thanks,
Chris
Richard Slade
Top achievements
Rank 2
 answered on 25 Feb 2011
6 answers
202 views
Hello,

I have a unique requirement where I have to find out if a user manually entered a value in the cell or the system generated it. For example, in a cell it shows 10 as the current value and if the user typed in 10 again, the application has to know if 10 is typed in by user or not.

The cells could have any value type and so I am changing the editor in radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e). However, the handlers for the EditorElements are not being called when the user edits the cells. I am using RadComboBoxEditorElement, GridSpinEditorElement and RadTextBoxEditorElement.

private void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
 {
     var varModel = radGridView1.CurrentRow.Tag as VariableModel;
 
     if (varModel.Variable != null)
     {
         var variableType = varModel.Variable.VariableType;
 
         if (varModel.Variable.VariableSelectionValueCollection.Count > 0)
         {
             var selValCol = varModel.Variable.VariableSelectionValueCollection;
             if (selValCol != null && selValCol.Count > 0)                          // if to be shown as a dropdown  // todo: vsv fix
             {
                 var editor = new RadComboBoxEditor();
                 var elem = editor.EditorElement as RadComboBoxEditorElement;
 
                 elem.DropDownWidth = radGridView1.Columns[STR_ValueCol].Width + radGridView1.Columns[STR_UnitsCol].Width;
                 elem.DropDownStyle = RadDropDownStyle.DropDownList;
                 elem.MaxDropDownItems = 10;
                 elem.DataSource = selValCol.Select(vs => vs.Description).ToList<string>();
 
                 editor.DropDownSizingMode = SizingMode.UpDownAndRightBottom;
                 //editor.ValueChanged += new EventHandler(editor_ValueChanged);
 
                 e.Editor = editor;
             }
         }
         else if (variableType == VariableTypeEnum.Integer)
         {
             var editor = new GridSpinEditor();
             var elem = editor.EditorElement as GridSpinEditorElement;
             elem.MaxValue = int.MaxValue;
             elem.MinValue = int.MinValue;
             if (varModel.Variable.Val != null)
                 editor.Value = varModel.Variable.Val.ToInt32();
 
             e.Editor = editor;
         }
         else if (variableType == VariableTypeEnum.Double)                // todo : capture keys to exclude text
         {
             e.EditorType = typeof(RadTextBoxEditor);
             var editor = new RadTextBoxEditor();
             var elem = editor.EditorElement as RadTextBoxEditorElement;
             //elem.TextChanging += new TextChangingEventHandler(Editor_TextChanging);
             //elem.TextChanged += new EventHandler(elem_TextChanged);
             if (varModel.Variable.Val != null)
                 editor.Value = varModel.Variable.Val.ToDouble();
             e.Editor = editor;
         }
         else if (variableType == VariableTypeEnum.Boolean)
         {
             var editor = new RadComboBoxEditor();
             var elem = editor.EditorElement as RadComboBoxEditorElement;
             elem.Items.AddRange(new[] { new RadComboBoxItem("True"), new RadComboBoxItem("False") });
             editor.Value = elem.Items.Where(ri => ri.Text.ToLower() == varModel.Variable.Val.Val.ToLower()).FirstOrDefault();
 
             e.Editor = editor;
         }
         else if (variableType == VariableTypeEnum.String)
         {
             e.EditorType = typeof(RadTextBoxEditor);
             var editor = new RadTextBoxEditor();
             var elem = editor.EditorElement as RadTextBoxEditorElement;
             //elem.TextChanged += new EventHandler(elem_TextChanged);
             if (varModel.Variable.Val != null)
                 editor.Value = varModel.Variable.Val.ToString();
             e.Editor = editor;
         }
     }
 }


Thanks
Stefan
Telerik team
 answered on 25 Feb 2011
7 answers
338 views
Hi all,

I have need for a cell background color to change when the data changes in that cell..  Currently I have it working in the ValueChanged event and it works fine, but when I scroll, the cell color doesn't scroll with the rows..  I undersgtand this is due to the visual elements and that I should set the color in the RowFormatting event, however, I have no idea what the value is, and can not do "conditional formatting"...  is there a way to know, in RowFormatting, that the cell has been changed?
Thanks,

Matt

My code to do this in CellValueChanged is:
void gvMain_CellValueChanged(object sender, GridViewCellEventArgs e)
{
    GridDataCellElement ce = (GridDataCellElement)sender;
    ce.BackColor = Color.LightPink;
    ce.BackColor2 = Color.White;
    ce.NumberOfColors = 2;
    ce.DrawFill = true;
    ce.GradientStyle = Telerik.WinControls.GradientStyles.Linear;
    _dataDirty = true;
    btnSave.Visible = true;
}
Matt
Top achievements
Rank 1
 answered on 25 Feb 2011
1 answer
261 views
Have been scratching my head a little over this one for a while, so I thought I would ask the question here on the forums!

If I have a radDock that has for example 3 tabs/documents in the DocumentManager, how would I programatically select one of the tabs?

I would have thought:
this.radDock1.DocumentManager.ActiveDocument = radDock1.DockWindows[1];
would be the way to go, but that property is read only.

I can't find anything in the documentation for this and boy, I wish you guys would comment all the methods and prcedures in the radDock library, so intellisense would give me a clue!

Thanks for the help,

Richard.
rjmorton
Top achievements
Rank 1
 answered on 24 Feb 2011
2 answers
229 views
Hello,

When I switch Scheduler view from week to day, it showed me first date of the week not the current. (I am displaying one date in schedular, which is current date). How I scroll to current date without clicking Today button.

For example

In week View I am getting dates from Jan 16th to Jan 22nd and current date is Jan 18. When go to Day view it display Jan 16th not Jan 18

Thanks
Dobry Zranchev
Telerik team
 answered on 24 Feb 2011
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?