Telerik Forums
UI for WinForms Forum
1 answer
224 views
Hi, I'm evaluating the RadScheduler for a project at the moment and it looks pretty good, but I need to display multiple day views (same day, different people) side by side and hide the headers.  
Although the documentation is a bit sparse, I would have thought that the ShowDayHeaders, or ShowHeader on the active view would have controlled this, but it doesn't appear to work.   Any hints as to how to achieve this?

        Dim sched As New RadScheduler 
        sched.BackColor = System.Drawing.Color.White 
        sched.DataSource = Nothing 
        sched.Dock = System.Windows.Forms.DockStyle.Left 
        sched.HighlightToday = True 
        sched.Location = New System.Drawing.Point(0, 0) 
        sched.Name = "RadScheduler1" 
        sched.Size = New System.Drawing.Size(200, 560) 
        sched.TabIndex = 0 
        sched.Text = "RadScheduler1" 
        sched.AllowDrop = True 
 
 
        Me.pnlSchedule.Controls.Add(sched) 
 
        Dim view As Telerik.WinControls.UI.SchedulerDayView 
 
        view = TryCast(sched.ActiveView, Telerik.WinControls.UI.SchedulerDayView) 
        If view IsNot Nothing Then 
            view.StartDate = DateTime.Today 
            view.DayCount = 1 
            view.ShowAllDayArea = False 
            view.ShowDayHeaders = False 
            view.ShowHeader = False 
        End If 

I'm also trying to find a way to limit the displayed time range for the day, so it limits the view to WorkTime or a VisibleTime property?

One last question. I'll by trying to implement drag/drop between two+ schedule controls, I haven't started developing this yet, but I suspect that there is no underlying support for this, but it would be nice to know if it is achievable before I start playing in this area?

Jordan
Telerik team
 answered on 23 Feb 2009
2 answers
91 views

 

Hi, I am evaluating Telerik controls for Windows Forms, and what I want to achieve is something like the left-hand side panel on the "Save-As" dialog window when in Windows Vista (try notepad and do 'save as'). Is basically something like:  
|----------------------------------|  
|Favorites Links                   |  
| {Content}                        |  
|                                  |  
|                                  |  
|                                  |  
|                                  |  
-----------------------------------  
| Folders                        ^ |  
-----------------------------------  
 
so, "Favorites" remains visible all the time (locked), and "Folders" (docked on the bottom) expand upwards without covering the whole "Favorites" area like:  
 
|----------------------------------|  
|Favorites Links                   |  
| {Some Content}                   |  
|                                  |  
-----------------------------------  
| Folders                        V |  
-----------------------------------  
| {Content}                        |  
|                                  |  
|                                  |  
|                                  |  
-----------------------------------  
 
Then you click on the "V" againg and the "Folders" group docks back at the bottom again. 

I will appreciate any input on this.
Hugo
Top achievements
Rank 1
 answered on 22 Feb 2009
1 answer
115 views

I can retrieve an image from an image cell with the following

myImage = radGrid.Rows(r).Cells(c).CellElement.Image 

Unfortunately this produces an error when attempting to retrieve an image from a cell that isn't currently visible on screen.

How do you retrieve an image from a cell that isn't visible?

I can retrieve the cell.value from a cell that isn't visible, but have trouble converting cell.value to an image.

Thank you for your help.
Marc
Top achievements
Rank 2
 answered on 20 Feb 2009
4 answers
476 views
Hi,

How can I implement a copy & paste of rows (multiple selection) in the Grid?

Thanks,

Patrick.
Nikolay
Telerik team
 answered on 20 Feb 2009
1 answer
169 views
Has a bug been reported yet for using a combo box for children in a hierarchial grid? I wanted to allow the user the ability to change information for a child from a drop down box. When I selected the combo box, the list popped up the correct select was selected, but, as soon as I moved away from the box to another cell in the same row, the cell with the combo box was empty. If i went back to it, the new selected was still there, but as soon as I moved away from that cell, nothing appeared to the user. I went so far as to cut and paste the code from a working parent combo box and still couldn't get it to work. I have had to create a separate form now to allow the user to change this information and just display the "result' as a string in the grid on the main form. Which brings me to another problem where I have to refresh the data sources to get the updated information which then collapses the hierarchy. How do I store the which parents are not collapsed so that I can return the grid to the state the user had it? I have to update the datasources for both the child and parent or else the information is not shown propoerly.

Susan
Jack
Telerik team
 answered on 20 Feb 2009
