or
<
telerik:RadMenu
ID
=
"RadMenu1"
runat
=
"server"
DataSourceID
=
"RadSiteMapDataSource1"
> </
telerik:RadMenu
>
<
telerik:RadSiteMapDataSource
ID
=
"RadSiteMapDataSource1"
runat
=
"server"
ShowStartingNode
=
"false"
/>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
siteMap
xmlns
=
"http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"
>
<
siteMapNode
title
=
"Home"
url
=
"Default.aspx"
>
<
siteMapNode
title
=
"Base info"
url
=
""
>
<
siteMapNode
title
=
"provinces"
url
=
"~/AppUsers/addProvince.aspx"
/>
<
siteMapNode
title
=
"Cities"
url
=
"~/AppUsers/addCity.aspx"
/>
<
siteMapNode
title
=
"Sender"
url
=
"~/AppUsers/addFactory.aspx"
/>
<
siteMapNode
title
=
"NVP"
url
=
"~/AppUsers/addRepresentation.aspx"
/>
</
siteMapNode
>
function
onAjaxRequestStartHandler(sender, args) {
if
(args.get_eventTarget().indexOf(
"RadToolBarReport"
) >= 0)
if
(myButtonExport is clicked) {
args.set_enableAjax(
false
);
}
}
.RadGrid_Resonance .rgFilterActive, |
.RadGrid_Resonance .rgFilterActive:hover |
{ |
background-color: #ffffB0; |
} |
Firstly, with this it doesn't apply the style for the filters that are active, so to workaround in the item created event, I did the following:
foreach (GridColumn column in grid.Columns) |
{ |
if (((GridTemplateColumn)column).AllowFiltering == true) |
{ |
if (column.CurrentFilterFunction != GridKnownFunction.NoFilter) |
{ |
(filteringItem[column.UniqueName].Controls[1] as Button).CssClass = "rgFilter rgFilterActive"; |
} |
else |
{ |
if (filteringItem[column.UniqueName].Controls.Count > 1) |
{ |
(filteringItem[column.UniqueName].Controls[1] as Button).CssClass = "rgFilter"; |
} |
} |
} |
} |
With this everything works as expected, but when we click on the filter image and click outside, it loses the active styling.
Kindly note although this is a small issue, but needs to be resolved. Please let me know should I follow any other way to implement this, or is this an issue grid styling itself.
Thanks,
Tilak