Telerik Forums
UI for WinForms Forum
1 answer
290 views

OK, the title's a little bit of a lie.

I am unable to figure out the right combination of property values and event handlers to get a behavior I need for dragging things around in a radtreeview.

I want to allow users to drag node around in the tree (not into other controls).  This would seem to be very easy by simply setting the AllowDragDrop property to true.  This works great -- except that I need to implement some constraints.  Specifically, each type of node knows whether a given other node can be dropped onto it. 

I was unable to find any event I could effectively hook to implement  this.  The documentation suggests that at the end when the drop happens (DragEnding) it's possible to apply some logic to determine if the drop is valid.  However this is not enough for me.  I want to provide real time feedback when the user is hovering over various nodes about whether they can drop there.

So I started trying tsome things.  First I tried adding some feedback in the DragOver event.  But as soon as I did that, the visuals provided by the control (basically the bitmap being dragged around) moved a few pixels but then froze.  I finally concluded that I was colliding with the fully automatic drag drop capabilities in the control enabled by setting AllowDragDrop.

So I turned off AllowDragDrop and initiated a DoDragDrop manually on the MouseMove event.  Then I started implementing the other normal Windows events (like DragOver).  In order to provide feedback, I change the colors of the potential target node.  This all works well *BUT* I can't figure out how to catch when the user cancels the drag-drop so I can restore the node to its original colors.  I can do this if the operation completes by changing it back in the DragDrop event, but I don't think that happens if the user hits escape while dragging.

So... I thought I could hook QueryContinueDrag because it seems to have a flag indicating whether the user pressed Escape.  And here's the problem.  The event never seems to be called.  Is that a bug?  Is there something I need to do to cause the events to be fired?  My concern is that there is a bug such that QueryContinueDrag doesn't fire if the drag-drop operation is manually initiated (as I'm doing now).

Any advice?  Is there a simpler way to make this work?  Is there a bug with firing QueryContinueDrag?

Help!

Thanks,

David

Jordan
Telerik team
 answered on 19 Sep 2008
3 answers
602 views

I would like my dates to be formatted like this
dd-MM-yyyy HH:mm
which should result in
10-08-2008 15:30


However viewing data is currently formatted like this
10-09-2008 15:30:00
and when editing the values it is:
17. september 2008


I would like both formats to use this format string
dd-MM-yyyy HH:mm
And as i read it i should only set the FormatString property and this should result in both the edit and view format to be set correctly.

Below i attached my code:

puljeRounds.MasterGridViewTemplate.Columns.Add(new GridViewDateTimeColumn("Dato", "round_date") {  FormatString = "{0:dd-MM-yyyy HH:mm}" }); 
Boyko Markov
Telerik team
 answered on 19 Sep 2008
3 answers
144 views
This should be an easy one - how do I make it so that when I select a tab in the docking manager, the selected tab is highlighted?

I've got it highlighting the tab when I hover & when I click on the tab, but the effects are just fading away, so I need to know how to find and set the condition for the effect.

 thanks
Vassil Petev
Telerik team
 answered on 19 Sep 2008
4 answers
449 views

Hello,

Is it possible in pie chart show the slice name and correspondent value?

I only can show or one or other.

Thank you.
LM

Xavier Soares
Top achievements
Rank 2
 answered on 19 Sep 2008
5 answers
126 views
Hi Telerik Team,
I am looking into your new Q2 2008 pack of Rad controls for Win Forms.
I just came cross a demand from client. i.e.

We have Radtreeview in form as well. Now the user wants that if he drags any node of treeview control and drops it in toolstrip area then the node's tool button should created.
The problem I am encountering is that i could not find any event something like "Drag in" or even "Mouse Up" as i can see there is an event of  "Mouse down".

Can you please help in in this regard.

Regards,
Haroon.
Vassil Petev
Telerik team
 answered on 18 Sep 2008
1 answer
134 views
hi,

i want to get the values of the gridview rows columns when several rows are selected. is there an collection of selected rows and can i get the values using "for each..."?

thanks,

andreas
Martin Vasilev
Telerik team
 answered on 18 Sep 2008
1 answer
367 views
Hi Telerik Team,
Can you please provide we a sample projects (with vb 2005) code of "Photo Album " and "Business Card"  projects in  your  winForm  Conrtols  Demo  project.
I be really  thankful.

Regards,
Haroon.
Martin Vasilev
Telerik team
 answered on 18 Sep 2008
1 answer
233 views
Hi

I have a Grid bound as below, i am able to enter edit state on the TextBoxes however upon end edit the value entered is not persisted in the grid (meaning the datasource)

Why is this ?
If it is not possible to have a "select new { }" in the linq query and still edit, how should i then do this ?


            rounds.MasterGridViewTemplate.Columns.Clear();  
            rounds.MasterGridViewTemplate.Columns.Add(new GridViewDataColumn("Hjemme", "tName") { Width = 120,ReadOnly=true });  
            rounds.MasterGridViewTemplate.Columns.Add(new GridViewTextBoxColumn("Bane", "lane_HomeNum") { Width = 55HeaderText = "Bane" });  
            rounds.MasterGridViewTemplate.Columns.Add(new GridViewDataColumn("Ude", "tName2") { Width = 120ReadOnly = true });  
            rounds.MasterGridViewTemplate.Columns.Add(new GridViewTextBoxColumn("Bane Ude", "lane_awayNum") {  Width = 55HeaderText = "Bane"DataType = typeof(int) });  
            rounds.MasterGridViewTemplate.Columns.Add(new GridViewDataColumn("Anden dato", "round_id") { Width = 50ReadOnly = true });  
            rounds.MasterGridViewTemplate.AutoGenerateColumns = false;  
            var q = from v in db.match_dbs  
                    where v.round_id == roundID  
                    select new { v.match_id,  tName =  v.team_db.team_name,v.lane_HomeNum,  v.lane_awayNum , tName2 = v.team_db1.team_name };  
 
            rounds.DataSource = q
Jordan
Telerik team
 answered on 18 Sep 2008
3 answers
127 views

Hi Guys,

I am looking for a way to export the RadPanelBar Control to an ActiveX object for use in a VB6 project. I know it’s possible, I just need a bit of help considering the RadPanelBar is a user control and not a simple object.

Going from ActiveX to .NET is fairly simple but it’s a bit of a pain going the other way.

Any help would be appreciated. I couldn't find much via google. :~<

Thanks,
Chris H

C# .NET 2008,
NET Framework 3.0,
Telerik Controls 2008 Q2 SP1
Nikolay
Telerik team
 answered on 17 Sep 2008
1 answer
154 views
Hello,

I tried to use RadComboBoxElement now but met 2 problems.

1. I did set the property "ReadOnly" to True, however, I could always edit the text shown in the combobox, same problem in the demo of RadControl.

2. When the text of an item in the combox is longer than the length of the combobox, then I selected it, in the combobox it would show the end of the item. What I want is to show the head of the text.

Waiting for ur answer.
Shuo
Top achievements
Rank 1
 answered on 17 Sep 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
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?