Telerik Forums
UI for WinForms Forum
2 answers
199 views
Hello,

I've recently upgraded to Q3 2009. The upgrade has seemingly broken my dropdown colors for my Split Buttons. I previously created a custom theme based on the Desert theme, however, the dropdown colors were not changed from the Desert default. These values were [in the theme editor]:

RootRadElement -> RadDropDownMenuElement->FillPrimitive
BackColor/2/3/4: 243, 243, 229
RootRadElement -> RadDropDownMenuElement->RadElement->FillPrimitive
BackColor/2/3/4: 222, 222, 204

When I open the theme editor now for my split buttons, these colors still appear as desired. However, when the Split Buttons are clicked at runtime, the dropdown menu items instead have two shades of white/gray as fill colors instead of the two shades of the sandy color specified above. Also, normally when I run into problems like this with Telerik controls, I typically hard code changes to the elements at runtime as a workaround. However, in this case, I am unable to reach these components of the element tree. When working with a RadSplitButton, the only available element is the DropDownButtonElement which does not have children leading to a DropDownMENUElement.

Any help would be appreciated.
Jeremy
Nikolay
Telerik team
 answered on 01 Dec 2009
1 answer
148 views
Hi!
Can anyone tell me how can i select elements from a carousel with left and right arrows?
Peter
Telerik team
 answered on 01 Dec 2009
3 answers
692 views
Hi,

I have many column to display, several with long titles, and "No Scrolling" is strict instruction.
I have check all related docs, but don't find a way.

Is there any way so that I can Wrap Column Header ?

Thanks.

Sebastian
Telerik team
 answered on 01 Dec 2009
1 answer
134 views
Hello,

I am testing out the RadGridView control and noticed when setting up a relationship for hierarchical data display in the control that once I add a row programmatically to the child template's data source that all rows on the main/parent template will expand out when clicking on the + icon for the row even though not all rows have any linked child rows. For my purposes, I would like to disallow the expanding of rows if there's nothing to show as in many cases there will only be a few (if any) rows with child rows linked up. Is this possible? Is there an event I should cancel? Or a way to disable/make invisible the + icon for rows that have no child rows?

Thanks,
Mark
Jack
Telerik team
 answered on 01 Dec 2009
1 answer
148 views
How to enabled scroll in RadPanelBar when bar list elements are bigger then panel.
Boyko Markov
Telerik team
 answered on 01 Dec 2009
2 answers
297 views
Hi,

I used Custom Field for scheduler control. And I watched Adding Custom Fields to RadScheduler for WinForms Appointments. And I read online help. I did it same things.

My problem,  

        It can't cast IEvent object to NewAppointmentObject on ApplySettingsToEvent.. NewAppointmentObject is inherited from Appointment Class.. Its code is following.

using System;  
using System.Collections.Generic;  
using System.Text;  
using Telerik.WinControls;  
using Telerik.WinControls.UI;  
 
namespace LearnRadScheduler  
{  
    public class NewAppointmentObject : Appointment  
    {  
        public NewAppointmentObject()  
            : base()  
        {  
 
        }  
 
        private string subjectEN = string.Empty;  
        public string SubjectEN  
        {  
            get { return this.subjectEN; }  
            set  
            {  
                if (this.subjectEN != value)  
                {  
                    this.subjectEN = value;  
                    this.OnPropertyChanged("SubjectEN");  
                }  
            }  
        }  
 
        private string locationEN = string.Empty;  
        public string LocationEN  
        {  
            get { return this.locationEN; }  
            set  
            {  
                if (this.locationEN != value)  
                {  
                    this.locationEN = value;  
                    this.OnPropertyChanged("LocationEN");  
                }  
            }  
        }  
 
        private string descriptionEN = string.Empty;  
        public string DescriptionEN  
        {  
            get { return this.descriptionEN; }  
            set  
            {  
                if (this.descriptionEN != value)  
                {  
                    this.descriptionEN = value;  
                    this.OnPropertyChanged("DescriptionEN");  
                }  
            }  
        }     
    }  
}  
 

I run the project, All appointments are coming to screen in Scheduler control. But I select an appointment, showing my custom edit dialog and getting all values. No problem. I want to add new appointment. I click empty line and openning CustomAppointmentEditDialog. I write some things. I click OK button. But I bought an exception. Is is following.

Exception Message :

Property accessor 'SubjectEN' on object 'Telerik.WinControls.UI.Appointment' threw the following exception:'Object does not match target type.' 

Stack Trace :

