Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
229 views
Hi there,

I'm trying to get the RadScheduler to work in an ASP.NET MVC 2 project running locally on IIS 7 Integrated Mode (on Windows Vista).

But I'm always getting this (famous) error message:

"The WebResource.axd handler must be registered in the configuration to process this request

<!-- Web.Config Configuration File -->

<configuration>
   <system.web>
       <httpHandlers>
           <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
       </httpHandlers>
   </system.web>
</configuration>"

I went through all the troubleshooting topics in the documentation and lots of threads in this forum and checked my web.config entrys a thousand times. Still the same problem. This is the part of my web.config relevant for IIS 7 (Integrated Mode):

<system.webServer> 
    [...] 
    <handlers> 
      <remove name="WebServiceHandlerFactory-Integrated" /> 
      <remove name="ScriptHandlerFactory" /> 
      <remove name="ScriptHandlerFactoryAppServices" /> 
      <remove name="ScriptResource" /> 
      <remove name="MvcHttpHandler" /> 
      <remove name="UrlRoutingHandler" /> 
      <!--<add name="Telerik_Web_UI_WebResource" verb="*" path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>--> 
      <add name="Telerik_Web_UI_WebResource" verb="*" path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode" type="Telerik.Web.UI.WebResource" /> 
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
      <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 
    </handlers> 
</system.webServer> 

It doesn't work for both the commented and uncommented "Telerik_Web_UI_WebResource" line.

If I run my project on the VS Development Server it works perfectly.

The error only arises in Views where I have the RadScheduler (or another RadControl). Here's a View which gives an error:

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Coach.Master" Inherits="System.Web.Mvc.ViewPage" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 
    Scheduler 
</asp:Content> 
 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 
 
    <h1>Scheduler</h1> 
     
     
    <telerik:RadScheduler ID="CoachScheduler" runat="server" ProviderName="CoachSchedulerProvider"> 
    </telerik:RadScheduler> 
 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
    </telerik:RadScriptManager> 
</asp:Content> 


I even tried the demo attached here, but I get the same error when running on IIS 7, but not on Development Server.

My conclusion was that either something is wrong in the configuration of IIS 7 or the error arises from the fact that the URLs are different on IIS 7 (e.g. "http://localhost:50000/..." on Development Server but "http://localhost/MvcApplication/..." on IIS).

I can see all the handlers registered in the above web.config section in the handlers list in IIS, so I don't think I've done anything wrong here..

Thanks in advance.
Fabian Gehri
Top achievements
Rank 1
 answered on 24 Feb 2010
3 answers
143 views
Hi,

I need to dynamically create my columns in a radgrid, because I do not know how many columns I need to display.

The data to be displayed is fetched in the event handler of a button. When I receive that data I know how many columns to create. Problem is, this event handler is run after Page_Load, which as I understand it is the place where you have to create your grid columns for them to show up.

The result at the moment is that the grid is not shown until I click the button again, at which point the data is available at Page_Load and the columns is created accordingly. How can I solve this problem? I obviously want the result to be displayed after only one post back!

Best regards
R N
Top achievements
Rank 1
 answered on 24 Feb 2010
3 answers
243 views
I have the following telerik:RadPanelBar Declared in a default.aspx page 

 

<telerik:RadPanelBar runat="server" ID="radIdentifyPanel" Skin="WebBlue" Width="100%" Height="100%" ExpandMode="FullExpandedItem">  
<Items> 
<telerik:RadPanelItem Text="Details" Expanded="true" runat="server">  
<Items> 
<telerik:RadPanelItem runat="server">  
<ItemTemplate>   
<telerik:RadColorPicker ID="RadColorPicker1" runat="server" AutoPostBack="True" Preset="Standard">   
</telerik:RadColorPicker>   
<asp:Label ID="lblTest" runat="server" Text="Change me"></asp:Label>   
<asp:Panel ID="IdentifyFSDetails" runat="server">   
Dynmanic Details here!   
</asp:Panel>   
</ItemTemplate>   
</telerik:RadPanelItem>   
</Items> 
</telerik:RadPanelItem> 
....  
</Items>   
<ExpandAnimation Type="None" />   
</telerik:RadPanelBar> 

I am trying to dynamically insert some html into the asp:Panel IdentifyFSDetails but can not seem to get access to it using the following javascript clientside. 

var panelbar = $find("radIdentifyPanel");   
var item = panelbar.findItemByText('Details');   
var test1 = item.findControl("IdentifyFSDetails");   
var test2 = item.findControl("lblTest");  
 
 

 

both test1 and test2 return null while if I try getting the reference to the color picker like the example it does get a reference to it.
All I am trying to do is insert the dynamic html into the panel.
What am I doing wrong?

 

 

 

Andrew
Top achievements
Rank 1
 answered on 24 Feb 2010
2 answers
183 views

Hi:

We've had an ongoing issue that your associate, Daniel, has spoken to in the past. Unfortunately the issue still persists and it would be helpful if we could figure it out and move on. We appreciate any help you can provide.

