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

Customized Radgrid filter as rad combo box for autogenerated columns true

3 Answers 82 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Subhashini
Top achievements
Rank 1
Subhashini asked on 27 Mar 2015, 09:09 PM
Hi,

I would like to create filter exactly as shown in the upper grid here - http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/filter-templates/defaultvb.aspx 
I succeeded in creating the rad combo radgrid filters  for autogenerated columns = false, but I have no idea on how to do it for autogenerated columns. There are about 40 columns and I need to apply filters for 3 columns. For the inbuilt radgrid filter, I handle radgrid's columncreated(). But I have no clue on how to replace these with the customized rad combo filter.

I have 40 columns in the table. I used the exact radcombo aspx code in above mentioned demo and made radgrid's datasource as "select * from table", it worked perfectly but the columns are repeated, meaning, col1 and col5 are the columns that has combo filters. When using autogenerated columns, the radgrid is displayed with col1 and col5 and all 40 columns(col1 thru col40).

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 01 Apr 2015, 12:53 PM
Hi Subahshini,

I am sending a sample RadGrid web site to demonstrate how you can achieve the requested functionality. Please run the application and let me know if it helps you.

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Subhashini
Top achievements
Rank 1
answered on 03 Apr 2015, 07:02 PM

Thanks Eyup. 

I made the columns invisible but I will try your sample solution and will let you know the result.

But meanwhile, I noticed the error I posted in this thread "Radgrid Date column swapped century and year values 2015 as 1520" - http://www.telerik.com/forums/radgrid-date-column-swapped-century-and-year-values-2015-as-1520 

0
Eyup
Telerik team
answered on 08 Apr 2015, 08:59 AM
Hi Subhashini,

Please take your time to try the approach. As for the swapping issue, it is not related to your initial request and it will be handled separately in the mentioned second thread.

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Filter
Asked by
Subhashini
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Subhashini
Top achievements
Rank 1
Share this question
or