Telerik Forums
UI for WinForms Forum
8 answers
395 views
I'm planning to use the treeview as an alternative for the listview component for displaying multiple lines that can:

- indent
- selected via checkbox
- drag/drop
- image per line (node)
- collapse/group lines

All can be done with the treeview. The only thing I have on my "wishlist" is a way to number the "lines" (= nodes). Is it possible to add lines numbers to the left of the notes, just like f.e. in a code editor (all aligned on the left before the nodes)?
Stefan
Telerik team
 answered on 11 Nov 2011
4 answers
394 views
Hi All,

In order to save space and for information purposes I am trying to display a column header text in two lines if possible like:

==============
Exepnses
($ per day)
=============

Is there a suitable way to do this?

Regards,

George

Svett
Telerik team
 answered on 11 Nov 2011
3 answers
269 views
Tech, 

I am using Telerik Version 2009.2.9.701. and Using Telerik.WinControls.Docking.DockingManager in my Form. I am using DockPanel. when user start drag and Drop. I want to prevent user from dropping to Fill DockPosition.

In new version, offers DragDropService which has AllowedDockManagerEdges and PreviewDockPosition to achive this funcnality. But, at this point I can not update the my Telerik Version to new one.so, I have restriction to use only 2009.2.9.701.

Please suggest any solution or workaround that is avilable in 2009.2.9.701 Version in Telerik.WinControl.Docking.dll. 

Help would be appriciated.

Thanks.
Julian Benkov
Telerik team
 answered on 11 Nov 2011
1 answer
157 views
Hi all,

Due to the current lack of support of the RadtreeView for automatic drag and drop when the control is databound, to I am trying to "roll my own". However, I got stuck on a few things, so I really hope someone can help me out.

I have subclassed the RadTreeView, RadTreeViewElement and TreeViewDragDropService classes and am implementing my own versions of OnDragEnter and OnDragDrop. I am assuming that the DragDrop event is the one that I need to override in order to find out on which node the dragged one is dropped.

I can easily find out what node is being dragged by using the value returned in the Data object as below:

drgevent.Data.GetData(typeof(RadTreeNode))

That works fine. However, I am failing to (1) find out what node it is dropped on and (2) what the databound item is for that node. When I use:

var targetNode = this.GetNodeAt(drgevent.X, drgevent.Y)


it always returns null, and I don't see any method or property that returns the item a node is bound to. I was hoping for something similar to the one in the DataGridView (row.DataBoundItem). Is there anything like that, and what do i do to get the node that the dragged item is dropped on?

Thanks in advance (I have been tearing my hair out about this for far too long).

Lucien.
Svett
Telerik team
 answered on 11 Nov 2011
1 answer
183 views
Hi.  We're running the 2011.1.11.419 version of this control in our product.  Our users have pointed out that the keyboard delat that allows you to jump to longer selections has gotten much smaller.  So if you have a dropdown with "Bart", "Bob", and "Olaf", you have to type "bo" very quickly to get to Bob, otherwise your selection ends up on "Olaf".  I hope this makes sense... I have no idea what you correctly call this feature.

I tried this on the Winforms RadControls demo app, and I had exactly the same result.  The maximum delay you can have between typing the "B" and the "o" seems to be 500ms or less, when I'm sure it used to be 1000ms or more.

