Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
68 views
2 answers
368 views
Hi,

I have so many problems to run RadControls (Scheduler) in ASP.NET MVC.I have read all Your tutorials and examples, but with no success.One of my last exception was : The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). So I added everything to RadCodeBlock. It took me to another exception: Control 'ctl00_RadScriptManager1' of type 'RadScriptManager' must be placed inside a form tag with runat=server. I am totaly lost, trying to find the way from Your examples.

Can You give me a hint, what I am doing wrong?
This is my master page:

<%@ Master Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewMasterPage" %> 
 
<!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> 
        <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> 
    </title> 
     <telerik:RadCodeBlock runat="server" ID="zkouska1"> 
    <%= Html.GeneralScript("jquery-1.3.2.min.js")%> 
    <%= Html.GeneralScript("jquery.crm.additionalMethods.js")%> 
    <%= Html.GeneralScript("MicrosoftAjax.js")%> 
    <%= Html.GeneralScript("jquery.cookie.js")%> 
    <%= Html.GeneralScript("jquery-ui-1.7.2.custom.min.js")%> 
    <%= Html.Css("Site.css")%> 
    <%= Html.Css("themes/base/jquery-ui-1.7.2.custom.css")%> 
    <%= Html.Css("menu.css")%> 
    <%= Html.Css("ModalControl.css") %> 
    <%= Html.GeneralScript("formObserver/jquery.formobserver.js")%> 
   <%= Html.GeneralScript("ui/ui.core.js")%> 
    <%= Html.GeneralScript("ui/ui.dialog.js")%> 
    <%= Html.CustomScript("menu/lib/chili-1.7.pack.js")%> 
    <%= Html.CustomScript("menu/lib/jquery.easing.js")%> 
    <%= Html.CustomScript("menu/lib/jquery.dimensions.js")%> 
    <%= Html.CustomScript("menu/jquery.accordion.js")%> 
     
    <%= Html.RegisterJS(ScriptStyleLibrary.Validation) %> 
    <%= Html.RegisterJS(ScriptStyleLibrary.Tabs) %> 
   </telerik:RadCodeBlock> 
   <telerik:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1"> 
        <StyleSheets> 
            <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.TreeView.css" /> 
            <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Forest.TreeView.Forest.css" /> 
            <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Menu.css" /> 
            <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Forest.Menu.Forest.css" /> 
        </StyleSheets> 
    </telerik:RadStyleSheetManager> 
 
    <asp:ContentPlaceHolder ID="headerContent" runat="server" /> 
</head> 
<body> 
 <script type="text/javascript"> 
     //<![CDATA[ 
     //no conflict with prototype 
     //    jQuery.noConflict(); 
 
     jQuery(document).ready(function() { 
 
         // second simple accordion with special markup 
         $('#navigation').accordion({ 
             active: false, 
             header: '.head', 
             navigation: true, 
             event: 'dbclick', 
             fillSpace: false, 
             animated: 'easeslide' 
         }); 
 
         $(".btn-slide").click(function() { 
             $("#historypanel").slideToggle("slow"); 
             $(this).toggleClass("historyactive"); return false; 
         }); 
     }); 
 
 
     //]]> 
    </script> 
    <p><a id="top" href="#begin-main-content" class="skip-nav">Skip Navigation</a></p> 
    <div id="pg"> 
        <div id="hd"> 
            <div id="hd-toparea"> 
                <img src="~/Content/Images/headbanner.png" alt="Head banner" runat="server" /> 
                <div id="vistoslogo"> 
                    <a href="~/Default.aspx" runat="server"> 
                        <img src="~/Content/Images/vistoscrm.png" alt="VISTOS CRM" runat="server" /> 
                    </a> 
                </div> 
                <table id="flagbox-position"> 
                    <tr> 
                        <td> 
                            <img id="Img2" src="~/Content/Images/layout/2layout_06.png" alt="Flag box" runat="server" /> 
                        </td> 
                        <td id="flagbox"> 
                            <%= Html.ActionLinkImage<HomeController>(i => i.Language("cs-CZ"), "~/Content/images/flags/cs.png","ÄŒesky")%> 
                            <%= Html.ActionLinkImage<HomeController>(i => i.Language("cs-SK"), "~/Content/images/flags/sk.png", "Slovensky")%> 
                            <%= Html.ActionLinkImage<HomeController>(i => i.Language("en-US"), "~/Content/images/flags/en.png", "Anglicky")%> 
                            <%= Html.ActionLinkImage<HomeController>(i => i.Language("fr-BE"), "~/Content/images/flags/fr.png", "Francouzsky")%> 
                        </td> 
                        <td> 
                            <img id="Img3" src="~/Content/Images/layout/2layout_08.png" alt="Flag box" runat="server" /> 
                        </td> 
                    </tr> 
                </table> 
            </div> 
        </div> 
        <div id="sd-nav"> 
            <%= Html.Menu("navigation",true) %> 
        </div> 
        <div id="userstatus"> 
            <% Html.RenderPartial("LogOnUserControl"); %> 
        </div> 
        <div class="historyPanelWrap"> 
            <div id="historypanel"> 
                <%= Html.PageVisitsHistory() %> 
            </div> 
            <div class="slide"> 
                <a href="#" class="btn-slide">Historie</a> 
            </div> 
        </div> 
        <div id="main-nav"> 
            <%= Html.ContextMenu("ctxMenu",true) %> 
        </div> 
        <div id="bd"> 
            <div id="content"> 
                
                <a href="#begin-main-content" title="begin main content" id="begin-main-content"> 
                </a> 
                <asp:ContentPlaceHolder ID="MainContent" runat="server" /> 
            </div> 
            <div id="copyright"> 
               
            </div> 
        </div> 
        <div id="searchPanel"> 
     
        </div> 
    </div> 
     <telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnableScriptCombine="true" /> 
      <% Html.jQuery().ScriptManager().Render(); %> 
