Telerik Forums
UI for WinForms Forum
1 answer
105 views
Hello,

 

I try to use DropDownList with datasource, but is not working as expected.

When I Clear() the BindingSource, the RAD component still have "Text" with last item displayed which is abnormal.

Please see the code, the normal windows ComboBox works as expected.

 

Any fixes?

public partial class Form1 : Form
{
    List<string> list = new List<string>();
    BindingSource bsource = new BindingSource();
 
    public Form1()
    {
        InitializeComponent();
 
        bsource.DataSource = list;
 
    }
 
    private void Form1_Load(object sender, EventArgs e)
    {
         
 
        //Set list dataSource
         
        comboBox1.DataSource = bsource;
        radDropDownList1.DataSource = bsource;
 
        //Now add an element via Binding object
        bsource.Add("One");
        bsource.Add("Two");
    }
 
    private void button1_Click(object sender, EventArgs e)
    {
        bsource.Add("Three");
    }
 
    private void button2_Click(object sender, EventArgs e)
    {
        bsource.Clear();
    }
}
Dimitar
Telerik team
 answered on 08 Jun 2015
1 answer
128 views

Hi to all,

in past I used ScheduleView for WPF and Silverlight.

Now I have to use Scheduler for WinForm, but I need to populate DataSource every time change period range, indipendently ViewType.

I need to this features because I can't link this control directly to my database, then I need to know when user change period range that he see.

 Is it possible?

 In WPF and Silverlight I used VisibleRange event.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Jun 2015
5 answers
524 views

We've run into some situations where a right click on a particular Telerik control behaves in the way we expect only a left click to behave.

 For example, we have a Command Bar with a bunch of buttons.  If you right click one of the buttons, the Click event occurs and our application ends up doing the logic associated with the button.  End users are confused because they don't expect a right-click to trigger a button click.  The same goes for the middle click.  It seems like the buttons in a command bar should only raise the Click event if they are clicked with the left mouse (assuming right-handed mouse).  I'm not sure if the command bar supports keyboard navigation....but if so, then pressing the spacebar with the button focused should also trigger the Click event.

For normal buttons, this seems to work as I expect (right or middle click does nothing, spacebar triggers click event, etc.).  I also found this old forum thread that talked about similar issues that I think have been fixed:  http://www.telerik.com/forums/you-can-right-click-to-click-button 

There are two other places where I've noticed right click works and I think those are bugs as well.  

1. Checkboxes can be checked/unchecked by right/middle clicking on them (or clicking on the label).  That seems wrong to me.  The checkboxes inside of tree views also have this problem.  However, checkboxes inside grids don't seem to have this problem.

2. I can open dropdowns by right/middle clicking the little down arrow on the right edge of the dropdown.  That seems wrong.

Finally, I've noticed that buttons show the 'clicked' state on mouse down of the middle button.  That doesn't seem right although I'm not 100% about that.  The mouse down state also appears for right click if I right click enough time.  This happens even on regular buttons.

Hopefully my explanations of the various issues I'm seeing make sense.  I can see all of these problems in the demos included with the installation so I don't think any of them are issues with my code.

Stephen McDaniel
Top achievements
Rank 1
 answered on 05 Jun 2015
3 answers
96 views
Hi Telerik,
 
I'm trying to use RadDock in Your Demos and i have a problem:
When I add alot of documents ( such as 20 docs), the main screen only show 10 documents and i must click to OverlowDropdownButton on the right to know all document opened.
 
I wants to ask:
 1. How to show Next and Previous Button beside OverflowDropdownButton

I tried all samples from here:

http://www.telerik.com/community/forums/winforms/dock/next-and-previous-button.aspx

but doesnt work with Q3 2012 SP1, why? Buttons are drawn, but program crashes on close and list button, scoll buttons have no function.
 
Thanks in advance
Hristo
Telerik team
 answered on 05 Jun 2015
1 answer
125 views

I have a PieChart and when I enable the Smart Labels, it's doesn't work correctly.

I've attached two pictures, without smart labels and with smart labels enabled.

 

Dimitar
Telerik team
 answered on 05 Jun 2015
3 answers
213 views

Hello Telerik,

I have two small questions about PropertyGrid.

1. Is possible to have a hyperlink in one Property Value (not entire column, just one or several values to be URL)

2. I've tested the nice feature of grouping. Can I have more sub-groups there, or expandable one, eg:

Distributors (main group)

         Belnor ( sub group)

                 Property - Value

                 Property - Value

         Kirkwald (sub group)

                 Property - Value

                 Property - Value

 Thanks in advance,

     

 

 

    

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Jun 2015
0 answers
141 views

Hello.

I want to change the text of the column in listview with checkbox

I have

 

Public Sub lvRegDePedido_ItemCheckedChanged(sender As Object, e As ListViewItemEventArgs) Handles lvRegDePedido.ItemCheckedChanged
            formatoDeCellda()
    End Sub

Private Sub formatoDeCellda()
        Try
            Dim e As ListViewCellFormattingEventArgs
            e = Nothing
            If e.CellElement.Data.HeaderText = "Estado del articulo" Then
                If e.CellElement.Text = "No entregado" Then
                    e.CellElement.ForeColor = Color.Aqua
                End If
            End If
        Catch ex As Exception : MsgBox(ex.Message)
        End Try
    End Sub
 

I work in the trial version (demo)

Adj Img

Hector
Top achievements
Rank 1
 asked on 04 Jun 2015
1 answer
85 views

Hello 

Does RadControls have a textbox where in I can implement a textbox password field similar to Android Environment. 

I should be able to enter a character, display the character entered for a few milliseconds before masking it using "asterix" or any other password

character. Also I should be able to edit/insert/delete any character anywhere in the content.

 

 

 

 

Dimitar
Telerik team
 answered on 04 Jun 2015
1 answer
111 views

I have a grid (Q2 2014 SP1) with several columns and one checkbox column.  The checkbox is the only information that can be modified by the users.  Now, depending on the checkbox state, I paint the row using this code (where "IsConcilie" is the checkbox's column name):

if (row.Cells["IsConcilie"].Value.Equals(true))
{
rowElement.DrawFill = true;
rowElement.GradientStyle = GradientStyles.Solid;
rowElement.BackColor = Color.Gray;
rowElement.ForeColor = Color.White;
}
else
{
rowElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
rowElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local);
rowElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
rowElement.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local);
}

The problem I have is when one of the cell is clicked, the cell is selected and painted using the default colors which makes the cell hard to read because it keeps my foreground color setting.

Since only the checkbox can be modified, is here a way we can prevent the selected cell to paint using the default painting behavior?  Or how can I handle the painting of the cell myself and bypass the default settings?  Or even, can we make the rows non-selectable?

Thanks.

Hristo
Telerik team
 answered on 03 Jun 2015
1 answer
96 views

Trying to implement this feature-

http://feedback.telerik.com/Project/154/Feedback/Details/112143-fix-horizontal-scroll-bar-should-appear-when-auto-size-columns-mode-is-enabled-a

With ColumnGroups and it does not seem to honor the minimum column widths.  Is there a way to implement scrolling when using auto sized columns when the view has been put into ColumnGroups?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Jun 2015
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?