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();
}
}
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.
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.
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.
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,
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
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.
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.
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?