Hi,
I have a DateTime field in my table that is nullable.
How can I keep null value in my grid?
I would show empty cell when date is null, and user could insert a date or cancel a date that already exists.
Hi to all,
I would create a structure like this:
Can I do this?
Actually Imet this problem, when I try to add valuteUC to valuteLG it says me thatvaluteLG.Container = Nothing
What I have to do?
Dim
valuteUC =
New
ValuteUserControl()
Dim
valuteLG =
New
LayoutControlGroupItem()
valuteLG.Container.Add(valuteUC)
MainLayoutControlTabbedGroup.Container.Add(valuteLG)
Hello there!
The function of the control itself it's pretty straightforward, however, it seems that it does not have the ability of binding to a data source. Is there any possible workaround?.
Thanks in advance.
Hi Folks,
I have a user control (WinForms) that has a radGridView placed on it.
I use it on my radForm as follows:
Declare the instance of the control as a member level variable
private
UserctlItemMastGridView _gridview;
Then in the constructor of the form I set it up and:
_gridview =
new
UserctlItemMastGridView();
_gridview.Dock = DockStyle.Fill;
pnlAll.Controls.Add(_gridview);
_gridview.GridClicked +=
new
EventHandler(
this
._gridview_GridClicked);
Which is fine. I have an event handler which fires when the grid is clicked.
The issue I have is the mouse-wheel scroll is not being fired or captured. Is there a way to raise an event for mouse scroll on the user control and pass it back to the form?
Many thanks,
Martin.
Hello,
I've multiple issues with the MultiColumn ComboBox:
1) Filtering the ComboBox with CompositeFilterDescriptor on multiple columns:
if the ComboBox is filtered and "return" is pressed, the selected/filtered values is only taken if the filter text represents the "DisplayMember" column.
So if you have 2 I (ID & NAME) and DisplayMember is NAME and ValueMember is ID and a CompositeFilter like this
RadMultiColumnComboBox1.AutoFilter =
true
;
RadMultiColumnComboBox1.EditorControl.FilterDescriptors.Clear();
CompositeFilterDescriptor compositeFilter =
new
CompositeFilterDescriptor();
compositeFilter.FilterDescriptors.Add(
new
FilterDescriptor(
"ID"
, FilterOperator.StartsWith,
""
));
compositeFilter.FilterDescriptors.Add(
new
FilterDescriptor(
"NAME"
, FilterOperator.StartsWith,
""
));
compositeFilter.LogicalOperator = FilterLogicalOperator.Or;
RadMultiColumnComboBox1.EditorControl.FilterDescriptors.Add(compositeFilter);
you can search/filter for ID/NAME, but if you search for ID and then press "return" the item is not selected and the text becomes empty. If you do the same but search for a name the item will be selected if you press "return".
I've managed to deal with this by overriding the ProcessReturnKey function, but then there is issue #2 left:
2) Selecting a item by filtering and pressing "return" doesn't fire the SelectedIndexChanged-Event
if you have the same circumstances as 1) and you filter and then select the item by pressing "return" the SelectedIndexChanged-Event is never fired. I think this has something to do with the handling and event suppressing in "RadMultiColumnComboBoxElement.SetCurrentRowOnReturnOrTabKey". (I didn't try it, but I think the other events (like SelectedValueChanged) are neither fired.
3) Filtering/Suggesting is not working if the DropDownStyle is set to "DropDownList"
If the DropDownStyle is set to DropDownList neither the filtering nor the suggesting is working (the suggesting kinda works but with odd/strange behavior)
4) Prevent the SelectedIndexChanged event when scrolling through items
If you "scroll" through the displayed items (by keyboard) for every item the SelectedIndexChanged event is fired, makes no sense in most cases because the DropDown is still open, so is there any workaround? Or please implement the OnSelectionChangeCommitted Event.
5) MultiColumn ComboBox has a different look as the DropDownList
Using the Windows8-Theme the MultiColumn ComboBox Arrow looks different compared to the DropDownList
Also the Arrow seems a bit blurry (compared to other controls/themes)
I think there should be a uniform look across controls and themes (color / size / arrow symbol ) ...
Kind Regards,
Christian
Hello,
I have a raddropdownlist which is binding to a BindingList. When I add new item to the list, dropdown automatically selects this last added item. How do I prevent it from selecting it?
I tested with a combobox from .Net framework and it works fine. Here is my code and I am also attaching my sample program.
Please do not suggest to store the selection before I add item and then set it back afterwards. My program is more complicated than this sample. All my controls are binded and this BindedList get updated in different area of the program, so it is not simple for me to store and restore selected item. I am sure it is just some property that need to be turned on or off in the control.
You can download my sample program from here: https://www.dropbox.com/s/foc7i5xq6rfli9q/UserControlTests.zip?dl=0
Here is my code
public BindingList<string> ListItems { get; set; } = new BindingList<string> { "item1", "item2", "item3" };
private int Count = 3;
public Demo()
{
InitializeComponent();
drpTest.DataSource = new BindingSource(this, "ListItems"); //raddropdownlist
drpTest2.DataSource = new BindingSource(this, "ListItems"); //combobox
}
private void btnAdd_Click(object sender, EventArgs e)
{
Count++;
ListItems.Add("item" + Count);
}
Hi,
My issue is as follows. I have created a custom theme and applied it to my application. The grid has alternating rows colors (white and gray), a selected row color of light green and a hot tracking color of medium green. Everything works correctly except this one case. When a row is selected and is colored light green, if you move the mouse over that row, the hot tracking color changes from medium green to gray.
It almost looks like there is an alternate hot tracking color. I checked the theme and there are four colors I can set for hot tracking and I set them all to the same medium green to check if that was the issue. It is not. It is also not just showing the regular row color since it is gray for the white rows also.
I have attached two images that show the issue.
Any help with this would be awesome.
Thanks
Ben
Hello,
I was unchecking a cell programmatically and was expecting the same behavior as when I uncheck it through the UI, but it seems that the header checkbox is not updated when you modify a cell's value programmatically:
private
void
RadForm1_Load(
object
sender, EventArgs e)
{
radGridView1.AllowSearchRow =
true
;
radGridView1.TableElement.SearchHighlightColor = Color.Orange;
radGridView1.AutoExpandGroups =
true
;
DataTable dt =
new
DataTable();
dt.Columns.Add(
"test"
,
typeof
(
bool
));
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
dt.Rows.Add(
true
);
radGridView1.DataSource = dt;
((Telerik.WinControls.UI.GridViewCheckBoxColumn)radGridView1.Columns[0]).EnableHeaderCheckBox =
true
;
((Telerik.WinControls.UI.GridViewCheckBoxColumn)radGridView1.Columns[0]).Width = radGridView1.Width - 50;
radGridView1.TableElement.Update(Telerik.WinControls.UI.GridUINotifyAction.Reset); //force header checkbox to check
radGridView1.TableElement.ScrollTo(15, 0);
}
private
void
radButton1_Click(
object
sender, EventArgs e)
{
radGridView1.Rows[0].Cells[0].Value =
false
;
}
I have tried adding radGridView1.TableElement.BeginUpdate() to the beginning & radGridView1.TableElement.EndUpdate() to the end of radButton1_Click, along with radGridView1.TableElement.Update(Telerik.WinControls.UI.GridUINotifyAction.ExpandedChanged) & radGridView1.TableElement.Update(Telerik.WinControls.UI.GridUINotifyAction.Reset) immediately after changing the cell's value, but all of these lines seem to invalidate the RadGridView in one way or another. They cause the search row's buttons to flicker and scroll the RadGridView up to the top.
Is there a solution to this problem that will result in behavior similar to checking/unchecking a cell using the UI?
Thank you!