Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
554 views
Hi,

In my project, I always have exception with the WebResource.axd. For example:

Exception was thrown at line 4596, column 6 in http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:fr-FR:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI:fr-FR:df833b2e-28ee-45e7-8320-6f2a9cb883d7:16e4e7cd:f7645509:22a6274a:ed16cbdc:874f8ea2:24ee1bba:f46195d3:19620875:490a9d4e:bd8f85e4

And error in script is line:

{var f=this

 

._iframe.contentWindow.document.title;

So, as my project is huge, I reproduce it in a simple application:
I had a webpage with a RadWindow. Exception occur (javascript exception).
I had another webpage using a masterpage. This time, RadWindows even do not open!

I think it's a configuration pb but I'm unable to find it.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkingPage.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head id="Head1" runat="server">
    <title>Title</title>
</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" />
 
        <!--RadWindow-->
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            <Windows>
                <telerik:RadWindow ID="RadWindow1" runat="server" Animation="Fade" Modal="True" NavigateUrl="http://www.c2i.fr" OpenerElementID="Button1" Style="display: none;" Title="C2I.FR" />
            </Windows>
        </telerik:RadWindowManager>
        <asp:Button ID="Button1" runat="server" Text="Button" />
         
 
    </form>
</body>
</html>

And here is my web.config:

<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="Telerik.Skin" value="Office2010Silver"/>
    <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>
  </appSettings>
  <system.web>
    <compilation debug="true" targetFramework="4.0"/>
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
      </controls>
    </pages>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>
    <httpModules>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
    </httpModules>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadCompression"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/>
    </modules>
    <handlers>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
    </handlers>
  </system.webServer>
</configuration>


Thank's to take your time to help me.

 

 


Quest
Top achievements
Rank 1
 answered on 15 Nov 2016
3 answers
97 views

Hi

I am using the RadRating list control.  Once the user has entered there data - I would like to show what they have chosen on the next page.  The value they have chosen is storing just fine.  But when they are on the next page I want to show the rating they choose.  I thought the RadRating1.SelectedItem.Value might do the trick but this does not set the item that has been selected.

Any ideas how I show the item they selected on another page - but using the same RadRating control

Thanks in advance

 


Indy
Top achievements
Rank 1
 answered on 15 Nov 2016
5 answers
336 views
Hi,

I have telerik Rad Grid Control. I want disabled row to be checked even if someone check/uncheck select all functionality. So I have written below Jquery code to handle it.

$(document).ready(function () {
        $("#SelectColumnSelectCheckBox").click(function () {
            var checked = this.checked;                      
            if (checked == false) {
                $("#ctl00_MainContent_gridRules_ctl00 tbody tr").each(function () {
                    if ($(this).attr('disabled') == "disabled") {
                        $(this).find("input").attr('checked', 'checked');
                    }
                });
            }
        });
    });

I want to change the hardcoded value of grid (ctl00_MainContent_gridRules_ctl00) and Select all checkbox (SelectColumnSelectCheckBox) to clientID.

I have tried <%=Radgrid.ClientID%> but that does not work.

Does anyone know how to get the clientID of the telerik RAD grid?

Please give me reply sooner as this is urgent for me.

Thanks in advance.

Regards,
Devendra.
Marin Bratanov
Telerik team
 answered on 15 Nov 2016
4 answers
124 views

Hi,

I have a "Rneame" context menu on my treeview that gets handled client-side and initiates node.startEdit(); The node goes into edit mode & the user can edit the text and hit enter and all looks fine on-screen.

The problem come during postback though - the node in code-behind still has the old name?

 

function tvwListData_ClientContextMenuItemClick(sender, args) {
 
    var tree = $find("<%= tvwListData.ClientID %>");           
    var node = args.get_node();           
 
    tree.trackChanges();
 
    var item = args.get_menuItem();
    switch (item.get_value()) {
 
        case "Rename":
            node.startEdit();
            break;
 
        case "Delete":
            node.get_parent().get_nodes().remove(node);
            break;
    }           
    tree.commitChanges();
}
Ivan Danchev
Telerik team
 answered on 15 Nov 2016
2 answers
256 views

Hi,

I have a RadGrid inside the EditForm of the main RadGrid:

<telerik:RadGrid runat="server" ID="RadGrid1">
  <EditFormSettings EditFormType="Template">
    <FormTemplate>
      <div>
        <asp:Panel runat="server" ID="Panel1">
          <table><tr><td>
            <telerik:RadGrid runat="server" ID="InnerRadGrid"></telerik:RadGrid>
          </td></tr></table>
        </asp:Panel>
      </div>
    </FormTemplate>
  </EditFormSettings>
</telerik:RadGrid>

 

How can I reach via javascript the InnerRadGrid

I tried using 

RadGrid1.Controls.Add(new LiteralControl("<script type='text/javascript'>window['InnerRadGrid'] = '" + InnerRadGrid.ClientID + "';</script>"));
 var grid = document.getElementById(window['InnerRadGrid']);

 

in RadGrid1_ItemCreated() but id doesn't work.

 

I need it because in the header of some TemplateColumn in the InnerRadGrid I have a checkbox which, when toggled, shoul select/deselect every checkbox in that column. If there is another way to reach this functionality, it'd be fine.

 

Thank you, regards

Nick

Nick
Top achievements
Rank 1
 answered on 15 Nov 2016
3 answers
192 views

On the Telerik site, hyperlinks are not encoded when saving the link in Linkmanager, see screenshot #1.

 

In our application the %20 are once more encoded to %2520 when OK-ing the Linkmanager, see screenshot #2.

 

All ContentFiltering is set Standard, just like the demo site...I am using EditorDialogs/LinkManager.ascx though.

 

Marc

 

Vessy
Telerik team
 answered on 15 Nov 2016
1 answer
292 views

Hi All,
I’m facing a performance problem with a new website that we have developed. After checking the website with Gtmetrix I got bad results for the bellow

Leverage browser caching
Specify a cache validator
Defer parsing of JavaScript

I’m also attaching a Print Screen. I did a research over the web but I didn’t find a solution for my problem.

Do you have any Suggestion?

Marin Bratanov
Telerik team
 answered on 15 Nov 2016
3 answers
162 views
How can I force new item to be saved before user clicks "add new" again. Sometimes user press "add new" by accident and the data will be lost.
Eyup
Telerik team
 answered on 15 Nov 2016
1 answer
455 views

I'm using a dropdownlist with clientdatasource. How can I rebind it to refresh its content ?

Anton
Telerik team
 answered on 15 Nov 2016
1 answer
156 views
I've a RadGrid with, in a NestedViewTemplate, another RadGrid, now I would like to refresh the external RadGrid maintaining the internal RadGrid opened, is this possible?
Konstantin Dikov
Telerik team
 answered on 15 Nov 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?