Telerik Forums
UI for WinForms Forum
1 answer
107 views

I'm trying to configure the track bar with a threshold value that is greater than the min and less than the max, the user can only go past the threshold value by holding the Control key will dragging the slider. I have tried resetting the value in the Scroll event, that didn’t prevent the slider from continuing or change the value; I reset the value in the ValueChanged event, this did not prevent the slider from continuing but it did reset the value back to the threshold once the mouse was lifted.


I was hoping to have a hard stop at the threshold, is this something that is possible?

Thanks

Ivan Todorov
Telerik team
 answered on 05 Jun 2012
2 answers
120 views
Hi,

Is it possible to set a maximum height on a subgrid and allow autohide scrolling in that subgrid?

Many thx!

Maarten
Maarten
Top achievements
Rank 1
 answered on 05 Jun 2012
7 answers
487 views
Hi,

We are using the Self Referencing grid to show hierachical data which only has one parent and is always one level deep.
For Instance:
    Parent
     => Child 1
     => Child 2
     => Child 3

For some users the number of children can reach 10 000 records. The load time for these users is really slow. Currently we are retrieving the data and binding it via the datasource to the grid.

grid.DataSource = listOfData;


grid.Relations.AddSelfReference(grid.MasterTemplate, "Id""ParentId");
grid.TableElement.ShowSelfReferenceLines = true;

But if we remove the self referencing code all data is loaded very fast (off course without the hierarchical structure). Is there a trick to increase the performance? For instance not using the datasource to bind the data?

Many thx!







Maarten
Top achievements
Rank 1
 answered on 05 Jun 2012
5 answers
236 views
The url below is my source code. The file name is 354709_CheckedGroupHeaderCellElement.zip
https://skydrive.live.com/redir?resid=DBDF9B2C2251D8AA!109

I created it base on 2 article below:
1. http://www.telerik.com/support/kb/winforms/gridview/add-check-uncheck-all-check-box-in-the-header-cell.aspx 
2. http://www.telerik.com/community/forums/winforms/gridview/adding-checkbox-to-the-group-header.aspx 

The problem now is:
1. After grouping, CheckBoxHeaderCell cannot work.
2. If I add code below in ValueChanged, CheckBoxHeaderCell is working but CustomGroupHeaderCell cannot work


Note: If you hide all the in ValueChanged, you can see customCell_MeCheckChanged is working perfectly on CustomGroupHeaderCell.


Please refer the video below.
http://www.youtube.com/watch?v=fqVY0bfEgJY

Another question:
How to get fast response? Because I have some topic does not get reply from telerik support.
My Unique Customer ID is: SU878455


How to control/manage in radGridView1_ValueChanged?


private void radGridView1_ValueChanged(object sender, EventArgs e)
        {
            if (sender.GetType().ToString() == "Telerik.WinControls.UI.GridViewCellInfo")
            {
                //MessageBox.Show(((GridViewCellInfo)sender).ColumnInfo.FieldName);
                if (bool.Parse(((GridViewCellInfo)sender).Value.ToString()))
                {
                    foreach (GridViewRowInfo dr in radGridView1.Rows)
                    {
                        dr.Cells[0].Value = true;
                    }
                }
                else if (!bool.Parse(((GridViewCellInfo)sender).Value.ToString()))
                {
                    foreach (GridViewRowInfo dr in radGridView1.Rows)
                    {
                        dr.Cells[0].Value = false;
                    }
                }
            }
        }

Svett
Telerik team
 answered on 05 Jun 2012
1 answer
80 views
Hi,

I want to make hierachical grid with object:

Class Toy
{
  public Guid Id {get; set;}
  public Guid ParentId {get; set;}
  public string Name {get; set;}
  public int Count {get; set;}
}


Objects:

ParentToy (id1, null, "Castle", 1)
ChildToy1 (id2, id1, "Knight", 10)
ChildToy2 (id3, id1, "Brick", 100)

I want to have in grid first row with ParentToy and only column "Name" visible.
In hierarchy for ParentToy I want to have two child toys with columns: "name", "count".

Is this possible?

Best regards
 Krzysztof
Jack
Telerik team
 answered on 05 Jun 2012
1 answer
122 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
363 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
78 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
103 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
366 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
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
+129 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?