or
Ajax 2010.3.1317.45
as mentioned in this article,
http://www.telerik.com/help/aspnet-ajax/grdperformcalculationsingroupheader.html
I would like to have calculation (only group "count") on Any column being grouped. is there any way to accomplish this client-side, the reason for asking is that i use
GroupLoadMode="Client"
In stock - <span style='color: #ff0000;'>[[stock]]</span> itemstooltip.show();tooltip.set_contentElement(inStockTextCached);var content = tooltip.get_content().replace(""[[stock]]"", fields[" + QoHDisplay.QuantityOrdinal + @"]);tooltip.set_content(content);tooltip.hide();tooltip.show();tooltip.set_contentElement(inStockTextCached);inStockTextCached" to the label that holds the template text. I then set the tooltip's content element to be the same.set_contentElement(inStockTextCached) works fine but in InternetExplorer it does not work.var content = tooltip.get_content().replace(""[[stock]]"", fields[" + StockOrdinal + @"]);tooltip.set_content(content);tooltip.hide();<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <div class="textcontent"> <h1>Exterior Pictures</h1> <div> <telerik:RadRotator ID="RadRotator1" runat="server" Height="363px" Style="margin-left: 60px" ItemHeight="363px" ItemWidth="550px" RotatorType="SlideShowButtons" Width="590px" Skin="Default"> <SlideShowAnimation Duration="3000" Type="Fade" /> <ItemTemplate> <asp:Image ID="Image1" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ImageUrl") %>'/> </ItemTemplate> </telerik:RadRotator> </div> </div> </asp:Content>
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest If e.Argument = "Rebind" Then rgd_ABIUser.MasterTableView.SortExpressions.Clear() rgd_ABIUser.MasterTableView.GroupByExpressions.Clear() rgd_ABIUser.Rebind() ElseIf e.Argument = "RebindAndNavigate" Then rgd_ABIUser.MasterTableView.SortExpressions.Clear() rgd_ABIUser.MasterTableView.GroupByExpressions.Clear() rgd_ABIUser.MasterTableView.CurrentPageIndex = rgd_ABIUser.MasterTableView.PageCount - 1 rgd_ABIUser.Rebind() End IfEnd SubPrivate Function GetUser() As DataTable Dim DatabaseName As String = rcb_Database.SelectedValue Dim SC As String = rcb_Site.SelectedValue Dim connectionString = New SqlConnection("server=DO-IT-AB\MSSQLAB;database=AeriesAdmin;UID=XXXX;PWD=XXXX;") Dim command = New SqlCommand("aa_abi_users_by_site", connectionString) command.CommandType = CommandType.StoredProcedure command.Parameters.Add("@DBName", SqlDbType.VarChar).Value = DatabaseName command.Parameters.Add("@SC", SqlDbType.VarChar).Value = SC command.Connection.Open() Dim myDataAdapter As New SqlDataAdapter(command) Dim myDataSet As New DataSet Dim dtData As New DataTable myDataAdapter.Fill(myDataSet) Return myDataSet.Tables(0) command.Connection.Close() End FunctionProtected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest If e.Argument = "Rebind" Then rgd_ABIUser.MasterTableView.SortExpressions.Clear() rgd_ABIUser.MasterTableView.GroupByExpressions.Clear() rgd_ABIUser.DataSource = GetUser() rgd_ABIUser.Rebind() ElseIf e.Argument = "RebindAndNavigate" Then rgd_ABIUser.MasterTableView.SortExpressions.Clear() rgd_ABIUser.MasterTableView.GroupByExpressions.Clear() rgd_ABIUser.MasterTableView.CurrentPageIndex = rgd_ABIUser.MasterTableView.PageCount - 1 rgd_ABIUser.DataSource = GetUser() rgd_ABIUser.Rebind() End IfEnd Sub<FormTemplate> <asp:Panel ID="pnlEditPanel" runat="server" DefaultButton="btnUpdate" CssClass="edit_panel" TabIndex="100"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td>Group:</td> <td> <asp:ObjectDataSource ID="odsGroupList" runat="server" SelectMethod="dsGroupList" TypeName="NUFOLibrary.CMembers"> <SelectParameters> <asp:SessionParameter Name="sUserID" SessionField="UserID" Type="String" /> <asp:Parameter Name="sPublic" DefaultValue="0" Type="String" /> </SelectParameters> </asp:ObjectDataSource> <asp:DropDownList ID="lstGroups" runat="server" DataSourceID="odsGroupList" DataTextField="Group" DataValueField="ID" AutoPostBack="True" AppendDataBoundItems="true" OnSelectedIndexChanged="lstGroups_SelectedIndexChanged" SelectedValue='<%# Bind("Group_ID") %>'> <asp:ListItem Value="0" Text="(Select One)" /> </asp:DropDownList> </td> </tr> <tr> <td>Position:</td> <td> <asp:ObjectDataSource ID="odsPositionList" runat="server" SelectMethod="dsPositionList" TypeName="NUFOLibrary.CMembers"> <SelectParameters> <asp:SessionParameter Name="sUserID" SessionField="UserID" Type="String" /> <asp:ControlParameter Name="sGroupID" ControlID="lstGroups" Type="String" /> </SelectParameters> </asp:ObjectDataSource> <asp:DropDownList ID="lstPositions" runat="server" DataSourceID="odsPositionList" DataTextField="Position" DataValueField="ID" SelectedValue='<%# Bind("Position_ID") %>'> <asp:ListItem Value="0" Text="(Select One)" /> </asp:DropDownList> </td> </tr>Protected Sub gvMembers_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles gvMembers.ItemCommand If (e.CommandName = RadGrid.InitInsertCommandName) Then e.Canceled = True Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary() newValues("Group_ID") = "0" newValues("Facility_ID") = "0" newValues("Position_ID") = "0" e.Item.OwnerTableView.InsertItem(newValues) End If End Sub Private Sub gvMembers_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gvMembers.ItemDataBound If e.Item.DataItem Is Nothing Then Exit Sub If "Membership".Equals(e.Item.OwnerTableView.Name) Then If (TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode) Then Dim editFormItem As GridEditFormItem = CType(e.Item, GridEditFormItem) DirectCast(editFormItem.FindControl("lstGroups"), DropDownList).Enabled = False DirectCast(editFormItem.FindControl("lstFacilities"), DropDownList).Enabled = False DirectCast(editFormItem.FindControl("lstPositions"), DropDownList).Enabled = False DirectCast(editFormItem.FindControl("rdpStartDate"), RadDatePicker).Enabled = False DirectCast(editFormItem.FindControl("rdpEndDate"), RadDatePicker).Enabled = True End If If (TypeOf e.Item Is GridEditFormInsertItem) AndAlso (e.Item.OwnerTableView.IsItemInserted) Then Dim editFormItem As GridEditFormItem = CType(e.Item, GridEditFormItem) DirectCast(editFormItem.FindControl("lstGroups"), DropDownList).Enabled = True DirectCast(editFormItem.FindControl("lstFacilities"), DropDownList).Enabled = True DirectCast(editFormItem.FindControl("lstPositions"), DropDownList).Enabled = True DirectCast(editFormItem.FindControl("rdpStartDate"), RadDatePicker).Enabled = True DirectCast(editFormItem.FindControl("rdpEndDate"), RadDatePicker).Enabled = True End If End If End Sub Protected Sub lstGroups_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Dim lstGroups As DropDownList = DirectCast(sender, DropDownList) Dim editItem As GridEditFormItem = DirectCast(lstGroups.NamingContainer, GridEditFormItem) Dim lstFacilities As DropDownList = DirectCast(editItem.FindControl("lstFacilities"), DropDownList) Dim lstPositions As DropDownList = DirectCast(editItem.FindControl("lstPositions"), DropDownList) Dim rdpStartDate As RadDatePicker = DirectCast(editItem.FindControl("rdpStartDate"), RadDatePicker) Dim rdpEndDate As RadDatePicker = DirectCast(editItem.FindControl("rdpEndDate"), RadDatePicker) 'Dim odsPositionList = New ObjectDataSource 'odsPositionList.ID = "odsPositionList" 'odsPositionList.SelectMethod = "dsPositionList" 'odsPositionList.TypeName = "NUFOLibrary.CMembers" 'odsPositionList.SelectParameters.Add(New Parameter("sUserID", TypeCode.String, HttpContext.Current.Session("UserID").ToString)) 'odsPositionList.SelectParameters.Add(New Parameter("sGroupID", TypeCode.String, lstGroups.SelectedValue)) 'lstPositions.DataSource = odsPositionList 'lstPositions.DataBind() If lstGroups.SelectedValue = "3" Then lstFacilities.Enabled = False Else lstFacilities.Enabled = True End If If lstGroups.SelectedValue = "4" Then rdpStartDate.DbSelectedDate = "" Else rdpStartDate.DbSelectedDate = Now().ToString End If rdpEndDate.DbSelectedDate = "" End Sub