Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Filter > filtertemplate

Not answered filtertemplate

Feed from this thread
  • Posted on Dec 8, 2011 (permalink)

    ?How to create filter template in radgrud dynamically

    Reply

  • Posted on Dec 8, 2011 (permalink)

    Hello Tina,

    Try the following code.
    C#:
    protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
     if (e.Item is GridFilteringItem)
     {
       GridFilteringItem item = (GridFilteringItem)e.Item;
       TableCell cell = (TableCell)item["Country"];
       RadComboBox combo = new RadComboBox();
       combo.DataTextField = "Name";
       combo.DataValueField = "Name";
       combo.DataSourceID = "SqlDataSource1";
       cell.Controls.Add(combo);
     }
    }

    -Shinu.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Filter > filtertemplate
Related resources for "filtertemplate"

ASP.NET Filter Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]