We are using Infragistics4.Web.v11.1, Version=11.1.20111.1006
For filtering , we are using custom filtering on server side. But one of the columns is Template column with Links inside it. I am not able to get the default filtering pop-up open for this column and the filtering icon does not come up
How to make the filtering icon appear on filtering row appear?
An early reply would be appreciated. Thanks a lot.
any idea ?
Hi meghanakewalramani,
Thank you for posting in the community.
Filtering is currently not supported for Templated columns in WebDataGrid. If you want to have a column with links in the cell fields and be able to filter it, I would suggest that you use an UnboundField column and handle the InitializeRow event in order to set the value of the cell to be the html link code. For instance:
e.Row.Items.FindItemByKey("UnboundField_0").Value = "<a href=\"somePage.aspx\"> Some Page</a>";
Note that in this case the HtmlEncode property of the UnboundField needs to be set to false.
Attached is a sample demonstrating this scenario.
Please let me know if this helps.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://www.infragistics.com/support
Please feel free to contact me if you need further assistance with this matter.
Hi ,
what i have in thegrid's template column is link button because, i wantto do osm eopertaion when user clicks on this link and then only naigate the user to a differnt link.
How do i do that using "Unbound field" ?
Thank you for your reply.
After looking further into this scenario I have developed a sample to illustrate how filtering can be achieved on an unbound column which has an html link injected into it. You can keep the text of each row's link in a hidden BoundDataField (i.e. the link data has to come from the datasource) and upon filtering on the UnboundField (which has html code as its value), you can change the filtering parameters on the client to filter on the hidden column containing the link's text.
As for executing code before the page is navigated, you should be able to subscribe events to the links in the UnboundColumn in order to execute your required code.
Please note however that this is a custom implementation. To expand on my previous post, the reason that filtering is not supported with templated columns is that the columns may contain multiple completely different controls and it is not possible to determine what to base the filtering on.
Do not hesitate to contact me with any questions.