Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
854 views
hi,
I want to change the text of ok and cancel button in radconfirm dialogue.
Telerik.Web.UI.RadWindowUtils.Localization =  
{   
    "OK" : "OK"
    "Cancel" : "Cancel"
};


but it changes button text of all radconfirm, radalerts and radwinodws.
I want to change the button text of radconfirm only.
Please suggest some solution.
it is urgent for me.
Shinu
Top achievements
Rank 2
 answered on 27 May 2013
7 answers
260 views
Hi,

I tried using the new RadMonthYearPicker and am quite dissapointed as Telerik seems to have
created this new control and yet totally missed the point.

Is not the whole purpose of the control to select - or enter - just the month and year, and not have a
day whatsoever? 

If you setup the date format as MM/yyyy and the display format at MM/yyyy (the first thing i tried and
imho the first thing most anybody will try) - the control doesn't work at ALL!!

I've seen all these huge, extended, hard-coding, client-side, work-arounds, of users trying to make
it do just that.

While I know any date variable or database value must have a day, why don't you just add another
paramater to specify the default day value returned and make it work as expected?

Just my two sense,
Scott
Radoslav
Telerik team
 answered on 27 May 2013
2 answers
166 views
Hi All,

Here is my senario with my RadComboBox:

  1. My RCB has thee items: Item A, Item B, and Item C.
  2. I first select Item B.
  3. The OnClientSelectedIndexChanged fires.
  4. I use JS to change my RCB back to Item A, using the .set_text("Item A") method.
  5. I then change back to Item B.
  6. My event does not fire.

I reason that my event does not fire because the RCB "thinks" it has *not* changed, sense it was changed back to Item B only via code.

Any suggestions?

Thanks!

James
Top achievements
Rank 1
 answered on 27 May 2013
1 answer
104 views
We have the RadEditor being used on our SharePoint 2010 site and have a bit of an anomaly with the behaviour of it on the Wiki Pages, initially we didn't have it activated on any of the wiki pages but had a 3rd party piece of software utilise it which 'wraps' it within its own solution. The actual feature is not activated against the site collection at all but the web part of the 3rd party software has a content editor which utilises the RadEditor. So somehow it has been somewhat activated against the wiki pages of the site collection and this is interfering with some functionality that the users have been using such as the test layout etc.
We have tried activiating and deactivating the RadEditor feature(s) of the subsites where this is happening but neither seems to be able to remove the RadEditor from the wiki page in edit mode.
Is there someway to force deactivate it from a particular subsite or page?

The 3rd party product has used various versions of the RadEditor I believe and the safecontrols loaded in the web.config file are as follows:
<SafeControl Assembly="Telerik.Web.UI, Version=2011.3.1305.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2011.3.1305.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Editor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2011.3.1305.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI.Widgets" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2011.3.1305.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.Design" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="Telerik.Web.UI.Skins, Version=2011.3.1305.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=6.2.1.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=6.2.1.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.FieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=6.2.1.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.ListFieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="Telerik.Ajax.SharePoint, Version=2011.3.1305.35, Culture=neutral, PublicKeyToken=aa9e5f693af67c7b" Namespace="Telerik.Ajax.SharePoint" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=5.6.1.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.FieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=5.6.1.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.ListFieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=5.6.1.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=6.0.0.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.FieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=6.0.0.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.ListFieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=6.0.0.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=6.1.7.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.FieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=6.1.7.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint.ListFieldEditor" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="RadEditorSharePoint, Version=6.1.7.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" TypeName="*" Safe="True" SafeAgainstScript="False" />
Stanimir
Telerik team
 answered on 27 May 2013
1 answer
119 views
I'm using the treeview with a right clickable context menu. What's the recommended way of doing this with an Ipad given that it doesn't support right clicking. Cheers, Chris.
Princy
Top achievements
Rank 2
 answered on 27 May 2013
1 answer
227 views
Hi,
How would you get the parent cell of RadComboBox in a OnClientDropDownClosedHandler?

This is is an ItemTemplate in a RadGrid
<telerik:RadComboBox ID="TerritoryManagerRadComboBox" runat="server" onclientdropdownclosed="OnClientDropDownClosedHandler">

 


function

 

 

OnClientDropDownClosedHandler(sender, eventArgs) {
  // here I want to get the cell object

 

 }

I 'd like to get this in javasscript and sender.Parent does not work... What is the correct synthax if any or is there another way to acheieve this? I need the cell object to modify the cell style the radcombobox is in once the selected value changed... I also trie onclientselectedindexchanged but I got the same issue - wa not sure how to get teh parent cell
Jayesh Goyani
Top achievements
Rank 2
 answered on 26 May 2013
0 answers
79 views
It turns out the problem was due to some other code we add expanding onclick events of buttons and submits that was clogging up the telerik expand/collapse.  Fixed it to not attach the additional onclick code to telerik objects.
Peter
Top achievements
Rank 1
 asked on 25 May 2013
0 answers
398 views
Good Day 

