Hi,
Do you offer a control that is ideally TextBox -based that has AutoComplete functionality, much like "out-of-box" TextBox, but with additional support for "contains" logic, in addition to "starting with" logic?
For example, when typing in "p", both "Pear" and "Apple" would be suggested, as both contain "p".
Or optionally, it could be a ComboBox - based control, but allowing free-form entry by user without having to add entered value to Items collection.
Is my current understanding correct that you guys currently don't have this as TextBox-based, according to: http://www.telerik.com/community/forums/winforms/editors/intellisense-autocomplete-in-textbox-like-in-outlook.aspx ? And that your TextBox only shows one suggestion, even though there could be multiple options for autocomplete?
Thanks!
Random r =
new
Random ();
GridServer.Rows.Add (
"1"
);
for
(
int
i= 1; i <= 16; i++)
{
DataTable table =
new
DataTable ();
table.Columns.Add (
"DateTime"
,
typeof
(DateTime));
table.Columns.Add (
"Value"
,
typeof
(
double
));
table.Rows.Add (DateTime.Now, r.Next (100));
table.Rows.Add (DateTime.Now.AddSeconds (30), r.Next (100));
table.Rows.Add (DateTime.Now.AddSeconds (60), r.Next (100));
table.Rows.Add (DateTime.Now.AddSeconds (90), r.Next (100));
table.Rows.Add (DateTime.Now.AddSeconds (120), r.Next (100));
table.Rows.Add (DateTime.Now.AddSeconds (150), r.Next (100));
GridServer.Rows[0].Cells[i].Value = table;
}
GridServer.Rows[0].Cells[i].Value
is objectpublic
class
GridViewCellInfo : IEquatable<GridViewCellInfo>
{
// Summary:
// Gets or sets the value.
public
object
Value {
get
;
set
; }
//
}
GridServer.Rows[0].Cells[i].Value
should get the reference of my DataTable, but the actually value of Value is a empty string.private void BtnPrint(object sender, EventArgs e)
{
GridPrintStyle style = new GridPrintStyle();
style.FitWidthMode = PrintFitWidthMode.FitPageWidth;
style.PrintHeaderOnEachPage = true;
this.radGridView1.PrintStyle = style;
this.radGridView1.PrintPreview();
}
//On MeMultiColumnCombobox
protected
override
RadMultiColumnComboBoxElement CreateMultiColumnComboBoxElement()
{
return
new
MeMultiColumnComboBoxElement(
this
.Name,
this
);
}
// on GridView
protected
override
void
OnEditorRequired(
object
sender, EditorRequiredEventArgs e)
{
if
(
this
.CurrentColumn
is
MeGridViewMultiComboBoxColumn)
{
var column =
this
.CurrentColumn
as
MeGridViewMultiComboBoxColumn;
MeMultiColumnComboBox cbx= CreateDataComboBox(
"Countries"
);
e.Editor = cbx.MeMultiColumnComboBoxElement;
}
}
protected
override
void
OnCellValidating(
object
sender, CellValidatingEventArgs e)
{
//if value not in list of countries ?
var cbxCol = e.Column
as
MeGridViewMultiComboBoxColumn;
var detectError = ComboBoxValidating(text, e);
if
(detectError)
{
e.Cancel =
true
;
base
.OnCellValidating(sender,e);
ShowValidateError(
);
return
;
}
}
ThemeResolutionService.ApplicationThemeName = "TelerikMetro";That sounded like the right thing to do after googling a bit - didn't work either from Program.cs or main.cs (the form with the grid)