Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
Hi,
I would like to call a JavaScript function whenever an item is checked/unchecked in the excel-like filter list.
Please assist with an example of how this could be achieved.
Thank you,
Jas
protected
void
RadGrid1_FilterCheckListItemsRequested(
object
sender, GridFilterCheckListItemsRequestedEventArgs e)
{
e.ListBox.DataBind();
foreach
(RadListBoxItem item
in
e.ListBox.Items)
item.Attributes.Add(
"onclick"
,
"filterListBoxItemClicked(this,event);"
);
}
function
filterListBoxItemClicked(el, event) {
if
(event.target && event.target.type ==
"checkbox"
&& event.target.checked) {
alert($(el).text());