I am using Ajax-manager
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
     <AjaxSettings>
           
                <telerik:AjaxSetting AjaxControlID="paymentTypeList">
             <UpdatedControls>
                                  <telerik:AjaxUpdatedControl ControlID="paymentTypeList"  ></telerik:AjaxUpdatedControl>
                      <telerik:AjaxUpdatedControl ControlID="tbxChargeAmount"  ></telerik:AjaxUpdatedControl>
 
             </UpdatedControls>
         </telerik:AjaxSetting>

 now this works on Chrome  but not in IE, in IE 10 it gives me an error 

 
SEC7115: :visited and :link styles can only differ by color. Some styles were not applied to :visited.
Accounts.aspx
SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.
Telerik.Web.UI.WebResource.axd, line 9 character 15475
SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.
Telerik.Web.UI.WebResource.axd, line 9 character 15475
SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.
Telerik.Web.UI.WebResource.axd, line 9 character 15475

more Info again 

Unhandled exception at line 2610, column 1 in http://localhost:58443/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;AjaxControlToolkit,+Version=4.1.50927.0,+Culture=neutral,+PublicKeyToken=28f01b0e84b6d53e:en-US:c95f669f-226b-4768-8ab5-43ac217de4dd:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2012.2.607.40,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:08ccafd1-fc13-48c0-b85b-a439ce2f6884:16e4e7cd:86526ba7:874f8ea2:ed16cbdc:f7645509:24ee1bba:7165f74:58366029:1e771326:f9b9258;AjaxControlToolkit,+Version=4.1.50927.0,+Culture=neutral,+PublicKeyToken=28f01b0e84b6d53e:en-US:c95f669f-226b-4768-8ab5-43ac217de4dd:923aa3cc:853c2e0b:f9ae838a:782b16ab:d754780e:1e088fb:52c703eb:46f97eb1:50114f04:f48dface:28a7831e
 
0x800a138f - JavaScript runtime error: Unable to get property 'id' of undefined or null reference

Thanks 

Vuyiswa
Top achievements
Rank 2
 asked on 24 May 2013
1 answer
310 views
Hi, I have a Repeater inside a RadAjaxPanel, and each repeater item has a DropDownList with Autopostback.  When I change the DropDownList selection a full postback happens instead of a partial one.  I tried wrapping my repeater in an extra panel and add configuration to the AjaxManager but with no luck.  If I try to create settings programmatically on the DropDownList then no postback happens at all.  Can you please help?  Here is my code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AjaxTest.aspx.cs" Inherits="AppointmentsScheduling.Web.AjaxTest" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!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">
 
 <telerik:RadScriptManager ID="ScriptManager" runat="server" EnableViewState="true"></telerik:RadScriptManager>
 
 <telerik:RadAjaxManager ID="AjaxManager" runat="server">
 
 <AjaxSettings>
 
 </AjaxSettings>
 
 </telerik:RadAjaxManager>
 
 <div>
 
 <telerik:RadAjaxPanel ID="AjaxActionPanel" runat="server">
 
 <asp:Repeater ID="AppointmentList" runat="server">
 
 <ItemTemplate>
 
 <div class="column statuscolumn">
 
 <asp:Label ID="lblStatus" runat="server" Text="* Status" AssociatedControlID="Status" CssClass="required" />
 
 <asp:DropDownList ID="Status" runat="server" AutoPostBack="true"
 
 onselectedindexchanged="Status_SelectedIndexChanged">
 
 <asp:ListItem Text="1" Value="1" />
 
 <asp:ListItem Text="2" Value="2" />
 
 </asp:DropDownList>
 
 </div>
 
 </ItemTemplate>
 
 </asp:Repeater>
 
 </telerik:RadAjaxPanel>
 
 </div>
 
 </form>
 
</body>
 
</html>

 

 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
namespace AppointmentsScheduling.Web
{
    public partial class AjaxTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                AppointmentList.DataSource = new int[] { 1, 2, 3 };
                AppointmentList.DataBind();
            }
        }
 
        protected void Status_SelectedIndexChanged(object sender, EventArgs e)
        {
            var Status = (DropDownList)sender;
            var lblStatus = (Label)Status.Parent.FindControl("lblStatus");
            lblStatus.Text = "* Status " + Status.SelectedValue;
        }
    }
}
Pavlina
Telerik team
 answered on 24 May 2013
2 answers
553 views

I have a RadGrid on an aspx page with a HTML table above it with some customer information.  I am able to export the HTML table and prepend it to the export by using a memory stream.  But, I cannot get it to work when exporting to PDF. 

protected void RadGrid1_GridExporting(object source, GridExportingArgs e)
  {
  StringBuilder customHTML = new StringBuilder();       
  if (e.ExportType == ExportType.Excel)
    
   customHTML.Append("<table style='font-size: 11px; font-family:Verdana;width:500px;' >");
   customHTML.Append("<tr><td><strong>Volunteer:</strong></td><td style=text-align:left;>" + _volunteer + "</td></tr>");
   customHTML.Append("</table>");
 
  e.ExportOutput = e.ExportOutput.Replace("<body>", String.Format("<body>{0}", customHTML));
  MemoryStream gridMemoryStream = new MemoryStream(new ASCIIEncoding().GetBytes(e.ExportOutput));
  gridMemoryStream.Close();
    }
 
  if (e.ExportType == ExportType.Pdf)
  {
    // How do I add HTML to the PDF Export?  The Excel Export doesn't work
     }

 

Mike
Top achievements
Rank 1
 answered on 24 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?