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

Filtering on GridButton column

5 Answers 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ananthalvan
Top achievements
Rank 1
Ananthalvan asked on 19 Apr 2012, 05:05 PM
Hi,
  In my radgrid, I need to use a GridButton column with button type as LinkButton. I enabled filtering with help of http://www.telerik.com/community/code-library/aspnet-ajax/grid/filtering-and-sorting-for-gridbuttoncolumn.aspx. This works fine with the help of the filter icon. My requirement is to hide the filter icon and have the default filtering set and apply filter.

Grid definition:
<custom:GridButtonColumnWithFilteringSorting HeaderText="" UniqueName="LastName"  DataTextFormatString="{0}" 
SortExpression="LastName" DataTextField="LastName" DataField="LastName" ItemStyle-CssClass="myLink"
CommandName="DisplayMember" HeaderButtonType="LinkButton" ButtonType="LinkButton"
CurrentFilterFunction
="StartsWith"  AutoPostBackOnFilter="true"  ShowFilterIcon="false"  />

When I type a filter text and hit ENTER key, I don't see postback happening thereby triggering the filter. Am I missing something here? How do I trigger filter from here?

Thanks in advance.
~/Ananth

5 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 24 Apr 2012, 01:07 PM
Hi,

I see that you are using the CurrentFilterFunction and AutoPostBack properties of the button column. Have you implemented them?

Additionally, could you post your whole GridButtonColumnWithFilteringSorting implementation and RadGrid declaration along with the respective event handlers?

Thus all the people who want to help you will have better understanding of your project.

Greetings,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Rajan
Top achievements
Rank 1
answered on 07 Jun 2015, 04:33 AM
Were you able to achieve the functionality?
0
Rajan
Top achievements
Rank 1
answered on 14 Jun 2015, 05:02 AM
Can someone reply back with the answer?
0
Rajan
Top achievements
Rank 1
answered on 16 Jun 2015, 12:46 PM
Andrey.... Can you please post the answer ?
0
Eyup
Telerik team
answered on 18 Jun 2015, 07:53 AM
Hello Rajan,

There are several ways you can achieve this requirement. I am sending a sample RadGrid web site to demonstrate various way of declaring link columns.

Hope this helps. If you have different requirements or further instructions, please elaborate on your specific scenario and send us sample screenshots or video demonstrating the desired behavior.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Ananthalvan
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Rajan
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or