Telerik Forums
UI for WinForms Forum
2 answers
266 views

I am new to Telerik thing and working on an application using Telerik WinForm controls. I am adding user controls dynamically into a panel based on options selected in the main tree. One such user control constitutes a detailed form having lots of fields.

below is the way I am displaying the user control in a panel:

 

 

loEntityForm = 

 

new EntityForm(_OwnerID); // User control to be added dynamically  

 

 

pnlResourceRight.Controls.Clear(); // Clearing existing user controls if any

 

 

 

pnlResourceRight.Controls.Add(loEntityForm);

 

 

loEntityForm.Dock = 

 

DockStyle.Fill;

 

 

 

 

 

 


Now this loEntityForm flickers a lot before being properly rendered.

I have used already used one possible slolution in the contructor

i.e
 

 

 

 

InitializeComponent();

SetStyle(

 

ControlStyles.UserPaint, true);

 

 

SetStyle(

 

ControlStyles.AllPaintingInWmPaint, true);

 

 

SetStyle(

 

ControlStyles.DoubleBuffer, true);

 

 

SetStyle(

 

ControlStyles.ResizeRedraw);

 

 

 

 

 

but it doesn't solve my problem. Please suggest. 

 

 

Vassil Petev
Telerik team
 answered on 13 Oct 2010
5 answers
133 views
Hi:
I have a problem after publish my project.
When I execute the setup.exe, it show a message:

"Can not install or run this application. You must first install the assembly version Telerik.Wincontrols 2009.2.9.729 in global assembly cache (GAC)"

I should do?

Thanks
Stefan
Telerik team
 answered on 13 Oct 2010
6 answers
169 views
Hi, 
I'm using the StartMenuRightColumnItems collection for the Recent files list in a c# project  and 
I would reverse the order of the list, thus the last opened file is showed at the top of the list 
and not al the bottom.

regards
Richard Slade
Top achievements
Rank 2
 answered on 13 Oct 2010
1 answer
149 views
I'me using Raddatetimepicker, but users can't copy and paste values inside it.

Can you tell me why?

Thank you.
Emanuel Varga
Top achievements
Rank 1
 answered on 13 Oct 2010
5 answers
133 views

Hello,

I'm installed the trial version on one machine successfully.  So far its great, and my company will be purchasing the software after we confirm it meets our needs.  However, when trying to install the software on another machine I get the following error message:

"The installer has insufficient privileges to access this directory: C:\ProgramData\..\RadControls for WinForms Q2 2010 SP2."

Tried running it as both a standard user and administrator.  Tried logging in as administrator.  Nothing works.

The system is Windows 7 Professional, 64-bit.  I know how to change the permissions so the install will proceed, the problem is the error message does not display the full path.  Can you tell me what it is so I can create the directories manually and apply the permissions needed?

Richard Slade
Top achievements
Rank 2
 answered on 13 Oct 2010
5 answers
114 views
I have a telerik grid and wrote a function to allow searching all the Grid text columns, by specifying the filter type and input, the function changes all the text columns filter expressions.

It used to work very well on Q1, in Q2 everything changed.

Function is the following, I need to know how to set filter expressions programmatically in the right way in Q2.

private void SetFilter(GridKnownFunction filterFnType, string searchInput)
        {
            FilterExpression filter;
            string input = searchInput.Trim();
        
            if (!string.IsNullOrEmpty(input))
            {
               
                foreach (GridViewDataColumn column in this._GridTextColumns)
                {
   
filter = new FilterExpression(FilterExpression.BinaryOperation.OR, filterFnType, "@FilterEditor1");
  
filter.Parameters.Add("@FilterEditor1", input);
 
  
 column.FilterDescriptor = filter;
                    
                }
            }
            else
            {
                this.grid_Data.MasterTemplate.FilterDescriptors.Clear();
            }
        }
Rabeeh
Top achievements
Rank 2
 answered on 13 Oct 2010
4 answers
135 views
Hi Telerik

I want to know which ORMs do you support for rad grid view because i have problems with radgridview and Entity Framework
and do you support OpenAccess completely for radgridview?
I think radgridview only support typed dataset completely as ORM , is this true?

thanks alot
Julian Benkov
Telerik team
 answered on 13 Oct 2010
5 answers
287 views

Hi Telerik,

I think a circular waiting control will be a good feature to add.

thanks
Stefan
Telerik team
 answered on 13 Oct 2010
2 answers
248 views

Hi

I created my custom cell and column:

 Cell:

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.WinControls.UI;
using System.Windows.Forms;
using System.Drawing;
using System.Diagnostics;
  
