Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views

There is several bugs in 2014.3.1024 release (UI for ASP.NET AJAX), here is one:

No base line showing with ShowBaseLine="true" when use "Outlook" skin (and other skins, "Black" skin is fine).

You may create a test website, and then copy the below code to repeat the issue (like showing in the picture attached). Please let me know if there is a quick fix for this:

Thanks,

Ryan

====Code below=================

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<script type="text/javascript">
//Put your JavaScript code here.
</script>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<telerik:RadSplitter runat="Server" ID="RadSplitter1" Width="100%" BorderSize="0"
BorderStyle="None" PanesBorderSize="0" Height="100%" Orientation="Horizontal"
VisibleDuringInit="false">
<telerik:RadPane ID="RadPaneMenu" runat="server" Height="30" Width="100%">
<telerik:RadTabStrip ID="Menu1" runat="server" Width="100%" ScrollChildren="true"
Skin="Outlook" ShowBaseLine="true">
<Tabs>
<telerik:RadTab Text="AAAAA" Value="0" Selected="True">
</telerik:RadTab>
<telerik:RadTab Text="BBBB" Value="1">
</telerik:RadTab>
<telerik:RadTab Text="CCCC" Value="2">
</telerik:RadTab>
<telerik:RadTab Text="DDDDD" Value="3">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
</telerik:RadPane>
<telerik:RadPane ID="RadPaneMain" runat="server" Height="100%" Width="100%">

</telerik:RadPane>
</telerik:RadSplitter>
</form>
</body>
</html>
Aneliya Petkova
Telerik team
 answered on 25 Nov 2014
3 answers
311 views
I'm not sure if the RadGrid (or late bound controls) support what I'm trying to do.

My concern is design in nature.

I can already perform the grouping server-side, but when I have two items that match on a particular DataKey, I need to effectively make them appear as 1 item.

For example:

// Asset of a person
public class PersonAsset {
     public Guid PersonID {get;} //DataKey; second GroupBy will be by PersonID
      
     public string Asset {get;set;}
     public Guid AssetID {get;set} //not a DataKey for the Grid, correlates to a comboxbox that makes the asset changeable
      
     public string PersonName {get;set;}
     public string Note1 {get;set;}
     public string Note2 {get;set;}
     public string Note3 {get;set;}
     public PersonAssetState State {get;set;}
}
 
//going to perform first GroupBy using this enum
public enum PersonAssetState {
   NotSet,
   Type1,
   Type2
}

<telerik:RadGrid runat="server" ID="rGridInventory" ShowHeader="true" Width="99%" OnNeedDataSource="rGridInventory_NeedDataSource">
       <MasterTableView DataKeyNames="PersonID" ClientDataKeyNames="PersonID" 
           ShowGroupFooter="true" GroupLoadMode="Client">
           <GroupFooterTemplate>              
           </GroupFooterTemplate>
           <GroupByExpressions>
               <telerik:GridGroupByExpression>
                   <GroupByFields>
                       <telerik:GridGroupByField FieldName="State" SortOrder="Descending" />
                       <telerik:GridGroupByField FieldName="PersonID" />
                   </GroupByFields>
                   <SelectFields>
                       <telerik:GridGroupByField FieldName="State" />
                       <telerik:GridGroupByField FieldName="PersonID" />
                   </SelectFields>
               </telerik:GridGroupByExpression>
           </GroupByExpressions>
       </MasterTableView>           
   </telerik:RadGrid>

So at this point, instead of having subsequent grouped columns/rows containing "PersonName" twice or more in a tubalar fashion, I am looking for it to display once, and for all groupings at this level (Second) to appear as 1 row.
Konstantin Dikov
Telerik team
 answered on 25 Nov 2014
1 answer
66 views
Is there anything in place to allow for more than one year for a "yearly" recurrence rule? Some of our clients are looking to add appointments once every other year or once every three years.

If not, is there anything in the works to support such a thing?

Thanks,
Kerry Wano
Peter Filipov
Telerik team
 answered on 25 Nov 2014
