Telerik Forums
UI for WinForms Forum
9 answers
193 views
Hi all,

Maybe a simple question, but how can I define the maximum width of a dockpanel? So that if the window resizes, the width of the dockpanel stays fixed?

Thanks,
Daniel

Julian Benkov
Telerik team
 answered on 18 Jan 2008
1 answer
250 views
Hi,

to solve the problem described here
http://www.telerik.com/community/forums/thread/b311D-bamtct.aspx

I tried to handle the SplitterMoved event.
BUT - the SplitterEventArgs give the wrong values.
To reproduce it use the following steps:

Create an app with a dockmanager holding two panels.
For easy investigation move the splitter to some high XPositon.
Lets say - about the middle of your form.
Now add a handler to the SplitterMoved Event in the primary site.
Add a dummy code line there - for an example
int nX=e.SplitX;
Add a breakpoint at that line.
Now start debugging - and drag the splitter very far to the left.
Release the mouse button -- BP hit.
Now check the value of e.SplitX.
EXPECTED: some small value
GOT: the value where the splitter was before dragging!!!

To proof this is not a "SplitterMoved normal behaviour" do the following.
On the rigth pane of your docking add System.Windows.Forms.SplitContainer.
Place the splitter also into the middle of the container.
Add a handler for SplitterMoved.
Add the same dummy code line as for your other handler.
Place a breakpoint at this line of code.
Run your application.
FIRST: you will see an initial break in the SplitContainer SplitterMoved handler
>>this event is not fired for the PrimarySite !!
Continue debugging.
Move the splitter of the SplitContainer far to the left.
Release the mouse - BP hit.
Check the value of e.SplitX
It is a small number - as expected.

Regards

Manfred
Julian Benkov
Telerik team
 answered on 18 Jan 2008
16 answers
277 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
173 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
446 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
99 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
89 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
114 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
78 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
100 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
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?