4 answers
210 views
Hi,
How do i programmatically set the filter for a column that is defined as type System.Boolean? So, far i have this but it does not work. Please advise.
thank you,
Bahram

 

FilterExpression filter = new FilterExpression();

 

filter.Predicates.Add(

 

FilterExpression.BinaryOperation.AND, GridKnownFunction.Contains, GridFilterCellElement.ParameterName);

 

filter.Parameters.Add(

 

GridFilterCellElement.ParameterName, "0");

 

 

 

this.radGView1.Columns["Active"].Filter = filter;

 

 

Bahram Moinvaziri
Top achievements
Rank 1
 answered on 19 Feb 2009
1 answer
116 views
Hi,

I want display two items in the radcombobox one below the other. Id in the first line and address in the next line. And also I am making loading of the combobox OnDemand. How to display the radcombo box items in different lines?

Thanks in advance,
Medac
Nick
Telerik team
 answered on 19 Feb 2009
3 answers
185 views
Hi,

VS2005
WinControls 2008Q3 1204

I get a null pointer exception when right clicking on a grid outside the rows. 

I think I found the bug, if I set the selectionmode to cellselect it works fine.

            if (this.GridControl.MultiSelect && this.GridControl.SelectionMode == GridViewSelectionMode.FullRowSelect)
            {
                if (!row.IsSelected)
                {
                    this.GridControl.SelectedRows.Clear();
                }
            }

