At you on a forum found an example how to make grouping in a combo which is in date grid.
Applying this method a couple of questions arose.
1) Mouse scrolling does not work.
2) How to make AutoCompleteMode
private void UpdateComboBoxSpeziolist()
{
var commandServer = new CommandServer();
_radSpeziolist.SelectedItemChanged += new EventHandler(lv_SelectedItemChanged);
_radSpeziolist.DisplayMember = "fio";
_radSpeziolist.ValueMember = "fio";
_radSpeziolist.DataSource = commandServer.GetDataGridSet(@"select *
from spezialistSurvey()").Tables[0];
_radSpeziolist.EnableGrouping = true;
_radSpeziolist.ShowGroups = true;
GroupDescriptor group = new GroupDescriptor(new SortDescriptor[] { new SortDescriptor("cat", ListSortDirection.Descending) });
_radSpeziolist.GroupDescriptors.Add(group);
_radSpeziolist.AllowEdit = true;
_radSpeziolist.CollapseAll();
}
private void radGridView2_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
if(e.ActiveEditor is RadDropDownListEditor)
{
RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor;
RadDropDownListEditorElement element = editor.EditorElement as RadDropDownListEditorElement;
element.DropDownSizingMode = SizingMode.UpDownAndRightBottom;
element.Popup.Controls.Add(_radSpeziolist);
element.DropDownMinSize = new Size(300, 300);
element.PopupOpening += new CancelEventHandler(element_PopupOpening);
}
}
void element_PopupOpening(object sender, CancelEventArgs e)
{
_radSpeziolist.Size = ((RadDropDownListEditorElement)sender).Popup.Size;
_radSpeziolist.AutoScroll = true;
}
private void lv_SelectedItemChanged(object sender, EventArgs e)
{
ListViewItemEventArgs args = (ListViewItemEventArgs)e;
if (args.Item != null && radGridViewSurvey.CurrentCell != null)
{
this.radGridViewSurvey.CurrentCell.Value = args.Item.Value;
((DropDownPopupForm)args.ListViewElement.ElementTree.Control.Parent).ClosePopup(RadPopupCloseReason.Mouse);
radGridViewSurvey.CancelEdit();
}
}
I can't seem to find any working key events for RadDropDownList.DropDownListElement.AutoCompleteSuggest.
What's currently happening:
A user navigates to the desired auto complete suggestion and presses enter on it. They then have to press enter again(to trigger the RadDropDownList.KeyDown event).
What I'd like to happen
A user navigates to the desired auto complete suggestion and presses enter on it. I'm looking for what this event is.
Thanks,
Brandon
How to choose the vertical range of the chart?
Hello,
Is there a way to disble the scroll when using the mouse wheel?
Regards,
Alberto
For
Each
ct
In
ChecklistTemplate
newChecklistTypeNode =
New
RadTreeNode(ct.ChecklistTypeName,
False
)
newChecklistTypeNode.Tag = ct.CheckistTypeID
newChecklistTypeNode.LoadedOnDemand =
True
If
(
Not
tvChecklists.Nodes.Contains(newChecklistTypeNode))
Then
tvChecklists.Nodes.Add(newChecklistTypeNode)
End
If
Next
Hello,
I am trying to create an image reviewer where an image is displayed and reviewed. Right now the image is displayed in a radDiagram as a radDiagramShape.
What I am trying to do is create a feature where a box can be moved over the original image and the portion of the image that the box is over be displayed in a separate shape object. That way the user can have a "zoomed" look over the original image without needing to zoom and pan over the original image.
Can this be done?
Thanks for any suggestions!