Telerik Forums
UI for WinForms Forum
7 answers
234 views
hello
I have 2 different Rad list boxes first one is called "LeftList" and the second one called "RightList" then i have a button when it clicked it moves the selected items from the list on the left to the list on the right  here is the code that i user to move items

    For Each item In Me.LeftList.SelectedItems
            Me.RightList.Items.Add(item)
        Next

however it is giving me errors


Here is a copy of the error

Exception has been thrown by the target of an invocation.


Action details
{"Exception has been thrown by the target of an invocation."}
System.Reflection.TargetInvocationException was unhandled
Message="Exception has been thrown by the target of an invocation."
Source="mscorlib"
StackTrace:
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEnt ry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuarante edCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at Telerik.WinControls.RadControl.WndProc(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(Int 32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase. OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase. DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase. Run(String[] commandLine)
at RetailManagementSystem.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.InvalidOperationException
Message="Element already added"
Source="Telerik.WinControls"
StackTrace:
at Telerik.WinControls.RadElementCollection.CheckElementAlreadyAdded(RadE lement element)
at Telerik.WinControls.RadElementCollection.OnInsert(Int32 index, Object value)
at System.Collections.CollectionBase.System.Collections.IList.Add(Object value)
at Telerik.WinControls.RadElementCollection.Add(RadElement value)
at Telerik.WinControls.UI.RadVirtualizedStackViewport.ResetVisualList(Poi nt scrollValue, Boolean isScrolling)
at Telerik.WinControls.UI.RadVirtualizedStackViewport.ResetValue(Point currentValue, Size viewportSize, Size extentSize)
at Telerik.WinControls.UI.RadScrollLayoutPanel.ResetScrollPos()
at Telerik.WinControls.UI.RadScrollLayoutPanel.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout()
InnerException:


i tried so much but i really think there is a bug in the RadListBox controls


can i get some help with this issue please

thanks







Victor
Telerik team
 answered on 10 Jun 2010
1 answer
182 views
Hello,

I am using win-forms GridView Control(Version Q3 2009 i.e 2009.3.9.1203). I was trying the Edit functionality in the GridView. I am saving the data to my database in the RowsChanged Event. When I edit a record with Grid column in edit mode and press enter it updates fine. But when I edit a column and click on another column in the same Grid the Data gets save but after complete execution I got an exception "Object reference not set...". I further tried to debug by setting the property "Enable unmanaged code debugging". From this I got to know that the exception was thrown - Unhandled null exception in Telerik.WinControls.GridView.dll 

Can anyone help me on this?

Thanks in Advance
Martin Vasilev
Telerik team
 answered on 10 Jun 2010
1 answer
146 views

Hi,

I'm displaying several type of classes using the BindingList class as a DataSource. The GridView automatically generates columns of the names of the properties defined in these classes. In this case te text of the columns can be set with the DisplayName attribute. So far so good. My question now is, if there is a way to  change the order of the columns via property attributes and/or if it is possible the hide some properties from beeing displayed. 

Thanks in advance

Martin

Alexander
Telerik team
 answered on 10 Jun 2010
1 answer
106 views

Hi,

        I have custom appointment class and as well as custom editappointment dialog. I am able to reproduce Daily recurrence and weekly recurrence in the radscheduler. But when i try to create exceptions for the Appointment,  the radscheduler control displays daily recurrence even for the days which has been defined as exception.i am using SchedulerBindingDataSource. 

Nitin Vikraman
Top achievements
Rank 1
 answered on 09 Jun 2010
1 answer
162 views
I am new user for Telerik , recently learning RadGridView tutorial --> Hierarchical Grid --> GridViewBinding to Hierarchical Data
I do as tutorial, when arrive at "Define Relation" I can't find "GridViewRelation Collection Editor" as shown in tutorial.

Pls,
Is there anyone can tell me where I can get "GridViewRelation Collection Editor"?

Thanks and Best Regards
Naunton
Naunton
Top achievements
Rank 1
 answered on 09 Jun 2010
10 answers
334 views
Hi All,

Currently the RadPanelbarGroupElement[s] are displayed in a way that they are visible as seperate buttons kind of thing where we see the lines/borders around them.

I have a requirement where I need the text of the RadPanelbarGroupElements to be displayed in such a way that they are blended with the background.

For ex
Consider this screen itself and assume it that its RadPanelBar.
Now the way I want to dispay the group elements is as follows:

RadGroupElement1

RadGroupElement2

RadGroupElement3



Instead, I dont want it to be displayed with demarcations like:

RadGroupElement1

---------------------

RadGroupElement2

----------------------

RadGroupElement3

In all the sample applications of RadPanelBar, we see the group elements easily distinguishable with some boundaries.
I need to show them boundary less.

I hope i am able to explain the problem.If its not clear please let me knw and i will provide the screen shot of how i want the radpanelbar to look like.

Looking forward for your help.

thanks
barkha
Nikolay
Telerik team
 answered on 08 Jun 2010
1 answer
164 views
Hello,
I am showing a menu on click of  start button of the ribbon bar.
But along with menu options it also shows some unwanted space (in grey color) on the right hand side of the menus.
How to avoid this ?

Any help is greatly appreciated.

Regards,
Sid
Nikolay
Telerik team
 answered on 08 Jun 2010
3 answers
234 views
I use RadGridView to edit some data and declare the GridViewMaskBoxColumn in the following way

            GridViewMaskBoxColumn widthColumn = new GridViewMaskBoxColumn();
            widthColumn.HeaderText = "Width";
            widthColumn.FieldName = "Width";
            widthColumn.MaskType = MaskType.Numeric;
            widthColumn.Mask = "f2";
            widthColumn.FormatInfo = CultureInfo.CurrentCulture;
            BaseGridView.MasterGridViewTemplate.Columns.Add(widthColumn);

As u can see I even set the culture manually and during debug I see that the culture is "ru-RU" that means I will see the numbers separated width "," instead of "."

That's works fine I see the comma clearly.
But then I set
            BaseGridView.CellValidating += new CellValidatingEventHandler(BaseGridView_CellValidating);
to validate if the user entered the data in a valid range for my application.
When debug reaches this action i can see CellValidatingEventArgs.Value defined as "11.11" instead of "11,11" as was shown in the editor.
This leads application to an exception when i try set this value to a float property.
What have i done wrong?






Alexander
Top achievements
Rank 1
 answered on 08 Jun 2010
1 answer
480 views
I need to create a winforms app with multiple 'panels' that have rounded corners with a shadow. This is what I'm talking about: DropShadow.

How would I go about doing this? I need to be able to put objects in the panel (.SWF file, .PDF file, HTML, ...)

I just started looking at the Telerik stuff today so I know almost nothing about it.

TIA - Jeff.
Nikolay
Telerik team
 answered on 08 Jun 2010
11 answers
483 views
Hi,

Is there a way to make the TextboxColumn added to Gridview like in code below to accept return<enter>..???
currently i have to do alt+ enter to accept the <enter> key.

Thanks,
GridViewTextBoxColumn textBoxColumn = new GridViewTextBoxColumn(); 
textBoxColumn.FieldName = "Comments"; 
textBoxColumn.FieldAlias = "Comments"; 
textBoxColumn.UniqueName = "Comments"; 
textBoxColumn.HeaderText = "Text";    
this.radGridView1.Columns.Add(textBoxColumn); 


Sathya
Top achievements
Rank 1
 answered on 08 Jun 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)
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?