Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views
There's an API typo on the Grid Footers demo page: http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/grouping/group-footers/defaultcs.aspx

The Description says:
set the GroupingSettings.RetainGroupFooterVisibility property to true.

In the API call, 'Footers' is plural, text should read: GroupingSettings.RetainGroupFootersVisibility


I'm embarrassed to admit how long it took me to figure out why my copy/paste of the sample code wouldn't work, and google didn't help much. :) Hopefully it can get corrected, or at least maybe this note will come up and help anyone else who runs into this copy/paste issue.

Cheers!
Eyup
Telerik team
 answered on 12 Sep 2014
2 answers
157 views
Hello

I am trying to visually show how a sales person is performing compared to a forecast. We measure Revenue and Margin, and have 2 different forecasts, for example:

Incentive 1 Revenue Target 100,000 Margin Target 40,0000
Incentive 2 Revenue Target 150,000 Margin Target 60,0000
Actual Revenue 80,000 Actual Margin 35,000 

is it possible to show 2 series (revenue and profit) in the same gauges?

maybe better to have a barchart if not possible with a gauge

thanks for any advice

graham
Graham
Top achievements
Rank 1
 answered on 12 Sep 2014
1 answer
120 views
I would like to use an AutoCompleteBox to display records as the user enters the information however I need to display alternate text if the record is terminated.  There is the potential that a client name will be listed twice and I need some way of displaying them differently in the AutoCompleteBox.

Normal record will display as such:

Client Name - City, State

What I need for a terminated Client to look like the following

Client Name - City, State (Terminated Date)

I am not sure of how to do this and am looking for some assistance.  Is there away to add an IF...Then statement to my DropDownItemTemplate?

Thanks
Nencho
Telerik team
 answered on 12 Sep 2014
1 answer
153 views
Hi,
i am having grid with 4 column and checkbox, after checking and on button click i can get employeeid(datakeyname of mastertableview) but how to get other three column value
<telerik:RadGrid ID="RadGridRMEmployee" runat="server"
         AllowMultiRowSelection="True"
         OnNeedDataSource="RadGridRMEmployee_NeedDataSource"
         onprerender="RadGridRMEmployee_PreRender">
         <ClientSettings Selecting-AllowRowSelect="true" AllowDragToGroup="True" EnablePostBackOnRowClick="true">
             <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True"></Selecting>
         </ClientSettings>
         <MasterTableView DataKeyNames="EmployeeIDl">
             <Columns>
                 <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" />
             </Columns>
             <PagerStyle AlwaysVisible="True"></PagerStyle>
         </MasterTableView>
     </telerik:RadGrid>


protected void btnSaveTask_Click(object sender, EventArgs e)
        {
           bool check;
            foreach (GridDataItem item in RadGridRMEmployee.SelectedItems)
            {
                CheckBox chk = (CheckBox)item["ClientSelectColumn"].Controls[0];
                string EmployeeID = item["EmployeeID"].Text;
 
//HOW TO GET THESE 3 VALUES
 
                string EmployeeName = item["EmployeeName"].Text;  
                string EmployeeType = item["EmployeeType"].Text;
                string EmployeeEmail = item["EmployeeEmail"].Text;
}
}
Eyup
Telerik team
 answered on 12 Sep 2014
9 answers
429 views

 

Sharepoint PeopleEditor control is not rendering properly if it is placed within the RadTabStripà RadTab controls (see sample screenshot from this link). We checked it within FireFox fire bug as you can see below the control type is set to hidden. Is there something that we need to set in the attributes of the Rad controls?

 

Rendered in FireFox

<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_hiddenSpanData" type="hidden" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$hiddenSpanData"/>

<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_OriginalEntities" type="hidden" value="<Entities><Entity Key="DS\francis.a.b.rosos" DisplayText="Rosos, Francis A. B." IsResolved="True" Description="DS\francis.a.b.rosos">

 

When we changed the type attribute value from hidden to text we can see the expected value e.g. Rosos, Francis A. B.

 

<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_hiddenSpanData" type="text" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$hiddenSpanData"/>

<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_OriginalEntities" type="text" value="<Entities><Entity Key="DS\francis.a.b.rosos" DisplayText="Rosos, Francis A. B." IsResolved="True" Description="DS\francis.a.b.rosos">

 

Html representation

<wssawc:PeopleEditor

    AllowEmpty="true"

    ValidatorEnabled="true"

    id="pplEditorMyBackup"

    AllowTypeIn="false"

    runat="server"

    SelectionSet="User,SecGroup,SPGroup,DL"

    width="350px"

    visible="true"

    MultiSelect="true"

    EnableViewState="true"     

    onkeydown="javascript:AllowDeleteOnly(event);"

    onkeypress="javascript:AllowDeleteOnly(event);"

    />

 

Source view in FireFox

