I am following this example to apply the filtering capability in my RadGrid: http://www.telerik.com/forums/replacing-filtertemplate-on-autogenerated-column#epZqFpXIkk6TVsIFktTiug
Currently my combo.DataSource calls the stored procedure but this is very slow. Is there a way I can populate the RadComboBox from the RadGrid instead of calling the same stored proc again?
This is my RadComboBoxControl_DataBinding
Currently my combo.DataSource calls the stored procedure but this is very slow. Is there a way I can populate the RadComboBox from the RadGrid instead of calling the same stored proc again?
This is my RadComboBoxControl_DataBinding
public void RadComboBoxControl_DataBinding(object sender, EventArgs e)
{
RadComboBox combo = (RadComboBox)sender;
GridFilteringItem container = (GridFilteringItem)combo.NamingContainer;
combo.DataTextField = colname;
combo.DataValueField = colname;
combo.EnableAutomaticLoadOnDemand = true;
combo.AllowCustomText = true;
combo.AppendDataBoundItems = true;
combo.DataSource = new StoredProc().ExecuteTypedDataTable().SelectDistinct(colname);
combo.DataBind();
combo.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem { Text = "All", Value = "All" });
combo.SelectedValue = selectedValue;
}