Telerik Forums
UI for WinForms Forum
2 answers
188 views
Hi

I have a RadDock control (named dockManager) that I am listening to the drag/drop service on, using the following code in the form's constructor:
            DragDropService dragDrop = dockManager.GetService<DragDropService>();  
            dragDrop.DragDropMode = DragDropMode.Preview;  
            dragDrop.PreviewDockPosition += new DragDropDockPositionEventHandler(dragDrop_PreviewDockPosition);  
            dragDrop.Starting += new StateServiceStartingEventHandler(dragDrop_Starting);  
            dragDrop.AllowedStates = AllowedDockState.All & ~AllowedDockState.TabbedDocument;  
 
 
I need to determine whether I am dragging a ToolWindow, a DockTabStrip and also determine the type of toolwindow/DockTabStrip
At the risk of asking a stupid question, how do I determine what object I am dragging in dragDrop_Starting event handler and/or dragDrop_PreviewDockPosition?

Thanks in advance

Alan
Georgi
Telerik team
 answered on 18 Nov 2009
1 answer
111 views
Hi there,

Not sure if this is DEU syndrome or not, but I seem to have closed the windows in the StyleBuilder, and can't for the life of me figure out how to get them back.  This only seems to be the case from an instance that runs after being initiated from VS. If I run from the start menu, the proper windows are displayed.  I tried to rename the cfg file from ProgramData, but it didn't seem to make a difference.

Thanks.

Ashley
Nikolay
Telerik team
 answered on 18 Nov 2009
1 answer
161 views
I'm developing a project where i have to use the ADO.net architecture. I'm trying to understand the whole SchedulerDataDataSet, but i'm kinda stuck. If there any way to change everything and do it with a Business Entities Component and a Data Acces Layer Component.
Nikolay
Telerik team
 answered on 18 Nov 2009
1 answer
203 views
I'm trying to get the RadMarkupDialog working at runtime (using the code from http://www.telerik.com/help/winforms/radmarkupdialog.html). I have references to Telerik.WinControls, Telerik.WinControls.UI, Telerik.WinControls.UI.Design, TelerikCommon, and TelerikData (all 2009.3.9.1103) and can't find the RadMarkupDialog class in any of them. Did the runtime version not make it in to Q3 or am I missing something?
Svett
Telerik team
 answered on 18 Nov 2009
1 answer
144 views
What I am trying to do is add a new row to a grid and then automatically set it to edit mode. What i'm finding is this fails on the first row that is inserted, but for every other row it works fine. I have tried setting current row/column a few different ways and found the same behaviour. Have set up a basic example of it below.

        private void Form1_Load(object sender, EventArgs e) 
        { 
            radGridView1.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; 
            radGridView1.ShowGroupPanel = false; 
            radGridView1.MasterGridViewTemplate.EnableGrouping = false; 
            radGridView1.MasterGridViewTemplate.AllowAddNewRow = false; 
 
            GridViewComboBoxColumn col1 = new GridViewComboBoxColumn("Test1", "Test1"); 
            col1.DropDownStyle = RadDropDownStyle.DropDownList; 
            col1.FieldName = "Test1"; 
            col1.DisplayMember = "Test1"; 
            col1.DataType = typeof (int); 
            col1.DataSource = new[] {1, 2, 3}; 
            col1.AutoCompleteMode = AutoCompleteMode.SuggestAppend; 
 
            radGridView1.Columns.Add(col1); 
        } 
 
        private void button1_Click(object sender, EventArgs e) 
        { 
            int rowCount = radGridView1.Rows.Count; 
 
            object[] values = {1}; 
            radGridView1.Rows.Add(values); 
            radGridView1.MasterGridViewInfo.CurrentRow = radGridView1.Rows[rowCount]; 
 
            radGridView1.Rows[rowCount].Cells["Test1"].BeginEdit(); 
        } 

What happens is the first row will get inserted without being in edit mode. if you click the button every other row works correctly.

Is there anything that i'm doing wrong in this case?

Version i'm using is: Q2 2009 SP1.

Have attached an image of the result. http://bayimg.com/image/maefbaaco.jpg

Jack
Telerik team
 answered on 18 Nov 2009
1 answer
282 views

During the CellBeginEdit event I need to supply a default value for the cell if there is no data in the cell and only during an Edit event. I initialized the default value during the CellEditorInitialized event and all works, the default value appears.
 

 

 

Private Sub gv_CellEditorInitialized(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles gv.CellEditorInitialized  
    If TypeOf gv.ActiveEditor Is RadTextBoxEditor Then 
        gv.ActiveEditor.Value = IIf(object.Data= 0, "",object.Data)  
    End If 
End Sub

Now when the Enter Key is pressed (accepting the default value) the CellEndEdit event is fired and I have the following code:
If IsNumeric(e.Value.ToString) Then 
  object.data = e.Value  
End If 
The issue is that the Cell Value (e.value) is never equal to the default value, it's empty.

Any help greatly appreciated.



Jack
Telerik team
 answered on 18 Nov 2009
3 answers
213 views
What's the recommended solution for expanding a tree view when bound to an object data source.  The created nodes are collapsed by default and I don't see a way to change the default behavior, nor do I see any events indicating when a node is added
Victor
Telerik team
 answered on 18 Nov 2009
1 answer
159 views
Hello!

I have a really strange behavior with my project. If I put a RadImageButton to the ToolStripItem and I assign an image with red in it, it is not showing it. In design mode everything works fine, but as soon as I start the program (even from VS), I got an empty space for the image. 

I tried with several pictures (mainly with cancel and stop and so on), but as soon as the red appears, my image disappear. Other images works fine. The images are all pngs with transparent background.

I attached two screenshots and you can download a simple project from http://www.wellensteyn.ro/temp/HQ.ZIP
Does anybody experienced something like this? What can be the problem? 

Thanks: Botond
Nikolay
Telerik team
 answered on 18 Nov 2009
3 answers
514 views
Hi,

I have a GridView with a GridViewComboBoxColumn that has a list of strings as the datasource and is bound to a string property in my ViewModel. Is it possible to let the user add new values to the string-list by typing in the GridViewComboBoxColumn editor and not reject those values when they are not already in the list?

At the moment, when I type a string that is not already in the bound list, the string is saved in the editor (when I enter the cell again after leaving it, the value is still there) but not propagated through the ValueChanging event and also not written to the underlying ViewModel.

I'm looking for a way to either
  1. Add the new value directly to the string-list and to the ViewModel's property
  2. Get notified about the change with the new, not-in-list value and be able to put it in the string-list manually

Is there a way to do this?

Thanks in advance.
Jack
Telerik team
 answered on 18 Nov 2009
1 answer
248 views
I'm struggling with an easy (so it seems) task:

print a chart on a landscape A4 sheet of paper so that the chart fits on the page and uses optimum space.

Any Pointers?

Regards
Erwin
Dwight
Telerik team
 answered on 18 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?