hey - i have a custom filter for combox in a telerik filter that i'd like to be typeable.
it's built in to the other radComboboxes:
can you suggest anything that i could use to make this possible - below is part of that initialize of the class:
i tried using [comboBox.EnableLoadOnDemand = true;] - but i dont know how to refernce the Object DataSouce to pick what's being typed in the filter ComboBox.
mark up is included:
THE CLASS:
it's built in to the other radComboboxes:
can you suggest anything that i could use to make this possible - below is part of that initialize of the class:
i tried using [comboBox.EnableLoadOnDemand = true;] - but i dont know how to refernce the Object DataSouce to pick what's being typed in the filter ComboBox.
mark up is included:
<telerik:RadFilter ID="InventoriesRadFilter" runat="server" Skin="WebBlue" ShowApplyButton="true"
OnPreRender="InventoriesRadFilter_PreRender" OnApplyExpressions="InventoriesRadFilter_Apply"
ApplyButtonText="Filter Inventory" OnFieldEditorCreating="RadFilter_FieldEditorCreating" OnItemCommand="InventoriesRadFilter_ItemCommand">
<FieldEditors>
<goldcustom:RadFilterComboBoxEditor DataSourceID="GetCustInvODS" FieldName="OWNER_COMPANYNAME" DisplayName="Owner Name" ComboBoxSkin="WebBlue" ComboBoxWidth="350px"
DataType="System.String" />
</FieldEditors>
</telerik:RadFilter>
THE ODS [need somehow to get what's typed in the RadFilterComboBoxEditor above
public DataTable getCustForInventory()
{
DataTable dt = new DataTable();
int[] myLoc = DivisionIDArray;
using (InventoryBC ibc = new InventoryBC())
{
dt = ibc.GetCustomerForInventory(myLoc,
"" );
return dt;
}
}
THE CLASS:
public override void InitializeEditor(Control container)
{
comboBox =
new RadComboBox();
comboBox.ID =
"ComboBoxEditor" + FieldName;
comboBox.DataSourceID = DataSourceID;
comboBox.OnClientSelectedIndexChanged =
"clientSelectedIndexChanged";//changes focus to the default button of the page
comboBox.OnClientLoad =
"clientSelectedIndexChanged";//changes focus to the default button of the page so, 1st item in the list can be selected
comboBox.DataTextField = (
String.IsNullOrEmpty(DataTextField)) ? FieldName : DataTextField;
comboBox.DataValueField = (
String.IsNullOrEmpty(DataValueField)) ? FieldName : DataValueField;
comboBox.Skin = ComboBoxSkin;
comboBox.Width = ComboBoxWidth;
container.Controls.Add(comboBox);
}