Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
83 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
422 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
327 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
600 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
1 answer
140 views
I searched around for an answer to this and the most closely related answer said that default properties were handled by the skin manager but did not show how to do it.  I am wondering if there is a way that I can set default values for controls.  Say that all inputs in my project should have a width of 100px .  Could I define that RadTextBoxes, RadComboBoxes, etc. should have 100px by default if not explicitly set on my markup?  Possibly in the webconfig file?
Ryan
Top achievements
Rank 1
 answered on 24 May 2013
2 answers
95 views
Dear All,

We are using the Rad Combo Box in our application. on click, It shows the cursor in the combobox which looks as if it is editable combo to the end user. Kindly guide me to remove/avoid cursor from the Rad Combo box.

With Regards
L.Palanivelrajan

Palanivelrajan
Top achievements
Rank 1
 answered on 24 May 2013
2 answers
159 views
I am using RadWindow for session expiration pop-up notification. It called when there is no activity on web page for some period.
Sometimes it is displayed partially (missing borders, title bar). 
It seems that that the issue mostly occurred when browser window is on background or minimized. 
On the attached picture you can see normal appearance of the popup, and with broken UI  

Could you please help me?
 
Here is client-side to activate “session expired” pop-up.
function SessionExpired() {
 
var oManager = GetRadWindowManager();
oManager.closeAll();
var requestString = "<%= ResolveClientUrl("~/SessionExpired.aspx") %>";
var oWnd = window.radopen(requestString, "SessionExpired");
oWnd.set_modal(true); 
oWnd.setSize(513, 230);
oWnd.center();
oWnd.add_close(OnClientCloseSession);
                 
}
Ruben Markosyan
Top achievements
Rank 1
 answered on 24 May 2013
4 answers
191 views
Hi,

I had enabled HeaderContextFilterMenu in a radgrid and added edittemplate for one of the editable column. However, the filter is not working with this column though it works in case of default radfilter (without HeaderContextFilterMenu)

 Attached is the RadGridFilter sanpshot for your reference.

Regards,
Preeti
Preeti
Top achievements
Rank 1
 answered on 24 May 2013
1 answer
89 views
Hi
    How can I get the row index of the selected row. thanks in advance
Allen
Shinu
Top achievements
Rank 2
 answered on 24 May 2013
4 answers
132 views
I have a page where I am dynamically creating comboboxes and in chrome they do not open smoothly the first time.  I looked at combos from the demo page and they are fine.

Any suggestions?

Marty
moegal
Top achievements
Rank 1
 answered on 24 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?