7 answers
329 views
Hi I got an error when exporting to PDF :


Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF.
Parse error:
The '@' character, hexadecimal value 0x40, cannot be included in a name. Line 1746, position 161.
at line:
<td>&nbsp;</td><td>12379182</td><td>43289573</td><td>test</td><td>tester</td><td>0147238</td><td>"Tom &amp; test tester" <tester@bigpond.net.au></td> 
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

 Exception Details: Telerik.Web.UI.Grid.Export.GridPdfExportException: Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF.
Parse error:
The '@' character, hexadecimal value 0x40, cannot be included in a name. Line 1746, position 161.
at line:
<td>&nbsp;</td><td>770547771</td><td>661576901</td><td>Antheunis</td><td>tester</td><td>0147238</td><td>"Tom &amp; test tester" <tester@bigpond.net.au></td>


It seems that this happens when there is a email with <something@something.com> in the field value


Is there a event handler that I can overwrite to handle this when data is being populated to the PDF?

Thanks.
Kostadin
Telerik team
 answered on 25 Nov 2014
4 answers
479 views
if save changes is never invoked client side, can we get the changes made to a batch edit radgrid server side? we'd like to eliminate the need to click 'save changes' and have the whole form (grid and non grid fields) submitted by a single action.
Angel Petrov
Telerik team
 answered on 25 Nov 2014
6 answers
375 views
Hi i am using radgrid.
I have two questions regarding this.

I have different dataset and single grid.
so I have not defined columns in the grid.
Columns are generated through the dataset columns.

1. Now i want to hide the first column of the grid.
2. I want to add a column for deleting the record.

How can i do this?
Please suggest me some idea...
swagatika
Top achievements
Rank 1
 answered on 25 Nov 2014
0 answers
177 views
I was recently given support duties on a DotNetNuke Pro system that uses Telerik controls.  We are having an error for customers on IE 11 and we were able to find the source.  In the "Telerick.Web.Ui.WebResource.axd file:

1. There is a "MicrosoftAjax.js" section at the top of the file that initializes a Sys.Browser.agent variable, then checks to see if it is Internet Explorer by looking for " MSIE " in the useragent string - since IE 11 does not use " MSIE " in useragent the browser stays undefined.

2. In the next "MicrosoftAjaxWebForms.js" section there is a function that checks if Sys.Browser.agent is equal to Sys.Browser.InternetExplorer, and if it is uses AttachEvent() to register a click handler.  Since Sys.Browser.agent was not identified as IE 11, at this point the code works properly would call document.AddEventListener(), which IE 11 supports.

