Telerik Forums
UI for WinForms Forum
8 answers
418 views
Hello,

I was hoping someone could shed some light on this situation.

I have a RadPageView with a RadListControl inside.  The list control is populated from a sql table that contains potential 'status' setting for a recordset that is filling a RadGridView also on the same page.  I have the list control MultiSelect set to 'Simple'. The idea is a fast, multi-select filter for the radgrid.

So as with most issues, 90% works great.  Using RadListControl1.SelectedIndexChanged as my event handler I am able to create a filter for the radgrid using OR to allow filtering for multiple status at one time.   If the user clicks status 'a' then status 'b' then status 'c' the Radgrid filters and only shows 'A',then adds 'B',then 'C'.  Perfect! (status LIKE 'A' or status LIKE 'B' or status LIKE 'C' is  the expression I end up with, again perfect)

Here is where is problem lies.  When a user un-selects items in the RadListControl in reverse order (Add, A,B,C then Remove C,B,A) things seem to work, the event handler fires properly.  However, if the user un-selects items in any other order the event wont fire (Add A,B,C  then unselect A,B,C).  I'm guessing this is by design.  Although I have a loop with a message box showing the RadLIstControl items each time the event fires (for debugging).  I don't know if this might have some unseen effect on the control.

So I am wondering, is there a solution for this situation, either using the RadListControl (it's fast) or would there be a better method, I just can't seem to get my head around this one.  My code is in VB if that matters.

Thanks in advance!

Dean.

Richard Slade
Top achievements
Rank 2
 answered on 16 Feb 2011
10 answers
699 views
I'm trying to reload all the items in a RadDropDown box after something new gets added to the database. I have it set up right now that an event gets triggered when an item is added into the database, it calls the Rebind() method on the RadDropDownList, but nothing seems to happening. What should I do to get the RadDropDownList to reload?
Kamal
Top achievements
Rank 1
 answered on 16 Feb 2011
5 answers
247 views
Hello
    I have  a  question about  focus on control  TextBox, DropDownList etc.
How is the best solution for highlight control when got focus? Focus primitive, maybe some themes support this functionallity?

Please some example for solution. 

Thanks so much.
Richard Slade
Top achievements
Rank 2
 answered on 15 Feb 2011
1 answer
475 views
Hi There,

I am using Rad Ribbon bar and have a dropdownbutton that I am dynamically creating the items for from a dataset. My problem is I can not seem to create an event handler for the selection as it appears that item.click does not seem to exist. here is my code:

For Each row As DataRow In ds_sn.Tables("sn_tbl_groups").Rows
    Dim tag As New radmenuitem(row(1).ToString)
    tag.CheckOnClick = New EventHandler(AddressOf GroupMenuclick)
    Me.btn_SpecificGroup.Items.Add(tag)
Next

can some one point me to what event i should see in order to create the handler for this?

many thanks!

Jonathan
Richard Slade
Top achievements
Rank 2
 answered on 15 Feb 2011
5 answers
224 views
Hi , I try to use the 2009 Q2 RadDock control.
Is it possible to create a layout witch have all theses properties:
1. Have a unique center window or panel witch cannot be closed
2. Where the others docking windows won't dock on top / behind the center window but only around it.
3. the center window have no visible docking header.

Nikolay
Telerik team
 answered on 15 Feb 2011
8 answers
306 views

Hello,

I use:

  • Q3 2010 version 2010.3.10.1215
  • Windows 7, Visual Studio 2010, .net framework 4

I try to evaluate RadGridView but with simple file explorer (hierarchy, self reference, unbound mode, load on demand/expansion) and I get exceptions.

 

I isolate problems to simple file explorer. Cound You help me to solve these problems ?

1. Add rows in begin/end section after  expanded event.

Is it necessary to add rows in statements begin/end ?

If I do it, I get exception


System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.WinControls
  StackTrace:
       at Telerik.WinControls.RadObject.RaisePropertyNotifications(RadPropertyValue propVal, Object oldValue, Object newValue, ValueSource oldSource)
       at Telerik.WinControls.RadObject.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       at Telerik.WinControls.RadElement.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       at Telerik.WinControls.RadObject.OnTwoWayBoundPropertyChanged(PropertyBinding binding, Object newValue)
       at Telerik.WinControls.PropertyBinding.UpdateSourceProperty(Object newValue)
       at Telerik.WinControls.RadPropertyValue.SetLocalValue(Object value)
       at Telerik.WinControls.RadObject.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       at Telerik.WinControls.RadElement.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       at Telerik.WinControls.UI.GridExpanderItem.set_Expanded(Boolean value)
       at Telerik.WinControls.UI.GridExpanderItem.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.RadElement.OnCLREventsRise(RoutedEventArgs args)
       at Telerik.WinControls.RadElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadItem.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
       at Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.UI.RadGridView.OnMouseUp(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at Telerik.WinControls.RadControl.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at TelerikRadControlsWinFormsPrototype.Program.Main() in D:\rdawidziuk\src\OSS 12.2\Support\Prototypes\Technology\Presentation\TelerikRadControlsWinFormsPrototype\Program.cs:line 19
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

2. During keyboard manipulate:
    1. enter - expand
    1. selected cell chage with arrow keys

 i get exception. It takes some time, but after minutes I always get this exception:

 

System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.WinControls.GridView
  StackTrace:
       at Telerik.WinControls.UI.GridTraverser.StepInHierarchyBackward()
       at Telerik.WinControls.UI.GridTraverser.MovePreviousCore()
       at Telerik.WinControls.UI.GridTraverser.MovePrevious()
       at Telerik.WinControls.UI.BaseGridNavigator.MoveToNextRow(Int32 step, Boolean moveNextDirection)
       at Telerik.WinControls.UI.BaseGridNavigator.SelectPreviousColumn()
       at Telerik.WinControls.UI.GridRowBehavior.ProcessLeftKey(KeyEventArgs keys)
       at Telerik.WinControls.UI.GridRowBehavior.ProcessKey(KeyEventArgs keys)
       at Telerik.WinControls.UI.BaseGridBehavior.ProcessKey(KeyEventArgs keys)
       at Telerik.WinControls.UI.BaseGridBehavior.ProcessKeyDown(KeyEventArgs keys)
       at Telerik.WinControls.UI.RadGridView.OnKeyDown(KeyEventArgs e)
       at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
       at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at Telerik.WinControls.RadControl.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at TelerikRadControlsWinFormsPrototype.Program.Main() in D:\rdawidziuk\src\OSS 12.2\Support\Prototypes\Technology\Presentation\TelerikRadControlsWinFormsPrototype\Program.cs:line 19
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

3. After column order change I get strange look  columnorderchange.png

My file explorer code:

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Telerik.WinControls;
using Telerik.WinControls.UI;
using System.IO;
 
namespace TelerikRadControlsWinFormsPrototype
{
    public partial class MyFileSystemExplorer : Telerik.WinControls.UI.RadForm
    {
        private int idCounter = 0;
 
        public MyFileSystemExplorer()
        {
            InitializeComponent();
        }
 
        private void Form1_Load(object sender, EventArgs e)
        {
            // grid initialize
            this.radGridView1.CellFormatting += new CellFormattingEventHandler(radGridView1_CellFormatting);
            this.radGridView1.ChildViewExpanded += new ChildViewExpandedEventHandler(radGridView1_ChildViewExpanded);
            this.radGridView1.Relations.AddSelfReference(this.radGridView1.MasterTemplate, "ID", "ParentID");
            this.radGridView1.ImageList = this.imageList1;
            this.radGridView1.TableElement.RowHeight = 35;
            // colums
            GridViewDataColumn idCol = new GridViewDecimalColumn();
            idCol.DataType = typeof(int);
            idCol.Name = "ID";
            idCol.ReadOnly = true;
            idCol.IsVisible = false;
            this.radGridView1.Columns.Add(idCol);
 
            GridViewDataColumn parentIdCol = new GridViewDecimalColumn();
            parentIdCol.DataType = typeof(int);
            parentIdCol.Name = "ParentID";
            parentIdCol.ReadOnly = true;
            parentIdCol.IsVisible = false;
            this.radGridView1.Columns.Add(parentIdCol);
 
            GridViewDataColumn nameCol = new GridViewTextBoxColumn();
            nameCol.DataType = typeof(string);
            nameCol.Name = "Name";
            nameCol.HeaderText = "Name";
            nameCol.ReadOnly = true;
            this.radGridView1.Columns.Add(nameCol);
 
            GridViewDataColumn modiffCol = new GridViewTextBoxColumn();
            modiffCol.DataType = typeof(DateTime);
            modiffCol.Name = "Creation";
            modiffCol.HeaderText = "Creation";
            modiffCol.ReadOnly = true;
            this.radGridView1.Columns.Add(modiffCol);
 
            // root rows
            List<FileSystemInfoWrp> drivesInfo = new List<FileSystemInfoWrp>();
            foreach (DriveInfo di in DriveInfo.GetDrives())
            {
                drivesInfo.Add(new FileSystemInfoWrp(this.idCounter++, di.RootDirectory));
            }
            this.Add(null, drivesInfo.ToArray());
        }
 
        void radGridView1_ChildViewExpanded(object sender, ChildViewExpandedEventArgs e)
        {
            if (e.IsExpanded)
            {
                FileSystemInfoWrp parent = (FileSystemInfoWrp)e.ParentRow.Tag;
                // adding in begin/end update section invokes NullReferenceException, why ?
                //this.radGridView1.BeginUpdate();
                try
                {
                    this.Add(parent, this.GetFileSystemElements(parent));
                }
                finally
                {
                    //this.radGridView1.EndUpdate();
                }
                this.radGridView1.GridNavigator.SelectRow(e.ParentRow);
            }
            else
            {
                // remove child nodes, always read files from hdd
                foreach(GridViewRowInfo gvri in e.ParentRow.ChildRows)
                {
                    this.radGridView1.Rows.Remove(gvri);
                }
            }
        }
 
        void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
        {
            GridDataCellElement cell = e.CellElement as GridDataCellElement;
            if (cell != null && cell.ExpanderItem != null)
            {
                cell.ImageAlignment = ContentAlignment.MiddleLeft;
                cell.ExpanderItem.Alignment = ContentAlignment.MiddleLeft;
 
                if (((FileSystemInfoWrp)e.Row.Tag).ElementInfo is DirectoryInfo)
                {
                    if (e.Row.IsExpanded)
                    {
                        cell.Image = this.imageList1.Images[1];
                    }
                    else
                        cell.Image = this.imageList1.Images[0];
 
                    cell.ExpanderItem.Visibility = ElementVisibility.Visible;
                }
                else
                {
                    cell.Image = this.imageList1.Images[2];
                    cell.ExpanderItem.Visibility = ElementVisibility.Hidden;
                }
 
                cell.TextImageRelation = TextImageRelation.ImageBeforeText;
            }
        }
 
        private FileSystemInfoWrp[] GetFileSystemElements(FileSystemInfoWrp root)
        {
            List<FileSystemInfoWrp> result = new List<FileSystemInfoWrp>();
 
            if (root.ElementInfo is DirectoryInfo)
            {
                try
                {
                    FileSystemInfo[] infos = ((DirectoryInfo)root.ElementInfo).GetFileSystemInfos();
                    foreach (FileSystemInfo fi in infos)
                    {
                        result.Add(new FileSystemInfoWrp(this.idCounter++, fi));
                    }
                }
                catch // omits io exception
                {
                }
            }
 
            return result.ToArray();
        }
 
        private void Add(FileSystemInfoWrp parent, FileSystemInfoWrp[] fileInfos)
        {
            foreach (FileSystemInfoWrp fsiw in fileInfos)
            {
                GridViewRowInfo row = this.radGridView1.Rows.AddNew();
                row.Cells["ID"].Value = fsiw.Id;
                if (parent != null)
                    row.Cells["ParentID"].Value = parent.Id;
                row.Cells["Name"].Value = fsiw.ElementInfo.Name;
                row.Cells["Creation"].Value = fsiw.ElementInfo.CreationTime;
 
                row.Tag = fsiw;
            }
        }
    }
 
    public class FileSystemInfoWrp
    {
        public int Id { get; set; }
        public FileSystemInfo ElementInfo { get; set; }
 
        public FileSystemInfoWrp(int id, FileSystemInfo elementInfo)
        {
            this.Id = id;
            this.ElementInfo = elementInfo;
        }
    }
}

designer:

using TelerikRadControlsWinFormsPrototype.Properties;
namespace TelerikRadControlsWinFormsPrototype
{
    partial class MyFileSystemExplorer
    {
            /// <summary>
            /// Required designer variable.
            /// </summary>
            private System.ComponentModel.IContainer components = null;
 
            /// <summary>
            /// Clean up any resources being used.
            /// </summary>
            /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
            protected override void Dispose(bool disposing)
            {
                if (disposing && (components != null))
                {
                    components.Dispose();
                }
                base.Dispose(disposing);
            }
 
            #region Windows Form Designer generated code
 
            /// <summary>
            /// Required method for Designer support - do not modify
            /// the contents of this method with the code editor.
            /// </summary>
            private void InitializeComponent()
            {
                this.components = new System.ComponentModel.Container();
                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MyFileSystemExplorer));
                this.radGridView1 = new Telerik.WinControls.UI.RadGridView();
                this.imageList1 = new System.Windows.Forms.ImageList(this.components);
                ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).BeginInit();
                ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
                this.SuspendLayout();
                //
                // radGridView1
                //
                this.radGridView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(248)))), ((int)(((byte)(248)))), ((int)(((byte)(248)))));
                this.radGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
                this.radGridView1.ForeColor = System.Drawing.Color.Black;
                this.radGridView1.Location = new System.Drawing.Point(0, 0);
                //
                // radGridView1
                //
                this.radGridView1.MasterTemplate.AllowColumnChooser = false;
                this.radGridView1.MasterTemplate.AutoGenerateColumns = false;
                this.radGridView1.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
                this.radGridView1.MasterTemplate.Caption = null;
                this.radGridView1.MasterTemplate.MultiSelect = true;
                this.radGridView1.MasterTemplate.ShowGroupedColumns = true;
                this.radGridView1.Name = "radGridView1";
                //
                //
                //
                this.radGridView1.RootElement.ForeColor = System.Drawing.Color.Black;
                this.radGridView1.Size = new System.Drawing.Size(1216, 786);
                this.radGridView1.TabIndex = 2;
                this.radGridView1.Text = "radGridView1";
                this.radGridView1.ThemeName = "Telerik";
                //
                // imageList1
                //
                this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
                this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
                this.imageList1.Images.SetKeyName(0, "folder_blue_open1.png");
                this.imageList1.Images.SetKeyName(1, "folder1.png");
                this.imageList1.Images.SetKeyName(2, "new1.png");
                //
                // MyFileSystemExplorer
                //
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
                this.ClientSize = new System.Drawing.Size(1216, 786);
                this.Controls.Add(this.radGridView1);
                this.Name = "MyFileSystemExplorer";
                //
                //
                //
                this.RootElement.ApplyShapeToControl = true;
                this.Text = "My File System Explorer";
                this.Load += new System.EventHandler(this.Form1_Load);
                ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).EndInit();
                ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
                this.ResumeLayout(false);
 
            }
 
            #endregion
            private Telerik.WinControls.UI.RadGridView radGridView1;
            private System.Windows.Forms.ImageList imageList1;
    }
}

