This is a migrated thread and some comments may be shown as answers.

RAD FILTER WITHOUT DATASOURCE,,

1 Answer 148 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
KIRAN RAJ
Top achievements
Rank 1
KIRAN RAJ asked on 20 Sep 2011, 01:21 PM

Hi, friends i am new to Telerik...Need Help..

I am using  Below code to populate data into radgrid...

can i use rad filter without datasource id to filter grid..and  i want the  columns of  sql query into rad filter through datset ds Only .Any code..?.

protected void Page_Load(object sender, EventArgs e)
   {
 
       SqlConnection con = new SqlConnection(conStr);
       con.Open();
       SqlDataAdapter da = new SqlDataAdapter("SELECT NAME,STATUS_ID,DATE, FROM TBL_TABLE", con);
 
       DataSet ds = new DataSet();
       da.Fill(ds);
       RadGrid1.DataSource = ds;
 
       RadGrid1.DataBind();
       con.Close();
 
   }
 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Sep 2011, 08:07 AM
Hello Kiran,

You can use RadFilter to filter RadGrid control. For the purpose few steps must be taken:

  • RadFilter FilterContainerID property must point to RadGrid instance.
  • AllowFilteringByColumn must be set to true to enable RadGrid filtering
  • [optional]IsFilterItemExpanded set to false to hide RadGrid filtering item
Also take a look into the following help document which explains more on filtering an RadGrid DataBinding.

RadGrid Filtering with RadFilter.

http://www.telerik.com/help/aspnet-ajax/grid-overview.html(DataBinding part)

Thanks,
Shinu.
Tags
Ajax
Asked by
KIRAN RAJ
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or