namespace GridViewUnboundMode
{
    public class EditableCheckBoxCellElement : GridDataCellElement
    {
        private RadCheckBoxElement _chk;
        private RadTextBoxElement _txtBox;
        private RadLabelElement _lbl;
  
        public EditableCheckBoxCellElement(GridViewColumn column, GridRowElement row)
            : base(column, row)
        {
        }
  
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
  
            _chk = new RadCheckBoxElement();
            _chk.Margin = new Padding(0, 2, 0, 0);
            _chk.MinSize = new Size(20, 20);
            _chk.Text = string.Empty;
            _chk.ToggleState = Telerik.WinControls.Enumerations.ToggleState.Off;
            _chk.ToggleStateChanged += new StateChangedEventHandler(_chk_ToggleStateChanged);
  
            _txtBox = new RadTextBoxElement();
            _txtBox.Margin = new Padding(0, 2, 0, 0);
            _txtBox.MinSize = new Size(10, 20);
            _txtBox.Text = "sss";
  
            _lbl = new RadLabelElement();
            _lbl.Text = "Not assigned";
            _lbl.Margin = new Padding(0, 4, 0, 0);
            _lbl.MinSize = new Size(1, 20);
            _lbl.TextWrap = false;
            _lbl.Font = new Font(_lbl.Font.Name, _lbl.Font.Size, FontStyle.Italic);
            _lbl.ForeColor = Color.Gray;
  
            this.Children.Add(_chk);
            this.Children.Add(_lbl);
        }
  
        void _chk_ToggleStateChanged(object sender, StateChangedEventArgs args)
        {
            if (_chk.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                if (this.Children.Contains(_lbl))
                { this.Children.Remove(_lbl); }
                this.Children.Add(_txtBox);
            }
            else if (_chk.ToggleState == Telerik.WinControls.Enumerations.ToggleState.Off)
            {
                if (this.Children.Contains(_txtBox))
                { this.Children.Remove(_txtBox); }
                this.Children.Add(_lbl);
            }
        }
   
  
        protected override SizeF ArrangeOverride(SizeF finalSize)
        {
            if (this.Children.Count == 2)
            {
                this.Children[0].Arrange(new RectangleF(0, 0, 20, 20));             
                this.Children[1].Arrange(new RectangleF(21, 0, finalSize.Width - 28, 20));
                if (this.Children[1] == _lbl)
                { _lbl.MinSize = new Size(Convert.ToInt32(finalSize.Width - 28), 20); }
            }
            return finalSize;
        }
  
        public override object Value
        {
            get
            {
                return _txtBox.Text;
            }
            set
            {
                _txtBox.Text = value.ToString();
            }
        }
  
        public bool IsChecked
        {
            get
            {
                return _chk.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On;
            }
            set
            {
                if (value)
                { _chk.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On; }
                else
                { _chk.ToggleState = Telerik.WinControls.Enumerations.ToggleState.Off; }
            }
        }
    }
}

 


 Column:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.WinControls.UI;
  
namespace GridViewUnboundMode
{
    public class EditableCheckBoxColumn : GridViewDataColumn
    {
        public EditableCheckBoxColumn(): base()
        {
        }
   
        public override Type GetCellType(GridViewRowInfo row)
        {
            if (row is GridViewDataRowInfo)
            {
                return typeof(EditableCheckBoxCellElement);
            }        
            return base.GetCellType(row);
        }
    }
}

 

When I create new row I do something like this:

private void btnAddNewRows_Click(object sender, EventArgs e)
{
    GridViewRowInfo rowInfo = this.radGridView1.Rows.AddNew();
    int columnIndex = 0;
    int rowIndex = rowInfo.Index;
    foreach (GridViewCellInfo cellInfo in rowInfo.Cells)
    {
        cellInfo.Value = string.Format("{0}-{1}", columnIndex, rowIndex);
        columnIndex++;
    }
}

 

The problem is that in this loop when I set GridViewCellInfo.Value to some value, property EditableCheckBoxCellElement.Value is not set to this value.


I also don`t know how to get access to EditableCheckBoxCellElement because I need to control property EditableCheckBoxCellElement.IsChecked.

 


How can I control values for controls that are inside my EditableCheckBoxCellElement?

 


Data binding is not an option in my case.

Regards

 

Raymond
Top achievements
Rank 1
 answered on 13 Oct 2010
1 answer
71 views
Hello, I can't find where to change colors for top group panel where you could drag columns to group grid. Could someone point me to right direction please?
beavisCZ
Top achievements
Rank 1
 answered on 13 Oct 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)
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
StatusStrip
CheckedListBox
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
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
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?