We desire to bind to a RadGrid using Client-side techniques to avoid long waits for our users.

The binding needs to support adding rows to the grid, updating information currently in the grid, and deleting rows from the grid.

We have followed your examples and have produced JavaScript routines and Web Services to do what is needed. We are confident that this code is correct because much of the client-side functionality works very well.

We can delete any row in our grid and, if we choose delete all of the rows. This functions perfectly.

We can update any row in the grid. Again this functions perfectly.

The problem comes when we try and insert new rows into the grid. When we do this the grid actually does contain the newly added row. We can see the data in the JavaScript Object. However when the Grid is ‘redrawn’ on the page, the newly added row never appears. The following code snippet is where we believe the problem to be occurring (or not such as the case may be)…

 

        var numofRows = new Number(result.length);

 

        var tableView = $find("<%= SummaryGrid_West.ClientID %>").get_masterTableView();

        tableView.set_dataSource(result);

        tableView.set_virtualItemCount(numofRows);

        tableView.dataBind();

 

        if (result.length != 0)

        {   

            var row = tableView.get_dataItems()[numofRows-1]

            row.set_selected(true);

            row.set_visible(true);

        }       

        tableView.dataBind();

       

        var grid = $find("<%= SummaryGrid_West.ClientID %>");

        grid.repaint();

 

 

 As you can see, we  acquire a reference to the last row in the grid --- the one that was just added, select it, and explicitly  make it visible. This does not allow us to see the newly added row.

Curiously if we change the second dataBind() call to be instead tableView.rebind(), the new row is displayed --- after a long delay. I am told that this happens because the server side code is called. This is precisely what we are trying to avoid doing and, although it does suggest that the other mechanics of the process are working correctly, we would really prefer to keep all of this functionality on the server side.

It should be noted that, although we have active licenses for your product, we have been unable to utilize the latest release (Q4) because of some serious issues with the cosmetic rendering of your controls. I believe we are still on the Q3 – 2008 controls and perhaps this might explain some of our issues.

Hopefully you can help us with these issues. If, in fact, the best solution involves moving to the Q4 2009 controls, then we would need help in assuring thet they render correctly.

Thanks for your efforts in this matter.

Daniel
Telerik team
 answered on 24 Feb 2010
1 answer
75 views
hi and excuse me for my english i am opening a html and showing into the editor, all ok, but any images i cant see because i dont know why the editor parte any ""&quot;" between the links and broke the link. For example:
http://www.casetamunicipal.com/&quot;images/bordeprincipal.gif&quot;
i was tryed to remove the &quot; characters in server code but dont work. How can i remove this? whats the problem?  why the editor render this characters?

  Dim sr As New StreamReader(raizfisica, System.Text.Encoding.Default)

        'objStreamReader = File.OpenText(FILENAME)
        Dim contents As StringBuilder = New StringBuilder(sr.ReadToEnd())
        sr.Close()
          
        contents.Replace("&quot;", "") '---- DONT WORK
       Me.RadEditor1.Content = contents.ToString
Rumen
Telerik team
 answered on 24 Feb 2010
1 answer
339 views
Hi

When i try to save my RadDateTimePicker.SelectedDate property with no date selected to the database, it returns with an error (which value should i assign to this RadDateTimePicker?):

Nullable object must have a value?

D



robertw102
Top achievements
Rank 1
 answered on 24 Feb 2010
12 answers
522 views
The splitter is working well, but there is one thing I am not sure how to do.  I am using the 100% height technique, a footer, a header, left pane, right pane.  I created a treeview in the left pane and right pane windows.  When the treeview expands out, it creates a scroll bar for both panes.  If I turn scrolling off on the pane, the treeview then is hidden behind the footer.  Is it possible for when either pane has content that expands beyond the available height that the footer gets pushed down and the browser scroll appears instead of the pane scroll.  I like how it works now that the footer sticks to the bottom of the browser window, even when you resize by using the splitters offset property, but I want the footer to get pushed down when the left, or right when the content expands.
I've seen this work using div tags, but am not sure how to do it with the rad splitter.  Below is code containing what I described above.

Thanks,

Risso

<%@ 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"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head id="Head1" runat="server">     
    <title>Untitled Page</title>    
    <style type="text/css">     
    html, body, form     
    {     
        height: 100%;     
        overflow: hidden;     
        margin: 0px;     
        padding: 0px;     
    }     
    </style>    