<span id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01" style="display: inline-block; width: 350px;" eeaftercallbackclientscript="" showentitydisplaytextintextbox="0" allowempty="1" value="true" removetext="Remove" moreitemstext="More Names..." nomatchestext="<No Matching Names>">

<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_hiddenSpanData" type="hidden" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$hiddenSpanData"/>

<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_OriginalEntities" type="hidden" value="<Entities><Entity Key="DS\francis.a.b.rosos" DisplayText="Rosos, Francis A. B." IsResolved="True" Description="DS\francis.a.b.rosos"><ExtraData><ArrayOfDictionaryEntry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DictionaryEntry><Key xsi:type="xsd:string">DisplayName</Key><Value xsi:type="xsd:string">Rosos, Francis A. B.</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">Email</Key><Value xsi:type="xsd:string">francis.a.b.rosos@accenture.com</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">SPUserID</Key><Value xsi:type="xsd:string">8</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">Title</Key><Value xsi:type="xsd:string">Programmer</Value></DictionaryEntry><DictionaryEntry><Key xsi:type="xsd:string">PrincipalType</Key><Value xsi:type="xsd:string">User</Value></DictionaryEntry></ArrayOfDictionaryEntry></ExtraData></Entity></Entities>" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$OriginalEntities"/>

<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_HiddenEntityKey" type="hidden" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$HiddenEntityKey"/>

<input id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_HiddenEntityDisplayText" type="hidden" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$HiddenEntityDisplayText"/>

<table id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_OuterTable" class="ms-usereditor" cellspacing="0" cellpadding="0" border="0" style="width: 350px; border-collapse: collapse;">

<tbody>

<tr>

<td valign="top">

<table cellspacing="0" cellpadding="0" border="0" style="width: 100%; table-layout: fixed;">

<tbody>

<tr>

<td>

<div id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_upLevelDiv" class="ms-inputuserfield" autopostback="0" style="display: none; position: absolute;" tabindex="0" name="upLevelDiv"/>

<textarea id="ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01_downlevelTextBox" class="ms-input" style="width: 100%;" autopostback="0" title="People Picker" onkeyup="onKeyUpRw('ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01');" onkeydown="return onKeyDownRw(this, 'ctl00_PlaceHolderMain_CollaborationTab_pplAssistantName_ctl01', 3, false, event);" cols="20" rows="3" name="ctl00$PlaceHolderMain$CollaborationTab$pplAssistantName$ctl01$downlevelTextBox"/>

</td>

</tr>

</tbody>

</table>

</td>

</tr>

<tr>

</tr>

<tr style="padding-top: 2px;">

</tr>

</tbody>

</table>

</span>

 

Maria Ilieva
Telerik team
 answered on 12 Sep 2014
