(function(a){var b=a.telerik;var d=3;var c=0;b.scripts.push("telerik.grid.grouping.js");b.grouping={};function e(f,g){return f.find("div").filter(function(){var h=a(this);if(h.children(".t-link").contents().filter(function(){if(a(this).text()===g){return a(this)}}).length){return a(this)}})}b.grouping.initialize=function(j){a.extend(j,b.grouping.implementation);j.$groupDropCue=a('
');j.$groupHeader=a("> .t-grouping-header",j.element);function k(){var m=a.map(j.$groupHeader.find(".t-group-indicator"),function(o){var n=a(o);var p=n.offset().left;var q=n.outerWidth();return{left:p,right:p+q,width:q,$group:n}});return{first:m[0],all:m,last:m[m.length-1]}}function h(p){var z=p.$cue.text(),y=b.eventTarget(p),v=b.touchLocation(p);if(!a.contains(j.element,y)||!a(y).closest(".t-grouping-header").length||(j.groupFromTitle(z)&&p.$draggable.closest(".t-header").length)){j.$groupDropCue.remove();return}var m=a(j.element),n=m.find("> .t-grid-toolbar"),A=n.outerHeight()+d,x=k(),r=m.closest(".t-rtl").length;if(!x.all.length){var t=r?n.width()-c:c;j.$groupDropCue.css({top:A,left:t}).appendTo(j.$groupHeader);return}var q=x.first;var s=x.last;var u=parseInt(q.$group.css("marginLeft"));var w=parseInt(q.$group.css("marginRight"));var o=a.grep(x.all,function(B){return v.x>=B.left-u-w&&v.x<=B.right})[0];if(!o&&q){if(!r&&v.x');if(n){var w=!n.data?t:i(n.data,t);r.cat(n.groupHeader(a.extend({Title:q.title,Key:w},j._mapAggregates(o.aggregates[n.member]))))}else{r.cat(q.title+": "+t)}r.cat("