Telerik Forums
UI for WinForms Forum
6 answers
155 views
I am building a RadScheduler application via a demo that I found online by a member of the Telerik team.  I have everything working but when I try and expand the calendar to 3 Rows (MultiViewRows = 3) and attempt to save it, it throws the following error:

Property accessor 'ZoomLevel' on object 'RadCalendar1' threw the following exception: 'Object reference not set to an instance of an object.'

Thanks for your help!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Dec 2014
2 answers
130 views
Hello,
I want to change the background color of a row if the progress is 100%.
Foreground color is changeable background color not.
What am I doing wrong?

regards
Frank

   Private Sub rGanttProjekteliste_TextViewCellFormatting(sender As Object, e As GanttViewTextViewCellFormattingEventArgs) _
                                                                        Handles rGanttProjekteliste.TextViewCellFormatting
        '
        Dim headercelltyp As Type = GetType(GanttViewTextViewHeaderCellElement)
        Dim elementcelltyp As Type = e.CellElement.GetType()
        '
        If Not headercelltyp.IsAssignableFrom(elementcelltyp) Then
            '
            If e.Item.Level = 1 Then
                e.CellElement.Font = New Font(e.CellElement.Font, FontStyle.Bold)
            End If
            '
            If e.Item.Progress = 100 Then
                e.CellElement.BackColor = Color.Gray
            Else
                e.CellElement.BackColor = Color.White
            End If
            '
        End If
        '
    End Sub
Frank
Top achievements
Rank 1
 answered on 16 Dec 2014
1 answer
248 views
Can any one help me display the font family in ribbon control using combo box, i do know how to do this without the ribbon control but it doesnt seem to work the same. This is what i use without the ribbon control and it works. thank you in advance
Hristo
Telerik team
 answered on 16 Dec 2014
3 answers
160 views
Hi there,

If someone can shed some light, I have purchased the license for winforms library over the phone, but can't seem to find the development (non-evaluation) library. When login-in to telerik.com the 'Products' sections doesn't have any product registered. How do I obtain the control library that can be used in production.

Any idea?

Thanks in advance.

Michael
Michael
Top achievements
Rank 1
 answered on 15 Dec 2014
1 answer
220 views
I just downloaded the telerik for UI win forms, I been going through the blogs trying to figure our if there is any code snippet or something to point me to right direction on how to implement a swipe up/down of a grid view control. anybody can help on that?

Thanks
Stefan
Telerik team
 answered on 15 Dec 2014
1 answer
518 views
Hi

Can anyone please tell me how to add the Minimize , Maximize and close button on the panorama control or form just like the one on the demo.? I've been trying to achieve that for sometime now. I need help.

Thanks
Hristo
Telerik team
 answered on 15 Dec 2014
1 answer
112 views
When I am in month view, what event is triggered when I click the text being pointed to in the image below.

Thanks.
Hristo
Telerik team
 answered on 13 Dec 2014
1 answer
240 views
I have two radlistviews on a form. I want to hide the selection color in the first listview when an item is selected in the second listview and vice versa. I have added code to the VisualItemFormatting event to do this. However, selecting an item in the second listview doesn't trigger the VisualItemFormatting event of the first listview, so nothing happens. How do I trigger the VisualItemFormatting event of the first listview? Or is there some other way to do this?
Hristo
Telerik team
 answered on 12 Dec 2014
1 answer
151 views
Does anyone know if with the RTF Editor you have the ability to count the number of characters. What I need to be able to do is insert an external file and count the total characters typed into the editor minus the count of the inserted file. Also If portions of the inserted file are changed be able to add the changed characters to the total count.
Ivan Petrov
Telerik team
 answered on 12 Dec 2014
7 answers
516 views
Hi,

I'm using the winforms Telerik GridView in c#

I'm trying to populate a Parent Child Relationship ( Self Referencing Columns from same Table). I have created the Master and Child Templates. Code Below.

On executing this code, the master files are displayed with a '+' symbol. However they dont seem to be expandable. But when the bound columns are removed from the child template, the hierarchy works fine (Child data are displayed)

Also when for the child template, Columns are NOT customised and AUTOGENERATECOLUMNS is set to true, the hierarchy works fine and child data is displayed.

Can you please suggest how to achieve a hierarchy with customised bound columns in the Child template like in the case below ? I need this at the earliest as i'm running on a deadline

 

 

 

// Datasource for Parent Rows
  
DataTable dtDashboardView_MasterFiles = CDashboardManager.Get_DashboardView_MasterFiles();
  
// Datasource for Child Rows
  
DataTable dtDashboardView_SubFiles = CDashboardManager.Get_DashboardView_SubFiles();
  
// Parent Template Creation
  
radDashboard.AutoGenerateHierarchy = true ;
radDashboard.MasterGridViewTemplate.AutoExpandGroups = true;
radDashboard.MasterGridViewTemplate.AutoGenerateColumns = false;
radDashboard.EnableAlternatingRowColor = true;
((GridTableElement)radDashboard.GridElement).AlternatingRowColor = Color.LightGray;
radDashboard.MasterGridViewInfo.TableHeaderRow.AllowResize = true;
radDashboard.MasterGridViewTemplate.AllowAddNewRow = false;
radDashboard.MasterGridViewTemplate.AllowDeleteRow = false;
radDashboard.MasterGridViewTemplate.AllowEditRow = true;
PopulateMasterGridColumns();
radDashboard.MasterGridViewTemplate.DataSource = dtDashboardView_MasterFiles;
  
