Telerik Forums
UI for WinForms Forum
1 answer
126 views
Hello

I am using a RadGridview (2012 Q1) and I wanted to know if there was a way to read/validate the group's total after a modification.

Format    Product    Pct
Can    1000    0.2
Can    1001    0.6
Can    1002    0.2
Plas    1003    0.8
Plas    1004    0.2

If a user modifies a percentage, I would like to wait saving to the database until he corrects another product to make sure the total is 100%

I am setting up my Gridview like this:
radGridView1.GroupDescriptors.Add(new GridGroupByExpression("Format Group By Format"));
GridViewSummaryRowItem item1 = new GridViewSummaryRowItem();
item1.Add(new GridViewSummaryItem("pct", "Total: {0:F2} ", GridAggregateFunction.Sum));

In another section of my program, I use radGridView1_CellValidating to save data on a modification (if e.OldValue.ToString() != e.Value.ToString()), but in that case, I didn't need any validation. In this scenario, I do need validation.

Is there a way to use the features of the current gridview to edit directly, or would it be better to build a new form with my format isolated, and fully validating on a button press? Or another workaround I haven't considered?

Thanks.
Philippe
Svett
Telerik team
 answered on 05 Jun 2012
1 answer
376 views
Hi,

In an MDI environment with (30+) childforms I'd like to be able to reset each child form to the standaard (designer) layout when the end user messed up by eg. hiding tool windows etc.

First of all, saving 60+ XML files (user dock + default dock) to each end user profile is not my preferred option. I saved the default, and the user dock XML to the registry for now, but I'm considering using a table in the database.
However saving/restoring the defaults is a potential bug, because when the app is updated and a form was changed by adding or deleting a tool/document window the "dock.LoadFromXml(dockSettings)" fails, since the xml in the registry reflects the 'old' pre-update form.

So 2 questions:
- Is there a way to reset the dock layout, without the LoadFromXml? That way I would not need to 'remember' the default designer settings. If not, what is the best practice to reset the updated forms in my updated app to the default?
- saving to a table, I would only need to save these 3 columns, or do I mis something?
   - form name
   - Dock XML info
   - UserId for particular settings (or eg. Guid.Empty for the default)

Kind regards,
Raoul
Julian Benkov
Telerik team
 answered on 05 Jun 2012
4 answers
85 views
Hello,

I observed a behavior of RadListControl which shows false results. I could reproduce it with this code:

using System.Windows.Forms;
using Telerik.WinControls.Enumerations;
using Telerik.WinControls.UI;
 
namespace TestListboxSortAnSelection
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
 
            this.radListControl1.SelectionMode = SelectionMode.MultiExtended;
            this.radListControl1.SortStyle = SortStyle.Ascending;
 
            this.radListControl1.Items.Add(new RadListDataItem("Test 1"));
            this.radListControl1.Items.Add(new RadListDataItem("Test 3") { Selected = true });
            this.radListControl1.Items.Add(new RadListDataItem("Test 2") { Selected = true });
        }
 
        private void radButton1_Click(object sender, System.EventArgs e)
        {
            MessageBox.Show(string.Concat("Selected items: ",
                                          this.radListControl1.SelectedItems.Count));
        }
 
 
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.radListControl1 = new Telerik.WinControls.UI.RadListControl();
            this.radButton1 = new Telerik.WinControls.UI.RadButton();
            ((System.ComponentModel.ISupportInitialize)(this.radListControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.radButton1)).BeginInit();
            this.SuspendLayout();
            //
            // radListControl1
            //
            this.radListControl1.CaseSensitiveSort = true;
            this.radListControl1.ItemHeight = 18;
            this.radListControl1.Location = new System.Drawing.Point(12, 12);
            this.radListControl1.Name = "radListControl1";
            this.radListControl1.Size = new System.Drawing.Size(431, 312);
            this.radListControl1.TabIndex = 0;
            this.radListControl1.Text = "radListControl1";
            //
            // radButton1
            //
            this.radButton1.Location = new System.Drawing.Point(313, 330);
            this.radButton1.Name = "radButton1";
            this.radButton1.Size = new System.Drawing.Size(130, 24);
            this.radButton1.TabIndex = 1;
            this.radButton1.Text = "radButton1";
            this.radButton1.Click += new System.EventHandler(this.radButton1_Click);
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(455, 366);
            this.Controls.Add(this.radButton1);
            this.Controls.Add(this.radListControl1);
            this.Name = "Form1";
            this.Text = "Form1";
            ((System.ComponentModel.ISupportInitialize)(this.radListControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.radButton1)).EndInit();
            this.ResumeLayout(false);
 
        }
 
        private Telerik.WinControls.UI.RadListControl radListControl1;
        private Telerik.WinControls.UI.RadButton radButton1;
    }
}

If SelectionMode is None, all works fine. Changing to One and SortStyle to Ascending it shows 2 selected items, but only 1 is selected. If SortStyle is Descending and Test 1 and 2 preselected then it shows also 2 selected items with one selected in list. Similar results occures with SelectionMode MultiSimple and MultiExtended. With SortStyle Ascending only 1 item is select on view and list. On SortStyle Descending it changes to 3 items on view and list.

The work around of this bug?! is to set SortStyle after adding the items to Items list (in code, not during design time).


Regards from Leipzig

Holger Boskugel
Peter
Telerik team
 answered on 05 Jun 2012
1 answer
112 views
Hello,
when I import RTF text embedded tabstop are not shown. Thus, the layout of the document is changed. Even a test with the DOCX provider delivers the same result. What do I have to do to get the tab stops?
Yours sincerely,
Christian
Jack
Telerik team
 answered on 05 Jun 2012
6 answers
392 views
Hi
I have a question about Row paint in rad grid view.
I have Rowpaint event in my grid that paint some cell in row and i use some button that specify the color of row. when I change the color of button row color changed but  when i move the mouse in grid. I want to change color automatically.
 How can I do this?
Atefeh
Top achievements
Rank 1
 answered on 05 Jun 2012
2 answers
164 views
hello,
I have a printdocument and I want to use image in front of this. in your help, use text and don't use image in header or footer of a page
can I  use image or not? would u help how I can this?
thancks a lot.
Maryam
Top achievements
Rank 1
 answered on 04 Jun 2012
2 answers
188 views
Hello,

I'm trying to disable the in-place editor in my RadScheduler (in winforms of course) but i can't find properties that allow this...
I know that it's possible with the Silvelight Telerik components but I can't find such a propertie with WinForms components.
I don't want that my users could create appointments in typing on the keybord.
I already disable the Edit Appointment Form by clicking on cells but i want to disable the in place editor too.
How can I do this ?

Thanks, Celine
Ivan Todorov
Telerik team
 answered on 04 Jun 2012
1 answer
67 views
I was looking at the webinars coming up in June and I noticed that there is not one that includes any discussion of the WinForms controls for the 2012 Q2 release. Does this mean Telerik is ceasing development or enhancement of the WinForms controls?
Nikolay
Telerik team
 answered on 04 Jun 2012
1 answer
119 views
I can not inheritance Rad grid view from user control, when i change to another control,
Please give me the solution? 
Nikolay
Telerik team
 answered on 04 Jun 2012
7 answers
676 views
With the RadGridView, if I have a checkboxcolumn and the user clicks on the checkbox, the value is not updated in my datasource (BindingList<> of business objects) until the user clicks off of the row.  How can I force the update to happen immediately when they click on the checkbox?  ValueChanging and ValueChanged don't seem to update my BindingList when I want them to.

Thanks!
Nikolay
Telerik team
 answered on 04 Jun 2012
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?