</body> 
</html> 
 
Chad Whitacre
Top achievements
Rank 1
 answered on 11 Jan 2010
1 answer
132 views
When I set my grid to use scrolling and set UseStaticHeaders=true, the grid will render with a bar down the middle of the grid and no data. If I set UseStaticHeaders=false the grid renders normally with data. This is my grid code and the attached jpg is of the grid rendering incorrectly. The version of Telerik.Web.UI.dll is 2009.3.1208.35

                                <telerik:RadGrid ID="dgAuditRecs_rad" runat="server" Width="100%" AllowPaging="false" 
                                    AutoGenerateColumns="false" GridLines="Both">  
                                    <MasterTableView TableLayout="Fixed" DataKeyNames="Transaction_Seq_No">  
                                        <Columns> 
                                            <telerik:GridBoundColumn HeaderText="Claim Seq No" DataField="Transaction_Seq_No" 
                                                HeaderStyle-Width="10%" UniqueName="ClmSeqNo" HeaderStyle-HorizontalAlign="Left" 
                                                ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn HeaderText="Audit Action" DataField="Audit_Action" HeaderStyle-Width="10%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridDateTimeColumn HeaderText="Audit Date" DataField="Audit_Date" DataFormatString="{0:MMM dd, yyyy  hh:mm:ss tt}" 
                                                HeaderStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridDateTimeColumn> 
                                            <telerik:GridBoundColumn HeaderText="User ID" DataField="Hew_User_ID" HeaderStyle-Width="10%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn HeaderText="Sub ID" DataField="Submitter_ID" HeaderStyle-Width="10%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn HeaderText="Trans Type" DataField="Transaction" HeaderStyle-Width="10%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn HeaderText="Audit Desc" DataField="Audit_Log_Desc" HeaderStyle-Width="10%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn HeaderText="File Name" DataField="ANSI_File_Name" HeaderStyle-Width="15%" 
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                                            </telerik:GridBoundColumn> 
                                        </Columns> 
                                    </MasterTableView> 
                                    <ClientSettings> 
                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                                    </ClientSettings> 
                                </telerik:RadGrid> 
 
Pavlina
Telerik team
 answered on 11 Jan 2010
2 answers
179 views
Hi,
I just installed Telerik Q3-2009. I just create simple page. Which has Raddock and Titlebartemplate. When i run in browser i get wiered design. here is the code and screen.  I am expecting Title Should come as DipenShah. I am just creating sample. Please help me to resolve it.

<%

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

 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head id="Head1" runat="server">

 

</

 

head>

 

<

 

body >

 

 

<form id="form1" runat="server">

 

 

<telerik:RadScriptManager runat="Server" ID="RadScriptManager1" />

 

 

<table>

 

 

<tr>

 

 

<td>

 

 

<telerik:RadDockLayout ID="RadDockLayout1" runat="server">

 

 