Cound You help me to solve these problems ?

Regards,
Robert

Richard Slade
Top achievements
Rank 2
 answered on 15 Feb 2011
9 answers
204 views
hi

Do you have list view for vb.net winforms?

Thanks
Raj
Richard Slade
Top achievements
Rank 2
 answered on 15 Feb 2011
3 answers
156 views
I guys,

I need to react to Appointment changes in the scheduler. In order to do so, I subscribed to the CollectionChanged event declared by the Appointments collection in the scheduler :

radScheduler1.Appointments.CollectionChanged += new NotifyCollectionChangedEventHandler(Appointments_CollectionChanged);

I have no problem on Add and ItemChanged actions, but I can't find the Appointment object in the e.OldItems collection on Remove action. I just keep on getting a null reference exception :

public event ControlAddInEventHandler OnAppointmentsCollectionChanged;
void Appointments_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            try
            {
                if (OnAppointmentsCollectionChanged != null) {
                    switch (e.Action) {
                        case NotifyCollectionChangedAction.Add:
                            foreach (Appointment ap in e.NewItems)
                            {
                                OnAppointmentsCollectionChanged(1, ap.Subject);
                            }                   
                        break;
                        case NotifyCollectionChangedAction.ItemChanged:
                        case NotifyCollectionChangedAction.Remove:
                            foreach (Appointment ap in e.OldItems)
                            {
                                OnAppointmentsCollectionChanged(2, ap.Subject);
                            }
                        break;
                        default: break;
                    }
                }
            }
            catch (Exception ex)
            {
                OnAppointmentsCollectionChanged(3, ex.Message);
            }            
        }