</head>    
<body>    
    <form id="form1" runat="server">   
 
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
       <div id="header" style="height:100px;background-color:Gray;">Header</div>    
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%"     
            HeightOffset="200">     
            <telerik:RadPane ID="RadPane1" runat="server" BackColor="LightBlue" Width="215" > 
                <asp:TreeView ID="TreeView1" runat="server">  
                    <Nodes> 
                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                        <asp:TreeNode Text="New Node" Value="New Node">  
                            <asp:TreeNode Text="New Node" Value="New Node">  
                                <asp:TreeNode Text="New Node" Value="New Node">  
                                    <asp:TreeNode Text="New Node" Value="New Node">  
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                    </asp:TreeNode> 
                                    <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                    <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                    <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                </asp:TreeNode> 
                                <asp:TreeNode Text="New Node" Value="New Node">  
                                    <asp:TreeNode Text="New Node" Value="New Node">  
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                    </asp:TreeNode> 
                                    <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                </asp:TreeNode> 
                                <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                            </asp:TreeNode> 
                        </asp:TreeNode> 
                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                    </Nodes> 
                </asp:TreeView> 
            </telerik:RadPane>    
            <telerik:RadSplitBar ID="RadPaneSplitBar1" runat="server" CollapseMode="forward" /> 
            <telerik:RadPane ID="RadPane2" runat="server" BackColor="green">  
                <asp:TreeView ID="TreeView2" runat="server">  
                    <Nodes> 
                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                        <asp:TreeNode Text="New Node" Value="New Node">  
                            <asp:TreeNode Text="New Node" Value="New Node">  
                                <asp:TreeNode Text="New Node" Value="New Node">  
                                    <asp:TreeNode Text="New Node" Value="New Node">  
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                    </asp:TreeNode> 
                                    <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                    <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                    <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                </asp:TreeNode> 
                                <asp:TreeNode Text="New Node" Value="New Node">  
                                    <asp:TreeNode Text="New Node" Value="New Node">  
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                    </asp:TreeNode> 
                                    <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                                </asp:TreeNode> 
                                <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                            </asp:TreeNode> 
                        </asp:TreeNode> 
                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                        <asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode> 
                    </Nodes> 
                </asp:TreeView> 
              
            </telerik:RadPane>    
        </telerik:RadSplitter>    
        <div id="footer" style="height:100px;background-color:Gray;">Footer</div>    
    </form>    
 
</body> 
</html> 
 
AL
Top achievements
Rank 1
 answered on 24 Feb 2010
2 answers
86 views
I've gone through the thread in Asp.net editor but can't find a solution. I added createRestorePoint to my javascript function so that any pasting would occur on the last cursor location and not at the start of the radeditor and while it works fine on Mozilla, in IE8 it the pasteHTML replaces the entire content every time. My code is as below.

<input type='button' id='cmdDynEmailField' value=' >> ' onclick='SetValueInBody()' unselectable='on' /> 


function SetValueInBody() {
  var _dllGetDynamicFieldKey = $find('" + _dllGetDynamicFieldKey.ClientID + "'); 
  var _txtBody = $find('" + _txtRadEditor.ClientID + "'); 
  var _restorePoint  = _txtBody.createRestorePoint(); 
  _restorePoint.Select(); 
  _txtBody.pasteHtml(_dllGetDynamicFieldKey.get_value()); 
} 

Please ignore the syntax of the two $find statements, the javascript is built up in a string on the server side
Rumen
Telerik team
 answered on 24 Feb 2010
3 answers
62 views
I've been using the Treeview with the verson 2009.3.9.1103 with ASP.NET MVC without any problems, but the newest version (2009.3.1314.35) the context menu fails without making a short change that is demonstracted below. Here is the area for the area occuring:
if(!$telerik.isIE||document.readyState=="complete"||document.readyState=="interactive"){this._getContextMenuElement().parentNode.removeChild(this._getContextMenuElement()); 
var b=theForm||document.body; //<--- Error here: 'theForm' is undefined
b.insertBefore(this._getContextMenuElement(),b.firstChild); 
this._detached=true; 
}

Complete Error:
'theForm' is undefined  Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_MainContent_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1314.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a603d133a-f943-435d-a80d-57457cc55f4a%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3ae524c98b%3ae330518b%3ac8618e41%3ae4f8f289, line 5622 character 1

The fix is simple:
1. Add a form to the page (anywhere, doesnt require the control inside either) then give it an id;
2. Add a simple javascript script at the end of the page: var theForm = document.getElementById("form1");

The form element isnt required in this instance, so is there a new setting that i have missed to supress the error and continue presenting the context menu?

I realize the control is out of comfort zone here, but is there an alternative fix?
Dimitar Milushev
Telerik team
 answered on 24 Feb 2010
1 answer
116 views
Hello Team,

I have modified the appearance of the RadUpload control by removing the Select and remove buttons for each row (see attachment). Instead, I show file open dialog on click of the Add button. I also have added RadProgressArea and RadProgressManager controls to the form.

The issue is if I use the Out of the box functionality, the files are uploaded with the ProgressArea being shown. But if i add the script, the files are not uploaded. Below is the script i am using.


function

 

appendAttachment(sender, arguments) {

 

 

var fileDialog = sender.getFileInputs();

 

fileDialog[fileDialog.length - 1].click();

 

return true;

 

}

Please Assist
Rohit

Genady Sergeev
Telerik team
 answered on 24 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?