<telerik:RadDockZone ID="RadDockZone1" runat="server" Height="300px" Width="300px">

 

 

<telerik:RadDock ID="RadDock1" runat="server" Skin="Web20" Width="300px">

 

 

<TitlebarTemplate>

 

 

<table>

 

 

<tr>

 

 

<td><asp:Label runat="server" ID="label1" Text="Dipen"></asp:Label>

 

 

</td>

 

 

<td><asp:Label runat="server" ID="label2" Text="Shah"></asp:Label>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</TitlebarTemplate>

 

 

</telerik:RadDock>

 

 

</telerik:RadDockZone>

 

 

</telerik:RadDockLayout>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</form>

 

</

 

body>

 

</

 

html>

 





dipen shah
Top achievements
Rank 1
 answered on 11 Jan 2010
2 answers
172 views
I have Visual Studio 2010 Beta 2 and Windows 7 Ultimate (Italian version).

When turn on design mode often happens this error:

RadGrid - gridAccessiSystem.IO.FileNotFoundException: Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1208.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Impossibile trovare il file specificato. File name: 'Telerik.Web.UI, Version=2009.3.1208.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' at Telerik.Web.Design.RadGridDesigner.GetDesignTimeHtml(DesignerRegionCollection regions) at System.Web.UI.Design.ControlDesigner.GetViewRendering(ControlDesigner designer) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Someone else happens? Is there a solution?

Thanks, Andrea
Andrea Gorin
Top achievements
Rank 2
 answered on 11 Jan 2010
1 answer
113 views
Hello,
 
i am new user and trying to get familiar with telerik radscheduler.

Can you please show me how to write a code for weekly & monthly  recurrence for the appointment in a calendar programatically as  i do not want to use the inbuilt data provider  control . I search all your articles and videos but could not find any example related to task i want to do just found one example for hourly appointment on the following url 


 i try to do something similar in asp.net ajax version but could not can you please help .. correct me if am doing something wrong.

Here is my code ...

   Appointment appointment = new Appointment();
        appointment.Start = Convert.ToDateTime("1/8/2010 10:00:00 AM");
        appointment.End = Convert.ToDateTime("1/20/2010 10:30:00 AM");
        appointment.Subject = "Example";

        RecurrenceRange range = new RecurrenceRange(DateTime.Today.AddDays(1).AddHours(9.5), TimeSpan.FromHours(2.5), DateTime.Today.AddMonths(2), Int32.MaxValue);
        WeeklyRecurrenceRule rule = new WeeklyRecurrenceRule(1, RecurrenceDay.Tuesday , range);
        
        

          appointment.RecurrenceRule = rule.ToString();


        RadScheduler1.InsertAppointment(appointment);
        RadScheduler1.DataBind();

Peter
Telerik team
 answered on 11 Jan 2010
3 answers
180 views

I have a radtooltip that contains a radeditor. The radeditor is rendered when the radtooltip is visible and will allow content input, however none of the editor functionality works i.e. spell check search, ect. My situation is essentially this: aspx page, radtooltip, radeditor in radtooltip, fire tooltip, editor is rendered and functionality does not work. Any Ideas?

Svetlina Anati
Telerik team
 answered on 11 Jan 2010
2 answers
100 views
Hi all,

How do I put the nested grid in edit mode when the master grid is expanded?

Thanks,
Khanh
Khanh
Top achievements
Rank 1
 answered on 11 Jan 2010
2 answers
87 views
Hi,

I am using RadScheduler in my project. I have to highlight current day and current week of month view and week view respectively.
How can I achieve this functionality...
Please help me...

Peter
Telerik team
 answered on 11 Jan 2010
9 answers
416 views
I am trying to hide the print button if the row meets a certain ID. I have this code below in my loop and I cannot seem to get this to work. It keeps giving me an error stating the Object is not set to an instance of an object. 
What is the correct way of getting the control and hiding it within the Rad listview?

 Hope someone can help thanks.

If

 

GetCartItems.Rows(i).Item("ID") = "DZ" Then

 

 

 

Dim PH As PlaceHolder = CType(RadListCart.FindControl("PlaceHolder1"), PlaceHolder)

 

 

 

Dim Imageb As ImageButton = CType(PH.FindControl("PrintButton"), ImageButton)

 

Imageb.Visible =

 

True

 

 

 

End If

 

 

Dwayne Starkey
Top achievements
Rank 1
 answered on 11 Jan 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?