Telerik Forums
UI for WinForms Forum
16 answers
356 views
Hi,

On my tests with drag and drop I am getting the following exceptions which do not seem to be thrown by my code.

The exeptions are "Object reference not set to an instance of an object."

at Telerik.WinControls.UI.RadTreeView.HandleDragDropCursor()
at Telerik.WinControls.UI.RadTreeView.DoDragDrop()
at Telerik.WinControls.UI.RadTreeView.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(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(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.Application.Run(Form mainForm)
at telerikevaluation.manager.StartUp.Main(String[] args) in C:\\Development\\telerik\\evaluation\\source\\RevivalManager\\StartUp.cs:line 19"


And sometimes this as well:

at Telerik.WinControls.UI.RadTreeView.PrepareDragDropOutlineForm()
at Telerik.WinControls.UI.RadTreeView.BeginDrag()
at Telerik.WinControls.UI.RadTreeView.PerformDragInitialization()
at Telerik.WinControls.UI.RadTreeView.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(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(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.Application.Run(Form mainForm)
at telerikevaluation.manager.StartUp.Main(String[] args) in C:\\Development\\telerik\\evaluation\\source\\RevivalManager\\StartUp.cs:line 19"

Any ideas?
/ jorge




Jordan
Telerik team
 answered on 18 Jan 2008
1 answer
204 views

Language: vb.net

I'm having a really difficult time getting changes to cell values displayed in a radGrid.

The grid is bound to a dataset containing the output of a SQL Server stored procedure that returns a list of documents.

In addition to the columns that are mapped to particular elements in the dataset (docName, docLocation), I also display a column (status) that is not mapped. 

Here's what I want to do: At runtime, after the grid has been populated, displayed, and the end user has selected several of the rows, I would like to traverse the SelectedRows collection of my grid, set the "status" column value to "S", and have these updated values displayed in the grid:

For Each row As GridViewRowInfo In dgEquiset.SelectedRows
cell = row.Cells("selected")
cell.Value = "selected"
Next

I don't get any errors, but the values don't get set.

How do I go about doing this properly?

Thanks!




Jack
Telerik team
 answered on 18 Jan 2008
5 answers
490 views
i really wish you guys had more info on the shaped form.
how do i add one to my windows project?
i found it somewhere but cant find it again
please help

justin
Jack
Telerik team
 answered on 18 Jan 2008
1 answer
123 views
Hi,

Is it possible to insert a menu strip column inside radgridview as shown in the picture below? How? Thanks.

http://img186.imageshack.us/img186/5589/menustripradew9.png

Jack
Telerik team
 answered on 18 Jan 2008
3 answers
137 views
Hi,

How can I set my forms background color to be the same as that from a RadTabStrip?

Thanks for your help,
Michael
Brad
Top achievements
Rank 2
 answered on 18 Jan 2008
2 answers
174 views
How can I load one instance of a form to the tabbed document list? I am current running this code.
 
    Private Sub newMDIRadButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles newMDIRadButton.Click
        Form5.MdiParent = Me
        Form5.Show()
    End Sub
 
 
but if I close the document from the tab and try to load it again, it doesn't work. Also, if I click the button one more time while the form5 loaded, it disappears.
Michael
Top achievements
Rank 1
 answered on 17 Jan 2008
4 answers
106 views
Hi:
I need to take the database that I have uploaded in a server the problem it is that in the server dont has a part where download the database i want to know if there is any form of download the database because I have distinc information in Internet database that in my computer
Thank you.
Alberto
Brad
Top achievements
Rank 2
 answered on 17 Jan 2008
3 answers
124 views
Hi,

I had used a panelbar with a folder image (open.bmp) with a transparent background with the Q2_2007 release, the folder image transparency worked fine.

After upgrading to the Q3_2007 release, the image transparency doesn't seem to work anymore. Here is what my code looks like now.

this.radPanelBarGroupElement2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.radPanelBarGroupElement2.Image = global::MyApp.Properties.Resources.open;
this.radPanelBarGroupElement2.Text = "Folders";

I added the following line to try to get the PanelBar to recognize the transparent color

((Telerik.WinControls.Primitives.ImagePrimitive)(this.radPanelBarGroupElement2.GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(1).GetChildAt(0))).TransparentColor = System.Drawing.Color.Fuchsia;

I also tried setting the TransparentColor of the ImagePrimitive to 

System.Drawing.Color.Transparent

but that didn't work either. Please let me know how to do this.

Thanks,

John Q.

Kiril
Telerik team
 answered on 17 Jan 2008
1 answer
91 views
Hi,

We guess there is a bug with "MinSize": (steps to reproduce)
Creat a project with two Docking Panels.
>>One small on the left side - the second filling the rest of the window.
Set MinSize on the left panel.
Make your window large.
Make the left panel as small as allowed in "MinSize".
Now make the Window smaller -- the left panel becomes smaller also.
>>Means MinSize does not work on window resizeing.

The other thing is with the panels background color of panels.
Steps to reproduce:
Again creat an app with two docking panels.
You will see that they change the BackColor to "ControlDark".
In properties use "Reset" to the BackColor -- it changes to "Control" (not bold).
Next run the app -- the panels have ControlDark as BackColor.
>> Check form1.designer.cs to ensure no backcolor is set.
Next close the form and reopen it in design view.
>>Code is added to set the BackColor to ControlDark.

We expect that BackColor work like it does with other Controls.
This means - Inheritance.
And this works well in designer!!

At the existing project change the BackColor of "PrimarySite" to Red.
Next choose "Reset" at the panels -- and YES they are red now - like they should.

Run the app -- again you have ControlDark panels - instead of red ones.

The second is easy to overcome by setting the color of the panel to a specific one.

The first is a real problem.

Regards

Manfred
Julian Benkov
Telerik team
 answered on 17 Jan 2008
3 answers
277 views
Hi,

This is just a suggestion: setting GridView.MasterGridViewTemplate.AllowAddNewRow to false when selecting the gridview as readonly.

I cannot really imagine a situation where you would allow a user to insert a record but not be able to update it.

I only recommend this because I could not find the aforementioned property in the properties tab. It would be nice if this property was listed there but that's just me being nitpicky.

Lastly, could please describe how I can go about having a set color for every other row? I would like to have alternating colors for the rows similar to that of an ASP.NET GridView.

Thanks for the help,

Michael
Kiril
Telerik team
 answered on 17 Jan 2008
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
ScrollablePanel
DataEntry
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?