<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="QuestionResponseTableView.ascx.cs" Inherits="CEB.CLC.Reporting.GenView.UserControls.QuestionResponseTableView" %> <%@ Register Src="~/UserControls/ExportData.ascx" TagName="ExportData" TagPrefix="ucl" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <div id="expDiv" runat="server" class="text-right z-index-0"> <ucl:ExportData EnableViewState="true" ID="edQuestionResponse" runat="server" /> </div> <div class="clear"> </div> <div id="dvOuter" runat="server"> <div id="dvContent" runat="server"> <asp:Panel ID="pnlContent" runat="server" CssClass="graphviewposition"> <div class="tablelink" id="dvGrid" runat="server"> <telerik:RadGrid AlternatingItemStyle-CssClass="even" ID="radGridQuestion" OnItemCreated="radGridQuestion_ItemCreated" OnColumnCreated="radGridQuestion_ColumnCreated" OnItemDataBound="radGridQuestion_ItemDataBound" runat="server" AutoGenerateColumns="true" GridLines="none"> <MasterTableView GroupsDefaultExpanded="true"> <GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> </SelectFields> <GroupByFields> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> </MasterTableView> <ClientSettings> <Resizing ResizeGridOnColumnResize="false" AllowColumnResize="true" /> </ClientSettings> </telerik:RadGrid> </div> </asp:Panel> <div class="clear"> </div> </div> </div> public void Initialize(IReportDataView inputData, ReportDTO report, PageInfo pageInfo) { if (!base.DisplayExportHeader) { edQuestionResponse.Visible = false; } //setting GroupBy field name from Resource file string groupByFieldName = base.GetResxString("Col_ItemText", ComparisonViewRESX.Col_ItemText).Replace(" ", ""); if (this.radGridQuestion.MasterTableView.GroupByExpressions[0].SelectFields.Count == 0) { this.radGridQuestion.MasterTableView.GroupByExpressions[0].SelectFields.Add(new GridGroupByField() { FieldName = groupByFieldName }); this.radGridQuestion.MasterTableView.GroupByExpressions[0].GroupByFields.Add(new GridGroupByField() { FieldName = groupByFieldName, SortOrder = GridSortOrder.Ascending }); } DataTable dtFrequencyData = inputData.GetView(); radGridQuestion.DataSource = dtFrequencyData.DefaultView; radGridQuestion.DataBind(); if (EnableHyperLink && report.ReportParameters.QuestionResponseViewType != CEB.CLC.Reporting.Core.Enum.ViewType.DoNotShow) { dvContent.Attributes.Add("onmouseover", "this.style.cursor='pointer'"); dvContent.Attributes.Add("onClick", "javascript:TransferTablePath(" + DataViewId + " )"); } edQuestionResponse.TableView = dtFrequencyData; edQuestionResponse.ExportDataViewStyle = DataViewStyleEnum.QuestionResponse; ViewState["FrequencyData"] = dtFrequencyData; } protected void radGridQuestion_ItemDataBound(object sender, GridItemEventArgs e) { foreach (GridColumn column in e.Item.OwnerTableView.RenderColumns) { if (column.UniqueName == "ItemId") { column.Visible = false; } } if (e.Item is GridDataItem) { GridDataItem dataItem = e.Item as GridDataItem; dataItem[base.GetResxString("Col_ItemText", ComparisonViewRESX.Col_ItemText)].Text = String.Empty; } else if (e.Item is GridHeaderItem) { RadGrid objGridView = sender as RadGrid; DataView objDataView = objGridView.DataSource as DataView; DataTable objDataTable = objDataView.Table; foreach (DataColumn col in objDataTable.Columns) { int index = objDataTable.Columns.IndexOf(col); if (e.Item.Cells[index + 3].HasControls()) { LiteralControl columnName = (LiteralControl)e.Item.Cells[index + 3].Controls[0]; columnName.Text = col.Caption; } } } else if (e.Item is GridGroupHeaderItem) { GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item; DataRowView groupDataRow = (DataRowView)e.Item.DataItem; item.DataCell.Text = groupDataRow[base.GetResxString("Col_ItemText", ComparisonViewRESX.Col_ItemText)].ToString(); } } protected void radGridQuestion_ColumnCreated(object sender, GridColumnCreatedEventArgs e) { if (e.Column is GridGroupSplitterColumn) { e.Column.HeaderStyle.Width = Unit.Pixel(1); e.Column.ItemStyle.Width = Unit.Pixel(1); e.Column.Resizable = false; } } protected void radGridQuestion_ItemCreated(object sender, GridItemEventArgs e) { if (e.Item is GridGroupHeaderItem) { (e.Item as GridGroupHeaderItem).Cells[0].Controls.Clear(); } }Hello Telerik Team, I'm using demo as example( the link is: http://demos.telerik.com/aspnet-ajax/orgchart/examples/applicationscenarios/integrationwithradtooltip/defaultvb.aspx?product=tooltip) to use RadToolTipManager. It display tooltip works fine. but not show small arrow pointing. I set ShowCallout="true" in below code: <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Skin="Default" ShowCallout="true" Position="BottomRight" OffsetX="16" OffsetY="16" EnableShadow="false" Width="195" Height="135" /> It also not show UpdateProgress imag as Demo showing as attached image. We use telerik 2012.3... version dll. I use the same styles file as demo used what should I do it can display as demo shows that small arrow pointer and updateProgree image(see attached screen) Thanks.<style type="text/css"> .rwCorner .rwTopLeft, .rwTitlebar, .rwCorner .rwTopRight, .rwIcon, .rwTopLeft, .rwTopRight, .rwFooterLeft, .rwFooterRight, .rwFooterCenter, .rwBodyLeft, .rwBodyRight, .rwTitlebar, .rwTopResize, .rwStatusbar, .rwStatusbar .rwLoading { display: none !important; margin: 0 !important; padding: 0 !important; }</style><telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableEmbeddedSkins="false" showcontentduringload="false" Modal="false" VisibleStatusbar="false" VisibleTitlebar="false" AutoSize="true"> <Windows> <telerik:RadWindow id="winInfo" runat="server" OffsetElementID="menu" Left="0" Top="0"> <ContentTemplate> <div style="width: 450px; background-color: #2F385B;"> <!-- Stuff here --> </div> </ContentTemplate> </telerik:RadWindow> </Windows></telerik:RadWindowManager><telerik:RadListBox runat="server" ID="lstLeft" Height="200px" Width="200px" AllowTransfer="true" TransferToID="lstRight"/><telerik:RadListBox runat="server" ID="lstRight" Height="200px" Width="200px" />lstLeft.Transfer(listItem , lstLeft, lstRight);lstRight.Transfer(listItem, lstRight, lstLeft);Hi all,
I have a template column in my grid. The text of this column is derived by feeding the auditor ID (which is part of the table which is the datasource of the grid) through a function in my code. This gives me the name of the auditor. The template column looks like this:
<trt:GridTemplateColumn HeaderText="AuditorId" FooterText ="Total Hours" > <HeaderTemplate> <asp:LinkButton ID="btnAuditorId" Text="AuditorId" ToolTip="Sort by Auditor ID" CommandName='Sort' CommandArgument='AudrId' runat="server"> </asp:LinkButton> </HeaderTemplate> <ItemTemplate> <asp:Label ID="lblAudDescr" runat="server" Text='<%# ctl.GetAuditorDescr( DataBinder.Eval(Container, "DataItem.AudrId"))%>' /> </ItemTemplate></trt:GridTemplateColumn>This works beautifully to fill my grid, but now I want to use the EnableHeaderContextMenu functionality. Works well for all the other columns (which are bound columns) but when I try to use it on this column I get an error stating "Expression cannot be null or empty".
I tried setting the groupByExpression in the <trt:GridTemplateColumn> to "ctl.GetAuditorDescr(AudrId)" but then I get an error stating "Invalid group by expression: 'Group By' clause missing".
How can I feed the AudrId, which is part of the datasource, through my GetAuditorDescr function and then group by those results?
<telerik:RadLinearGauge ID="rGaugeHorizontal" runat="server" Transitions="True" Width="450" Height="140" Appearance-BackgroundColor="#EDEDED"> <Pointer Value="5" Shape="BarIndicator" Color="Black" Size="15"> </Pointer> <Scale Min="0" Max="100" Vertical="false" Mirror="True" MajorTicks-Size="25" MinorTicks-Size="20"> <Ranges> <telerik:GaugeRange From="0" To="20" Color="red" /> <telerik:GaugeRange From="20" To="40" Color="blue" /> <telerik:GaugeRange From="40" To="60" Color="green" /> </Ranges> </Scale> </telerik:RadLinearGauge>