For our users this is quite a nuisance, since most of them type with two fingers but need to move quickly through dropdowns with hundreds of options.  (On the upside... they're learning to type faster :)

Please let me know if you think this is an issue that has appeared in version 2011 / 419 or not.  Thanks.
Peter
Telerik team
 answered on 11 Nov 2011
1 answer
96 views
Hi :

     1. The horizontal  scroll of radgridview is not visible when pinned columns over the display screen - what is not expected.
     2. The horizontal  scroll of radgridview  can not be moved when pinned columns over the display screen - what is not expected.

Greetins
Look forword to you
Ajing
Alexander
Telerik team
 answered on 11 Nov 2011
12 answers
312 views
Hi Telerik's support.
I'm trying to use radComboBox inside radGridView. I made my custom Column and Cell types. As was stated in the article from your site I'm using following code:

txtInput.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            txtInput.RootElement.StretchVertically = true;
            txtInput.RootElement.StretchHorizontally = true;
            txtInput.TextChanged += TxtInputTextChanged;
            Children.Add(txtInput.RootElement);

This code works well in case if instead of ComboBox there will be RadTextBox and TextElement. The problem is RadComboBox has fixed size and doesn't stretch when the size of cell is changed.
Jill-Connie Lorentsen
Top achievements
Rank 1
 answered on 10 Nov 2011
2 answers
115 views
Hi,

    i have created a sample application to produce the bug. the application contains gridview with one cell which is gridviewcheckcolumn and a rad button to show the messagebox saying whether the check box is checked or not in the gridview.
    
    when i check the checkbox and if i press the button mesage box showing checked but when i press shortcut key for the button its not working correctly.

    there is a scenarion in my project where we have shortcut key for the button and it behaves like as i said above, so any suggestions on this regard will be helpful for me to solve this issue

private void Form1_Load(object sender, EventArgs e)
       {
           GridViewDataRowInfo row = this.radGridView1.Rows.AddNew();
       }
 
       private void radButton1_Click(object sender, EventArgs e)
       {
           string name = radGridView1.Rows[0].Cells[0].Value.ToString();
           if (radGridView1.Rows[0].Cells["Select"].Value.ToString() == "True")
               MessageBox.Show("Checked");
           else
               MessageBox.Show("UnChecked");          
       }

Thanks,
Selva
Selvamani
Top achievements
Rank 1
 answered on 10 Nov 2011
1 answer
212 views
I am interested in printing data with our Telerik Rad Winform Controls. I would like to know what my options are.

  • Is there an out of the box way to print a GridView?
  • What are my options for XSLT/XML printing (via HTML)?
  • What are my options for PDF printing?

If someone can point me to docs on how to print a winforms view, or opinions/ideas from those who have done this - I would really appreciate it!

-shawn
Martin Vasilev
Telerik team
 answered on 10 Nov 2011
1 answer
264 views
Hello,
I wish that as value of property values ​​change in my editor. For example I pass a value to the ID property, I would like with Red or Blue as a possibility and if I go 2 in value to the property ID, I would like to have Green and Black. Is this possible?

In my form
private void radPropertyGrid1_EditorRequired(object sender, PropertyGridEditorRequiredEventArgs e)
{
    if (e.Item.Name == "TestSam")
    {
        PropertyGridSamEditor test = new PropertyGridSamEditor();
        test.id = 1;
        e.EditorType = test.GetType();
    }
}

In my class PropertyGridSamEditor :
public class PropertyGridSam2Editor : BaseInputEditor
    {
        public PropertyGridSam2Editor()
        {
            m_ID = 0;
        }
        public int m_ID { get; set; }
        public PropertyGridSam2Editor(int ID)
        {
            m_ID = ID;
        }
        public override object Value
        {
            get
            {
                RadDropDownListElement editor = (RadDropDownListElement)this.EditorElement;
                List<InfoSam> Isam = new List<InfoSam>();
                if (m_ID == 0)
                {
                    Isam.Add(new InfoSam(1, "Rouge"));
                    Isam.Add(new InfoSam(2, "Bleu"));
                }
                else
                {
                    Isam.Add(new InfoSam(3, "Bleu"));
                    Isam.Add(new InfoSam(4, "Noir"));
                }
                editor.DisplayMember = "Couleur";
                editor.SelectedValue = "ID";
                editor.DataSource = Isam;
                return editor.Text;
            }
            set
            {
                RadDropDownListElement editor = (RadDropDownListElement)this.EditorElement;
                if (value != null && value != DBNull.Value)
                {
                    editor.Value = value.ToString();
                }
                else
                {
                    editor.Value = "1";
                }
            }
        }
}


Regards


Ivan Petrov
Telerik team
 answered on 10 Nov 2011
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
ProgressBar
CheckedDropDownList
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
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?