// Child Template Creation
  
GridViewTemplate template = new GridViewTemplate();
template.Caption = "SubFiles";
template.AutoGenerateColumns = false;
template.AllowColumnResize = true;
template.AllowRowResize = false;
template.AllowAddNewRow = false;
template.AllowDeleteRow = false;
template.AllowEditRow = true;
template.ShowColumnHeaders = true;
  
GridViewCheckBoxColumn dtCheckBox = new GridViewCheckBoxColumn();
dtCheckBox.UniqueName = "c_chkBxSelect";
dtCheckBox.HeaderText = "";
dtCheckBox.Width = 40;
template.Columns.Add(dtCheckBox);
  
GridViewTextBoxColumn cMasterID = new GridViewTextBoxColumn();
cMasterID.UniqueName = "c_MASTERID";
cMasterID.HeaderText = "Master ID";
cMasterID.FieldName = "MASTERID";
cMasterID.ReadOnly = true;
cMasterID.Width = 60;
template.Columns.Add(cMasterID);
  
GridViewTextBoxColumn cHealthStatus = new GridViewTextBoxColumn();
cHealthStatus.UniqueName = "c_HEALTHSTATUS";
cHealthStatus.HeaderText = "Health Status";
cHealthStatus.FieldName = "HEALTHSTATUS";
cHealthStatus.ReadOnly = true;
cHealthStatus.Width = 60;
template.Columns.Add(cHealthStatus);
  
  
radDashboard.MasterGridViewTemplate.ChildGridViewTemplates.Add(template);
  
// Establishing Relationship
                GridViewRelation relation = new GridViewRelation(radDashboard.MasterGridViewTemplate);
                relation.ChildTemplate = template;
                relation.RelationName = "MasterSub";
                relation.ParentColumnNames.Add("MASTERID");
                relation.ChildColumnNames.Add("c_MASTERID");
                radDashboard.Relations.Add(relation);
  
private void PopulateMasterGridColumns()
        {
            try
            {
                radDashboard.Columns.Clear();
  
                GridViewCheckBoxColumn dtCheckBox = new GridViewCheckBoxColumn();
                dtCheckBox.UniqueName = "chkBxSelect";
                dtCheckBox.HeaderText = "";
                radDashboard.MasterGridViewTemplate.Columns.Add(dtCheckBox);
                dtCheckBox.Width = 40;
  
                GridViewTextBoxColumn cMasterID = new GridViewTextBoxColumn();
                cMasterID.UniqueName = "MASTERID";
                cMasterID.HeaderText = "Master ID";
                cMasterID.FieldName = "MASTERID";
                cMasterID.ReadOnly = true;
                radDashboard.MasterGridViewTemplate.Columns.Add(cMasterID);
                cMasterID.Width = 60;
  
                GridViewTextBoxColumn cHealthStatus = new GridViewTextBoxColumn();
                cHealthStatus.UniqueName = "HEALTHSTATUS";
                cHealthStatus.HeaderText = "Health Status";
                cHealthStatus.FieldName = "HEALTHSTATUS";
                cHealthStatus.ReadOnly = true;
                radDashboard.MasterGridViewTemplate.Columns.Add(cHealthStatus);
                cHealthStatus.Width = 60;
  
                GridViewTextBoxColumn cBranch = new GridViewTextBoxColumn();
                cBranch.UniqueName = "BRANCH";
                cBranch.FieldName = "BRANCH";
                cBranch.ReadOnly = true;
                cBranch.HeaderText = "Branch";
                radDashboard.MasterGridViewTemplate.Columns.Add(cBranch);
                cBranch.Width = 70;
  
                GridViewTextBoxColumn cDepartment = new GridViewTextBoxColumn();
                cDepartment.UniqueName = "DEPARTMENT";
                cDepartment.FieldName = "DEPARTMENT";
                cDepartment.ReadOnly = true;
                cDepartment.HeaderText = "Dept";
                radDashboard.MasterGridViewTemplate.Columns.Add(cDepartment);
                cDepartment.Width = 40;
  
                GridViewTextBoxColumn cEditLink = new GridViewTextBoxColumn();
                cEditLink.UniqueName = "JOBFILENUMBER";
                cEditLink.FieldName = "JOBFILENUMBER";
                cEditLink.HeaderText = "Job File";
                radDashboard.MasterGridViewTemplate.Columns.Add(cEditLink);
                cEditLink.ReadOnly = true;
                cEditLink.Width = 70;
  
                GridViewTextBoxColumn cCustomerName = new GridViewTextBoxColumn();
                cCustomerName.FieldName = "CUSTOMER_NAME";
                cCustomerName.UniqueName = "CUSTOMERNAME";
                cCustomerName.HeaderText = "Customer Name";
                cCustomerName.ReadOnly = true;
                radDashboard.MasterGridViewTemplate.Columns.Add(cCustomerName);
                cCustomerName.Width = 180;               
            }
            catch (Exception pobjExc)
            {
                MessageBox.Show(pobjExc.Message.ToString());
                throw pobjExc;
            }
            finally { }
        }

Ivan Petrov
Telerik team
 answered on 12 Dec 2014
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?