Thank you for your help :)
Richard Slade
Top achievements
Rank 2
 answered on 15 Feb 2011
4 answers
128 views

Hy everyone 

I have already ask this. but my post was lost.

The telerik forum has a problem with the server, the message was. 

"It seems there was a problem with our server. Try reloading the page."

So i put again this post , I hope this time it don´t vanish.

I want to customize a summary group on the radgridview, I have this.

 ---Group 1 Total A

 -------Group 2 Total B

------------------Group 3 Total C

------------------Group 4 Total D

I don´t want to display the total B only Total C and  Total D and Total A must be (Total C + Total D).

How can achieve this.

Thanks in advance.

jolynice

Alexander
Telerik team
 answered on 15 Feb 2011
3 answers
256 views
Hi

I want to use xml from savelayout and loadlayout.

but i want some specific properties from xml. i.e. i want to save some specific properties of xmlnode.

for eg.

 StringBuilder stbTmp = new StringBuilder();
            using (XmlWriter writer = XmlWriter.Create(stbTmp))
            {
                rgvCustom.SaveLayout(writer);
            }

Generated Output:
<Telerik.WinControls.UI.GridViewDecimalColumn FormatString="" Width="92" FieldName="h_company_id" Name="h_company_id" IsAutoGenerated="True" IsVisible="True" HeaderText="h_company_id" TextAlignment="MiddleRight" />

I want to following string.
Expected Output
<Telerik.WinControls.UI.GridViewDecimalColumn FormatString="" FieldName="company_id" Name="company_id"  HeaderText="company id" TextAlignment="MiddleRight" />

how can get above string in savelayout except........ IsAutoGenerated="True" IsVisible="True"

Please let me know.

thanks.









Julian Benkov
Telerik team
 answered on 14 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
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?