01:05:54:735 10 Exception .... Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDownRight(MouseEventArgs e)
   at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDown(MouseEventArgs e)
   at Telerik.WinControls.UI.RadGridView.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(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(Int32 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.Form.ShowDialog(IWin32Window owner)

My grid:

            // 
            // radGridView
            // 
            this.radGridView.BackColor = System.Drawing.Color.Transparent;
            this.radGridView.Cursor = System.Windows.Forms.Cursors.Default;
            this.radGridView.Dock = System.Windows.Forms.DockStyle.Fill;
            this.radGridView.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
            this.radGridView.ForeColor = System.Drawing.SystemColors.ControlText;
            this.radGridView.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.radGridView.Location = new System.Drawing.Point(0, 0);
            this.radGridView.Margin = new System.Windows.Forms.Padding(0);
            // 
            // 
            // 
            this.radGridView.MasterGridViewTemplate.AllowAddNewRow = false;
            this.radGridView.MasterGridViewTemplate.AllowColumnChooser = false;
            this.radGridView.MasterGridViewTemplate.AllowColumnReorder = false;
            this.radGridView.MasterGridViewTemplate.AllowDragToGroup = false;
            this.radGridView.MasterGridViewTemplate.AllowRowResize = false;
            this.radGridView.MasterGridViewTemplate.Caption = null;
            gridViewTextBoxColumn1.FieldAlias = "FileName";
            gridViewTextBoxColumn1.FieldName = "FileName";
            gridViewTextBoxColumn1.HeaderText = "Name";
            gridViewTextBoxColumn1.HeaderTextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
            gridViewTextBoxColumn1.UniqueName = "FileName";
            gridViewTextBoxColumn1.Width = 160;
            gridViewDateTimeColumn1.DataType = typeof(System.DateTime);
            gridViewDateTimeColumn1.FieldAlias = "DateCreated";
            gridViewDateTimeColumn1.FieldName = "DateCreated";
            gridViewDateTimeColumn1.HeaderText = "Date uploaded";
            gridViewDateTimeColumn1.HeaderTextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
            gridViewDateTimeColumn1.SortOrder = Telerik.WinControls.UI.RadSortOrder.Ascending;
            gridViewDateTimeColumn1.UniqueName = "DateCreated";
            gridViewDateTimeColumn1.Width = 120;
            gridViewTextBoxColumn2.FieldAlias = "FileType";
            gridViewTextBoxColumn2.FieldName = "FileType";
            gridViewTextBoxColumn2.HeaderText = "Type";
            gridViewTextBoxColumn2.HeaderTextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
            gridViewTextBoxColumn2.UniqueName = "FileType";
            gridViewTextBoxColumn2.Width = 110;
            gridViewTextBoxColumn3.FieldAlias = "FileSize";
            gridViewTextBoxColumn3.FieldName = "FileSize";
            gridViewTextBoxColumn3.HeaderText = "Size";
            gridViewTextBoxColumn3.HeaderTextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
            gridViewTextBoxColumn3.UniqueName = "FileSize";
            gridViewTextBoxColumn3.Width = 100;
            this.radGridView.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn1);
            this.radGridView.MasterGridViewTemplate.Columns.Add(gridViewDateTimeColumn1);
            this.radGridView.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn2);
            this.radGridView.MasterGridViewTemplate.Columns.Add(gridViewTextBoxColumn3);
            this.radGridView.MasterGridViewTemplate.EnableGrouping = false;
            this.radGridView.MasterGridViewTemplate.ShowRowHeaderColumn = false;
            this.radGridView.MultiSelect = true;
            this.radGridView.Name = "radGridView";
            this.radGridView.ReadOnly = true;
            this.radGridView.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.radGridView.ShowGroupPanel = false;
            this.radGridView.Size = new System.Drawing.Size(443, 401);
            this.radGridView.TabIndex = 0;
            this.radGridView.Text = "radGridView";
            this.radGridView.ThemeName = "Vista";
            ((Telerik.WinControls.UI.GridTableElement)(this.radGridView.GetChildAt(0))).CellSpacing = -1;
            ((Telerik.WinControls.UI.GridTableElement)(this.radGridView.GetChildAt(0))).DrawBorder = false;
            ((Telerik.WinControls.UI.GridTableElement)(this.radGridView.GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            ((Telerik.WinControls.UI.GridTableElement)(this.radGridView.GetChildAt(0))).DrawFill = true;
            ((Telerik.WinControls.UI.GridTableBodyElement)(this.radGridView.GetChildAt(0).GetChildAt(1))).DrawBorder = true;
            ((Telerik.WinControls.UI.GridTableBodyElement)(this.radGridView.GetChildAt(0).GetChildAt(1))).BackColor = System.Drawing.Color.White;
            ((Telerik.WinControls.UI.GridTableBodyElement)(this.radGridView.GetChildAt(0).GetChildAt(1))).DrawFill = false;

Question. Can I have the drop down show even if there are no rows in the grid? (add row?)

thanks
-j

Nikolay
Telerik team
 answered on 19 Feb 2009
3 answers
262 views
Hello,

I have been using a radlistbox in my form and trying to display image against each record. the problem is that it takes around 7 seconds to display around 2000 records, which is very slow. in one of the article i have read that RadListBox take less than one second to load 2000 records
I am using following lineof code to add the text and image to list.


foreach (string strConnectedItem in arrTemp)

{

RadListBoxItem item = new RadListBoxItem();

if (arrConnectedDLD.Count != 0 && arrConnectedDLD.Contains(strConnectedItem))

{

//arrConnectedDLDinMasterFile.Add(strConnectedItem);

////RadListBoxItem item = new RadListBoxItem();

item.Text = strConnectedItem;

item.Image = imageListLB.Images[1]; ;

item.Value = strConnectedItem;

arrDLDList.Add(strConnectedItem +

"." + "1");

radLbDLD.Items.Add(item);

radCbDLD.Items.Add(

new RadComboBoxItem(strConnectedItem, strConnectedItem));

}

else

{

// arrNotConnectedDLD.Add(strConnectedItem);

//RadListBoxItem item = new RadListBoxItem();

item.Text = strConnectedItem;

item.Image = imageListLB.Images[0];

item.Value = strConnectedItem;

arrDLDList.Add(strConnectedItem +

"." + "0");

radLbDLD.Items.Add(item);

radCbDLD.Items.Add(

new RadComboBoxItem(strConnectedItem, strConnectedItem));

}

item.BorderThickness =

new System.Windows.Forms.Padding(1);

item.CanFocus =

true;

//item.Margin = new System.Windows.Forms.Padding(15, 0, 0, 0);

item.TextImageRelation = System.Windows.Forms.

TextImageRelation.ImageBeforeText;

item.TextSeparatorVisibility = Telerik.WinControls.

ElementVisibility.Visible;

}


if is remove the above code and instead use

radLbDLD.DataSource = arrDLDList;


then the loading time is reduced but inage is not displayed.
as per my understanding the most of the time is taken in adding item to list on by one.
is there any way by which I can avoid this looping.

Also I could not find any property in RadListBox equivalent to ListBox.Items[n].ImageIndex in .net controls
please suggest what can be done to improve the performance.

Thanks & Regards,
Vijay Chowdhary
Nick
Telerik team
 answered on 19 Feb 2009
1 answer
78 views
Hi,

I am really looking forward to trying out the Telerik Winforms controls they look amazing..

I was wondering if the skinning or theming that I have seen on the demos can be deployed on Windows Mobile devices? Are there any other ways of skinning Win Forms applications so they don't look like they were made in 1995?

Thanks in advance..

Mark
Deyan
Telerik team
 answered on 19 Feb 2009
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
CheckedListBox
StatusStrip
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?