3. Further down in the AXD there is a "START Telerik.Web.UI.Common.Core.js" section.  In this section there is a line of code that reads
    
 if(navigator.userAgent.indexOf("Trident")>-1&&navigator.userAgent.indexOf("MSIE")==-1){Sys.Browser.agent=Sys.Browser.InternetExplorer;


...this line changes Sys.Browser.agent to equal Sys.Browser.InternetExplorer, which causes the function in #2 above to throw an error (since AttachEvent is not available in IE11). 

Any ideas on how we resolve this issue?  Basically we need a way to either update the AttachEvent() test or stop the Telerik section that sets Sys.Browser.Agent.  Thanks.
Biz
Top achievements
Rank 1
 asked on 24 Nov 2014
4 answers
166 views
Hello,

I'm working on an application which needs to have an offline portion. We've used RadControls to date for the rest of the site interface. So, we'd like to keep the look and feel as similar as possible for the offline portion. 

We aren't doing anything crazy. Just need a couple RadToolBars and RadGrids. We've managed to get everything working including populating grids and controlling toolbars based on data saved in things like LocalStorage and IndexedDB. The only piece left is making the code not dependent on a script that is generated at runtime. When turning on AppCache references to "WebReference.axd?d=..." break because 

I have managed to get it completely working by manually caching the numerous "WebReference.axd?d=" files, but I do not like this solution as the file names in the manifest are static.

Is there a better way to do this with RadControls?
Philip
Top achievements
Rank 1
 answered on 24 Nov 2014
4 answers
113 views
I have a number of nearly identical grids (different in the database tables only) that are all working exactly correct.  However, I have one grid that simply refuses to go past page 1.  The display file contents and the code behind contents are both attached below.  There is also a screen capture of page 1 and then subsequent pages (doesn't matter which one I include, they all look the same).

If anyone has any ideas why this page will not page forward but all of the others that essentially identical do would be most appreciated!

Thanks!

<%@ Page Title="" Language="C#" MasterPageFile="~/masters/BrokerPlusMstr.Master" AutoEventWireup="true" CodeBehind="OfcSourceList.aspx.cs" Inherits="BrokerPlusOffice.OfcSourceList" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>
        Sources
    </h3>
    <p>
        The Sources codes are used to describe how real estate business leads were directed to your company.
    </p>
<div class="container">
    <div class="row10">
        <div class="one column" >
              
        </div>
        <div class="fourteen columns" >
            <telerik:RadGrid ID="RadGrid1" runat="server" ></telerik:RadGrid>
        </div>
        <div class="one column" >
              
        </div>
    </div>
</div>
<br />
<div class="container">
    <div class="row10">
        <div class="sixteen columns" style="text-align: center;" >
            <telerik:RadButton ID="CreateNew" runat="server" Text="Create New" CausesValidation="False" ToolTip="Displays a form for adding a new Source to the database." UseSubmitBehavior="True" OnClick="CreateNew_Click" />
            <telerik:RadButton ID="CloseMe" runat="server" Text="Close Window" CausesValidation="False" ToolTip= "Closes this window." UseSubmitBehavior="False" OnClientClicked="closemenow" />
        </div>
    </div>
</div>
<div class="container">
    <div class="row10">
        <div class="sixteen columns" style="text-align: center;">
            <asp:Label ID="PageErrors" runat="server" Font-Bold="True" ForeColor="#C00000" Width="95%"></asp:Label>
        </div>
    </div>
</div></asp:Content>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.Common;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Web.Security;
using System.Configuration;
using System.Collections;
using Telerik.Web.UI;
using ApplDB = PublixDBCS10;
using BrokerPlusDBCS10;
 
namespace BrokerPlusOffice
{
    public partial class OfcSourceList : Common.THDiBasePage
    {
        protected void Page_Init(object sender, System.EventArgs e)
        {
            if (!Page.IsPostBack)
            {
 
                //  Get the users form security rules and set the buttons accordingly
                string sUserFormRules = Convert.ToString(Session["UserBrokerPlusFormsRules"]);
                string sRule = sUserFormRules.Substring(40, 1);
 
                switch (sRule)
                {
                    case "0":
                        //  the user is not authorized for this page, so send them to the error page
                        Response.Redirect("~/UserNotAuthorized.aspx");
                        break;
                    case "1":
                        //  The user is only authorized for read-only activities, so set the buttons accordingly
                        this.CreateNew.Enabled = false;
                        break;
                    case "2":
                        //  The user is authorized to update data, so leave the buttons as is
                        break;
                }
 
                GridHyperLinkColumn hypercolumn = null;
                GridBoundColumn boundcolumn = null;
 
                RadGrid1.ID = "RadGrid1";
                RadGrid1.EnableViewState = false;
                RadGrid1.NeedDataSource += new Telerik.Web.UI.GridNeedDataSourceEventHandler(RadGrid1_NeedDataSource);
                RadGrid1.Width = Unit.Percentage(100);
                RadGrid1.PageSize = 15;
                RadGrid1.AllowPaging = true;
                RadGrid1.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;
                RadGrid1.AutoGenerateColumns = false;
                RadGrid1.AllowFilteringByColumn = true;
                RadGrid1.ExportSettings.ExportOnlyData = true;
                RadGrid1.ExportSettings.IgnorePaging = true;
                RadGrid1.ExportSettings.HideStructureColumns = true;
                RadGrid1.ExportSettings.OpenInNewWindow = true;
                RadGrid1.MasterTableView.CommandItemSettings.ShowExportToCsvButton = false;
                RadGrid1.MasterTableView.CommandItemSettings.ShowExportToExcelButton = false;
                RadGrid1.MasterTableView.CommandItemSettings.ShowExportToPdfButton = false;
                RadGrid1.MasterTableView.CommandItemSettings.ShowExportToWordButton = false;
                RadGrid1.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = false;
                RadGrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None;
                RadGrid1.MasterTableView.Width = Unit.Percentage(100);
 
                RadGrid1.MasterTableView.DataKeyNames = new string[] { "Source" };
 
                hypercolumn = new GridHyperLinkColumn();
                hypercolumn.HeaderText = "Edit";
                hypercolumn.UniqueName = "Source";
                hypercolumn.Text = "<img border=\"0\" alt=\"View\" src=\"../Icons/pencil_16.png\" />";
                hypercolumn.DataNavigateUrlFields = new string[] { "Source" };
                hypercolumn.DataNavigateUrlFormatString = "OfcSourceEdit.aspx?M=Y&K=" + "{" + "0" + "}";
                RadGrid1.MasterTableView.Columns.Add(hypercolumn);
 
                hypercolumn = null;
 
                boundcolumn = new GridBoundColumn();
                boundcolumn.UniqueName = "SourceText";
                boundcolumn.DataField = "SourceText";
                boundcolumn.HeaderText = "Source";
                boundcolumn.Visible = true;
                RadGrid1.MasterTableView.Columns.Add(boundcolumn);
 
                boundcolumn = null;
 
                RadGrid1.AllowPaging = Convert.ToBoolean(Session["ShowListsWithPaging"]);
 
            }
        }
 
        public DataTable GetDataTable()
        {
            String ConnString = System.Configuration.ConfigurationManager.ConnectionStrings["BrokerPlus"].ConnectionString;
            DataTable dt = new DataTable();
            using (SqlConnection sqlcon = new SqlConnection(ConfigurationManager.ConnectionStrings["BrokerPlus"].ConnectionString))
            {
                using (SqlCommand cmd = new SqlCommand("Sources_GetAllBySource_Account", sqlcon))
                {
                    cmd.CommandType = CommandType.StoredProcedure;
                    cmd.Parameters.Add(new SqlParameter("@Source_Account", Convert.ToInt32(Session["UserAccount"])));
                    using (SqlDataAdapter da = new SqlDataAdapter(cmd))
                    {
                        da.Fill(dt);
                        return dt;
                    }
                }
            }
        }
 
        private void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            (source as RadGrid).DataSource = GetDataTable();
        }
 
        protected void CreateNew_Click(object sender, EventArgs e)
        {
            Response.Redirect("OfcSourceEdit.aspx?M=N&K=");
        }
    }
}

Lynn
Top achievements
Rank 2
 answered on 24 Nov 2014
5 answers
156 views
Bookmark Range is coming up with additional span text when linked with Heading Range.
Heading range comes with span text which is expected. But, we do not want the bookmark range to come up with additional span text.

BookmarkRangeStart, BookmarkRangeEnd, HeadingRangeStart, HeadingRangeEnd are derived from FieldRangeStartBase, FieldRangeEndBase,  ContentRangeStartBase, ContentRangeEndBase, AnnotationRangeStart and AnnotationRangeEnd.

Below is sample code:
BookmarkRangeStart bookMarkRangeStart = new BookmarkRangeStart("bookmark1";
BookmarkRangeEnd bookMarkRangeEnd = new BookmarkRangeEnd();
bookMarkRangeEnd.PairWithStart(bookMarkRangeStart);

HeadingRangeStart headingRangeStart = new HeadingRangeStart();
HeadingRangeEnd headingRangeEnd = new HeadingRangeEnd();
headingRangeEnd.PairWithStart(headingRangeStart);

paragraph.Inlines.Add(bookMarkRangeStart);
paragraph.Inlines.Add(headingRangeStart);
paragraph.Inlines.Add(spanSelectedText);
paragraph.Inlines.Add(headingRangeEnd);                   
paragraph.Inlines.Add(bookMarkRangeEnd);
Mihail
Telerik team
 answered on 24 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?