This is a migrated thread and some comments may be shown as answers.

AddNewRecordText - ampersand problem

3 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kishan Gandikota
Top achievements
Rank 1
Kishan Gandikota asked on 04 Aug 2011, 06:57 PM
Hi,

I have telerik radgrid being used in the application with the add option also included in the grid. I added AddNewRecordText as "Add User & Employee" for add button. Please note that there is an ampersand in the text that was given. Now the "Add" button that appears on the grid shows the text correctly. However the tooltip for the button doesn't show up right. It encodes the ampersand symbol and shows it in the tooltip. Is there any workaround to fix this problem? 
<telerik:RadGrid ID="testEdit" AllowMultiRowEdit="True" ShowFooter="false" ShowStatusBar="true"
                        runat="server" ShowHeader="false" AutoGenerateColumns="true">
                        <MasterTableView CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage">
                            <CommandItemSettings ShowRefreshButton="false" AddNewRecordText="Add User & Employee" />


Regards,
Kishan G K

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Aug 2011, 05:40 AM
Hello Kishan,

I tried the same scenario in this version 2011.1.315.35 and it worked as expected.
I suppose it might be a version issue.So try upgrading to to the latest version with the help of the following documentation.
Upgrading RadControls Trial to RadControls Developer license or newer version.

Thanks,
Shinu.
0
Kishan Gandikota
Top achievements
Rank 1
answered on 05 Aug 2011, 07:22 PM
Hello,

I am still seeing a bug with the telerik control.

Here is my code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm4.aspx.cs" Inherits="WebApplication4.WebForm4" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadGrid ID="RadGrid1" runat="server" ShowHeader="true">
            <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage">
                <CommandItemSettings AddNewRecordText="Add S&P" />
                <Columns>
                    <telerik:GridButtonColumn ButtonType="LinkButton" UniqueName="EditCommandColumn"
                        CommandName="Edit" Text="Edit" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    </form>
</body>
</html>

Default.aspx.cs:
namespace WebApplication4
{
    public partial class WebForm4 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                RadGrid1.DataSource = new List<string>();
                RadGrid1.DataBind();
            }
        }
    }
}

Telerik version that i am using is: 2011.2.712.40.

I believe this is the super latest version telerik has released it. Also, i have attached the screenshot of the problem. Let me know if i need to open a problem ticket for the same.

Regards,
Kishan G K
0
Daniel
Telerik team
answered on 11 Aug 2011, 09:11 PM
Hello Kishan,

We are aware of this problem. It will be fixed in the next official release of RadControls for ASP.NET AJAX which is expected around the midst of September.

Best regards,
Daniel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Kishan Gandikota
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Kishan Gandikota
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or