"   at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)\r\n   at Telerik.WinControls.UI.Scheduler.BindingProviderBase`1.UpdateDataItemProperty(Object item, T schedulerItem, SchedulerMapping mapping)\r\n   at Telerik.WinControls.UI.Scheduler.BindingProviderBase`1.UpdateDataItemProperties(Object item, T schedulerItem)\r\n   at Telerik.WinControls.UI.Scheduler.BindingProviderBase`1.InsertCore(T itemToInsert)\r\n   at Telerik.WinControls.UI.SchedulerBindingDataSource.EventBindingProvider.InsertCore(IEvent itemToInsert)\r\n   at Telerik.WinControls.UI.Scheduler.BindingProviderBase`1.Insert(T itemToInsert)\r\n   at Telerik.WinControls.UI.RadScheduler.OnAddAppointments(IList list)\r\n   at Telerik.WinControls.UI.RadScheduler.appointments_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)\r\n   at Telerik.WinControls.Data.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)\r\n   at Telerik.WinControls.Data.ObservableCollection`1.NotifyListenersCollectionChanged(NotifyCollectionChangedEventArgs e)\r\n   at Telerik.WinControls.Data.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)\r\n   at Telerik.WinControls.Data.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index)\r\n   at Telerik.WinControls.Data.ObservableCollection`1.InsertItem(Int32 index, T item, Action`1 approvedAction)\r\n   at Telerik.WinControls.Data.ObservableCollection`1.InsertItem(Int32 index, T item)\r\n   at Telerik.WinControls.UI.SchedulerAppointmentCollection.InsertItem(Int32 index, IEvent item)\r\n   at System.Collections.ObjectModel.Collection`1.Add(T item)\r\n   at Telerik.WinControls.UI.RadScheduler.AddNewAppointmentWithDialog(DateTimeInterval interval, Boolean recurringAppointment, SchedulerResourceCollection resources)\r\n   at Telerik.WinControls.UI.DayViewAppointmentsTable.cell_DoubleClick(Object sender, EventArgs e)\r\n   at Telerik.WinControls.RadItem.OnDoubleClick(EventArgs e)\r\n   at Telerik.WinControls.RadItem.DoDoubleClick(EventArgs e)\r\n   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)\r\n   at Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)\r\n   at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)\r\n   at Telerik.WinControls.UI.RadScheduler.OnMouseUp(MouseEventArgs e)\r\n   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n   at System.Windows.Forms.Control.WndProc(Message& m)\r\n   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   at Telerik.WinControls.RadControl.WndProc(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n   at System.Windows.Forms.Application.Run(ApplicationContext context)\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)\r\n   at KocSchool_Grades.TestProject.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81\r\n   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart()" 

    This code ,
        NewAppointmentObject newAppObj = ev as NewAppointmentObject;  
    
    return null.. 
    
I think, it can not do casting. 
    NewAppObj return NULL after casting.. !!

        protected override void ApplySettingsToEvent(Telerik.WinControls.UI.IEvent ev)  
        {  
            NewAppointmentObject newAppObj = ev as NewAppointmentObject;  
 
            if (newAppObj != null)  
            {  
                newAppObj.SubjectEN = this.txtSubjectEN.Text;  
                newAppObj.LocationEN = this.txtLocationEN.Text;  
                newAppObj.DescriptionEN = this.txtDescriptionEN.Text;  
            }  
 
            base.ApplySettingsToEvent(ev);  
        } 

    I did it same things in help document. My WinForms controls version is 2009 Q3, but same code was running my previous version that is 2008 Q2.

from now, thanks for all helps..
KocSchool
Top achievements
Rank 2
 answered on 01 Dec 2009
1 answer
136 views
HI,

In RadScheduler by setting RulerStartScale I can specify starting time of dayview. Type of RulerStartScale is integer so I have to pass integer as starting time. But It sets hour only, I want to set Hour and Minutes as starting time. For example by setting RulerStartScale=11 will set Starting time from 11. But What should I do if I want starting time for ruler time as 11.30..??
Boyko Markov
Telerik team
 answered on 01 Dec 2009
0 answers
245 views
To prevent possible data loss before loading the designer  the following errors must be resolved

at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(String res)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at Microsoft.VisualStudio.Design.VSTypeResolutionService.GeneratedAssemblyEntry.RealizeMoniker(String moniker)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.GeneratedAssemblyEntry.get_FileName()
at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly()
at Microsoft.VisualStudio.Design.VSTypeResolutionService.GeneratedAssemblyEntry.get_Assembly()
at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, String description)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchGeneratedEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly& assembly, ReferenceType refType)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.GetType(ITypeResolutionService trs, String name, Dictionary`2 names)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.FillStatementTable(IDesignerSerializationManager manager, IDictionary table, Dictionary`2 names, CodeStatementCollection statements, String className)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)

how can i solve this error
Any one can help me!!!
Regards,
vignesh



kottu
Top achievements
Rank 1
 asked on 01 Dec 2009
3 answers
292 views
I added GridViewComboBoxColumn per the help files. http://www.telerik.com/help/winforms/grid_gridviewcomboboxcolumn.html

What I am trying to figure out is how to make the values in the combobox distinct.  Is there a property or setting to do this or do I have to programmically remove all of the dups?

Thanks
Stephen

 

steve
Top achievements
Rank 1
 answered on 30 Nov 2009
6 answers
196 views

Hello,

i am working on a localization provider for the RadScheduler. 

I get the following problems:

1. I set the RadSchedulerStringId.NextAppointment and the RadSchedulerStringId.PreviousAppointment to a translated text but they are not used. These two stringids are the only ones which are not used, so i think that these are hardcoded in the RadScheduler.

2. In the Resource ComboBox is a standard empty text ( "None" ) but there is no RadSchedulerStringId to translate it. Is it possible to change this text?

3. In the Appointment Dialog there is not enough space for the translated Text of the AllDayEvent text. Is it possible to extend it ?

4. In the recurring Appointment Dialog there is not enough space for the translated text for many RadSchedulerStringIds. Is it possible to extend it ?

Kind Regards,

Ramius

Boyko Markov
Telerik team
 answered on 30 Nov 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)
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?