1 answer
311 views
I have a tooltip that includes a radtooltipupload control. I need to open the tooltip and have this opportunity to work on it and then click on the page to close it. I don't need manual close button either. I have changed the hide event to LeaveTooltip to get rid of the hide button but the problem is after opening the tooltip in the middle right position of an image when I want to go into tooltip and I move the mouse from the image into tooltip, the tooltip is disappearing. I want the toltip stay there that the user can upload a file and then when the user click somewhere else in the page tooltip closes. Would you please help me?
P.S: ( I even increased hidedelay into 500 and even autocloseDelay into 0 but it didn't help)

​<telerik:RadToolTipManager runat="server" AnimationDuration="300" ID="DefaultRadToolTipManager" RelativeTo="Element"
Animation="Slide" Position="MiddleRight" OnAjaxUpdate="OnAjaxUpdate" HideEvent="LeaveToolTip" >
</telerik:RadToolTipManager>
Marin Bratanov
Telerik team
 answered on 12 Sep 2014
1 answer
336 views
I've created a radhtmlchart with an additional Y axis.  The problem is that the axis is displayed left of the original y axis.  I want this additional y axis displayed on the right side of the chart.  Code below.
<telerik:RadHtmlChart ID="RadHtmlChart1" runat="server">
     <ChartTitle Text="Rows Purged by Date"></ChartTitle>
     <PlotArea>
         <Series>
             <telerik:ColumnSeries DataFieldY="PurgeRowCnt">
                 <TooltipsAppearance Color="White"></TooltipsAppearance>
             </telerik:ColumnSeries>
             <telerik:ColumnSeries AxisName="yAxis_Time" Name="E-Time" DataFieldY="PurgeElapsedTime">
                 <TooltipsAppearance Color="Tomato"></TooltipsAppearance>
                 <Appearance FillStyle-BackgroundColor="PowderBlue"></Appearance>
             </telerik:ColumnSeries>
         </Series>
         <XAxis DataLabelsField="PurgeDateDisplay">
             <TitleAppearance Text="Purge Date"></TitleAppearance>
         </XAxis>
         <YAxis>
             <TitleAppearance Text="Purge Row Count"></TitleAppearance>
         </YAxis>
         <AdditionalYAxes>
             <telerik:AxisY Name="yAxis_Time" Color="SlateBlue"></telerik:AxisY>
         </AdditionalYAxes>
     </PlotArea>
</telerik:RadHtmlChart>
Danail Vasilev
Telerik team
 answered on 12 Sep 2014
3 answers
163 views
In my ASP.NET 4.0 Web Forms application, I'm using AsyncUpload for just one thing: To allow my client to send a file to me via e-mail.  The functionality works perfectly fine in Visual Studio on my development machine but I'm getting an error (see screenshot) when it's deployed onto the client's server.  The problem appears to revolve around the temporary file that needs to be created by the control.  To solve this I first tried this on the client's server:
  1. Created these nested folders off of the root of my application:  \App_Data\RadUploadTemp
  2. Assigned the child folder Write privileges
  3. Added this property to the instance of RadAsyncUpload:  TemporaryFolder="~/App_Data/RadUploadTemp"

But when I ran my app, the same error occurred.

So then I changed the property setting to this:  TemporaryFolder="~/Logs"
The "Logs" folder is an existing one that also has Write privileges.

But once again, the same error occurred!

I'm not sure what to do now and am hoping someone on this forum might be able to help.  If there was a way to avoid the necessity for a temporary folder at all, that would be preferable.

Any ideas?

Robert
Hristo Valyavicharski
Telerik team
 answered on 12 Sep 2014
1 answer
605 views
My export to Excel works fine with normal GridBoundColumn columns however will not work with GridTemplateColumn.  How might I facilitate a download of the grid?  When downloading it only includes Member Type, Phone, Approx Miles.  Need it to include CUName, Address, etc.

Thank you for your help
<telerik:RadGrid ID="grdResults" runat="server" AllowPaging="true" AllowSorting="true"
    AutoGenerateColumns="False" CellSpacing="-1" GridLines="Both" PageSize="100">
    <ExportSettings IgnorePaging="True" OpenInNewWindow="True"
        ExportOnlyData="True" FileName="CUMapListings">
        <Excel AutoFitImages="True" Format="ExcelML" />
        <Csv ColumnDelimiter="VerticalBar" EncloseDataWithQuotes="False" />
    </ExportSettings>
    <MasterTableView CommandItemDisplay="Top" UseAllDataFields="true" TableLayout="Fixed">
        <HeaderStyle Font-Bold="true" />
        <CommandItemTemplate>
            <asp:LinkButton ID="btnPrint" runat="server" CommandName="PrintResults" Visible="true" OnClientClick="PrintRadGrid(); return false;"><img style="border:0px;vertical-align:middle;" alt="" src="/Images/DownloadPrinter.png"/>Print</asp:LinkButton>  
            <asp:LinkButton ID="btnExportMap" runat="server" CommandName="ExportMapListing" Visible="true"><img style="border:0px;vertical-align:middle;" alt="" src="/Images/Help/CSV_Export.jpg"/>Excel Download</asp:LinkButton>  
        </CommandItemTemplate>
        <AlternatingItemStyle BackColor="LightGray" />
        <Columns>
            <telerik:GridTemplateColumn UniqueName="RowNumber">
                <ItemTemplate>
                    <asp:Label ID="lblRowNumber" runat="server" />
                </ItemTemplate>
                <ItemStyle Font-Bold="true" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn UniqueName="_search_asiNum" Visible="false" DataField="asi_num">
                <ItemTemplate>
                    <asp:Label ID="_search_asiNum" runat="server" />
                </ItemTemplate>
                <ItemStyle Font-Bold="true" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn UniqueName="CUInfo" HeaderText="ADDRESS">
                <ItemTemplate>
                    <asp:Label ID="lblCULink" runat="server" Visible="false" />
                    <asp:LinkButton runat="server" ID="CU_LinkButton" Visible="false"></asp:LinkButton>
                    <br />
                    <asp:Label ID="lblAddressInfo" runat="server" Visible="True" />
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn HeaderText="MEMBER" UniqueName="MemberType" FilterControlAltText="Filter column column" DataField="MemberType">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="PHONE" UniqueName="Phone" FilterControlAltText="Filter column column" DataField="cuPhone">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="APPROX. MILES" UniqueName="Miles" FilterControlAltText="Filter column column" DataField="Distance" DataFormatString="{0:####.#0}">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
 
                                 
            <telerik:GridTemplateColumn UniqueName="Directions" HeaderText="DRIVING DIRECTION">
                <ItemTemplate>
                    <asp:PlaceHolder runat="server">
 
                    <a href="http://google.com/maps/dir/<;%# DataBinder.Eval(Container.DataItem, "Address1")%>%2C+<%# DataBinder.Eval(Container.DataItem, "City")%>+<%# DataBinder.Eval(Container.DataItem, "state_id")%>+<%# DataBinder.Eval(Container.DataItem, "zip_code")%>/<%# Request.QueryString("A")%>%2C+<%# Request.QueryString("C")%>+<%# Request.QueryString("S")%>+<%# Request.QueryString("Z")%>" target="_blank">To <%# Request.QueryString("N")%></a>
                    <br />
                    <a href="http://google.com/maps/dir/<;%# Request.QueryString("A")%>%2C+<%# Request.QueryString("C")%>+<%# Request.QueryString("S")%>+<%# Request.QueryString("Z")%>/<%# DataBinder.Eval(Container.DataItem, "Address1")%>%2C+<%# DataBinder.Eval(Container.DataItem, "City")%>+<%# DataBinder.Eval(Container.DataItem, "state_id")%>+<%# DataBinder.Eval(Container.DataItem, "zip_code")%>" target="_blank">From <%# Request.QueryString("N")%></a>
                </asp:PlaceHolder>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
    <PagerStyle PageSizeControlType="RadComboBox" />
</telerik:RadGrid>

Here is how I populate the fields that are not showing.
Private Sub grdResults_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles grdResults.ItemCommand
    If e.CommandName = "ExportMapListing" Then
        grdResults.ExportSettings.ExportOnlyData = True
        grdResults.ExportSettings.FileName = "ExportMapListing"
        grdResults.MasterTableView.ExportToExcel()
    End If
End Sub
 
Private Sub grdResults_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles grdResults.ItemDataBound
    'Set Row Count
    If TypeOf e.Item Is Telerik.Web.UI.GridDataItem Then
        Dim rowCounter As Integer = 0
        Dim lblRowNumber As Label = TryCast(e.Item.FindControl("lblRowNumber"), Label)
 
        rowCounter = grdResults.MasterTableView.PageSize * grdResults.MasterTableView.CurrentPageIndex
        lblRowNumber.Text = (e.Item.ItemIndex + 1 + rowCounter).ToString()
 
        Dim lblCULink As Label = TryCast(e.Item.FindControl("lblCULink"), Label)
        Dim CU_LinkButton As LinkButton = TryCast(e.Item.FindControl("CU_LinkButton"), LinkButton)
 
        Dim lblAddressInfo As Label = TryCast(e.Item.FindControl("lblAddressInfo"), Label)
        lblAddressInfo.Text = DataBinder.Eval(e.Item.DataItem, "Address1") & "<br />" & _
                                DataBinder.Eval(e.Item.DataItem, "City") & " " & _
                                DataBinder.Eval(e.Item.DataItem, "state_id") & " " & _
                                DataBinder.Eval(e.Item.DataItem, "zip_code")
 
        If DataBinder.Eval(e.Item.DataItem, "MemberType") = "Non-member" Then
            e.Item.ForeColor = Drawing.Color.Black
 
            lblCULink.Visible = True
            lblCULink.Text = "<a href=""/cuDataAnalysis/cuSummary.aspx?Charter_num=" & DataBinder.Eval(e.Item.DataItem, "charter_num") & """>" & DataBinder.Eval(e.Item.DataItem, "CUName") & " (" & DataBinder.Eval(e.Item.DataItem, "charter_num") & ")</a>"
 
            CU_LinkButton.Visible = False
        Else
            e.Item.ForeColor = Drawing.Color.Green
            'lblCULink.Text = "<a href=""/CUTracking/ContactManager/default.aspx?_search_asiNum=" & DataBinder.Eval(e.Item.DataItem, "asi_num") & """>" & DataBinder.Eval(e.Item.DataItem, "CUName") & " (" & DataBinder.Eval(e.Item.DataItem, "charter_num") & ")</a>"
            lblCULink.Visible = False
 
            CU_LinkButton.Visible = True
            CU_LinkButton.PostBackUrl = "/CUTracking/ContactManager/default.aspx" '?_search_asiNum=" & DataBinder.Eval(e.Item.DataItem, "asi_num")
            CU_LinkButton.Text = DataBinder.Eval(e.Item.DataItem, "CUName") & " (" & DataBinder.Eval(e.Item.DataItem, "charter_num") & ")"
        End If
    End If
 
End Sub







Kostadin
Telerik team
 answered on 12 Sep 2014
6 answers
162 views
The current version of RadControls for ASP.NET AJAX doesn't work well when running under IE 9 with compatibility view enabled.

The step to reproduce:

1. Launch IE 9 browser.

2. Go to telerik demo site: http://demos.telerik.com/aspnet-ajax/menu/examples/overview/defaultcs.aspx

3. Enable compatibility view in IE 9

4. Then navigate the demo site, such as click the top menu ... ...

5. Some time it shows error like:  Object doesn't support property or method 'slice'




Slav
Telerik team
 answered on 12 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?