Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
130 views
Hello,
I am using telerik web controls. it is working fine on local PC. but after uploading on server i am getting error.
The error not coming directly on page. but in system event viewer it is showing.

The error is:
Event code: 3005  
Event message: An unhandled exception has occurred.  
Event time: 1/3/2004 6:37:59 PM  
Event time (UTC): 1/3/2004 5:37:59 PM  
Event ID: 30476a2a191541a8bad4dc292ea42abd  
Event sequence: 3  
Event occurrence: 1  
Event detail code: 0  
  
Application information:  
    Application domain: /LM/W3SVC/1/Root/MySite-1-127176250718281250  
    Trust level: Full  
    Application Virtual Path: /MySite  
    Application Path: C:\MySite  
    Machine name: SERVLEG  
  
Process information:  
    Process ID: 2996  
    Process name: w3wp.exe  
    Account name: NT AUTHORITY\NETWORK SERVICE  
  
Exception information:  
    Exception type: ArgumentOutOfRangeException  
    Exception message: Specified argument was out of the range of valid values. 
Parameter name: utcDate  
  
Request information:  
    Request URL: http://localhost/MySite/WebResource.axd?d=88TXMhwKwpuUzNKATGEUHo_YxF7hf4dbjDOC8EbYgCxAX892iuW87lUx2O-VyqI4MLmM6_fqegn-WFabuD8V_IBlxNw9UINRvZgJl_OjYf81&t=633613964280000000  
    Request path: /MySite/WebResource.axd  
    User host address: 127.0.0.1  
    User:   
    Is authenticated: False  
    Authentication Type:   
    Thread account name: NT AUTHORITY\NETWORK SERVICE  
  
Thread information:  
    Thread ID: 1  
    Thread account name: NT AUTHORITY\NETWORK SERVICE  
    Is impersonating: False  
    Stack trace:    at System.Web.HttpCachePolicy.UtcSetLastModified(DateTime utcDate) 
   at System.Web.HttpCachePolicy.SetLastModified(DateTime date) 
   at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) 
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 
  
  
Custom event details:  
 
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. 
Paresh
Top achievements
Rank 1
 asked on 27 Jan 2009
1 answer
265 views
I have a grid that is a little too large for my page so I want to hide a few of the filter textboxes, is this possible?  I have a checkbox template column on the grid but since I allow filtering the textbox displays for that columns too and I don't want it to.

I also have columns like "State" and "Zipcode" that I want to shrink the filter text box to save room, is there a way to do that?
Shinu
Top achievements
Rank 2
 answered on 27 Jan 2009
2 answers
150 views
I've been able to use a radComboBox with a Webservice to implement the LoadOnDemand feature succesfully but I would like to pass an additional parameter (a UserID) to my webservice via the RadComboBox to allow me to add a WHERE condition on my SQL SELECT.

Can anyone tell me if or how this would be possible please.

Many Thanks
Mark
Dave Whiting
Top achievements
Rank 1
 answered on 27 Jan 2009
4 answers
167 views

Is there is any way to make the objects in the RadTree tree structure have unique ID’s to define them? We are Using Quick Test Professional 9.5 and the tool can record the objects however, there is no property to uniquely define the object.

Need to have some way to have -+ objects used to expand and collapse the tree, the Name field (Node), and the Icons  be able to have unique way to identify them.

Property options to make unique that QTP can recognize: Class, ID

Thanks,
Tim

Isaac
Top achievements
Rank 1
 answered on 26 Jan 2009
2 answers
208 views
I am setting up a new page with nested radsplitters and a radpanelbar on the left acting as a menu. The menu is a sliding pane and the items in the menu(panelbar) are retrieved from a table. In the table I have a hierarchy and right now only the content bar has values. I have 2 navigateURLs in the table so that I can have hierarchy. What I want to happen is when a user clicks on a link on the menu, I set the contentURL to the pane on the right to the navigateURL from the panel. It is setting the contentURL in the javascript, but it is not going to it. It is going the URL set from the table and going to a new page for the url rather than filling up the contentPane. Also, I set the navigateURL in the table to nvarchar(100) and the url is being appended by %20s. How can I just truncate the url?

Here is my code:

 <style type="text/css">
      .RadPanelBar_OFfice2007 .rpGroup, .RadPanelBar_Office2007
      {
          overflow:visible !important;
      }
      html, body, form
     {
       height: 100%;
       margin: 0px;
       padding: 0px;
     }
    </style>
</head>

<body>
    <form id="form1" runat="server">
 
     <telerik:RadScriptManager ID="RadScriptManager1" runat="server" OutputCompression="AutoDetect"></telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px">
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
            style="border: 0px;" />
    </telerik:RadAjaxLoadingPanel>
 
  <telerik:RadSplitter  ID="mainSplitter" runat="server" Orientation="Horizontal" Width="100%"  height="100%" Skin="Office2007"
        VisibleDuringInit="true" >  
    <telerik:RadPane id="topPane" runat="server" Width="100%" Height="10%" >
     <br />
     <center> Acquire Media infomation bar(this will be on every page) </center>
     </telerik:RadPane>
       <telerik:RadSplitBar id="Radsplitbar1" runat="server" collapsemode="Forward" />
       <telerik:RadPane ID="middlePane1" runat="server" Width="100%" Height="80%">
        <telerik:RadSplitter ID= "nestedSplitter" runat="server" Orientation="Vertical" Width="100%" >
         <telerik:RadPane id="middlePane" runat="server"    width="22" scrolling="None" minwidth="22" PersistScrollPosition="true">
           <telerik:RadSlidingZone id="SlidingZone1" runat="server" width="22" clicktoopen="true" SkinID="Office2007" DockedPaneId="Menu"  >
            <telerik:RadSlidingPane id="Menu" title="Menu" runat="server" width="200"  SkinID="Office2007"  >
              <telerik:RadPanelBar ID="RadPanelBar1" runat="server" DataSourceID="panelGroups"  width="180"
                AllowCollapseAllItems="True"  ExpandMode="SingleExpandedItem" OnItemClick="panelClicked"  onclientitemclicked="itemClicked"
                Skin="Office2007" DataFieldID="FieldID" DataFieldParentID="ParentID"
                DataTextField="Text" DataNavigateUrlField="NavigateURL" >
                <CollapseAnimation Type="InOutExpo" Duration="100"></CollapseAnimation>
              </telerik:RadPanelBar>
            </telerik:RadSlidingPane>
           </telerik:RadSlidingZone>
          </telerik:RadPane>
          <telerik:RadSplitBar id="Radsplitbar3" runat="server" collapsemode="Forward" />
          <telerik:RadPane id="contentPane" runat="server" Height="100%" >
          </telerik:RadPane>
         </telerik:RadSplitter>
       </telerik:RadPane>
     <telerik:RadSplitBar id="Radsplitbar2" runat="server" collapsemode="Backward" />
     <telerik:RadPane ID="BottomPane" runat="server" Width="100%" Height="10%" >
         <br />
         <center> legal and contact info (This will be on every page) </center>
     </telerik:RadPane>
  </telerik:RadSplitter>
 
    <asp:SqlDataSource ID="panelGroups" runat="server"
         ConnectionString="<%$ ConnectionStrings:ContentCentralConnectionString2 %>"
         SelectCommand="SELECT * FROM [lauraPanelGroups]"></asp:SqlDataSource>
    </form>
</body>

 <script type="text/javascript">
     function itemClicked(sender, eventArgs) {
         var item = eventArgs.get_item();
         var link = item._linkElement;
         if (link != ""){
             var contentPane = $find("<%=contentPane.ClientID%>");
             contentPane._contentUrl = link;
          }
         var x = 1;
     }                
              
 </script>
</html>

AL
Top achievements
Rank 1
 answered on 26 Jan 2009
2 answers
130 views

Can someone show me (or direct me to) how to dynamically add a ResourceType?

I have tried the code below and I dont have the ResourceType available in the AppointmentCreated event

            ResourceType rt = new ResourceType();  
            rt.DataSource = properties;  
            rt.ForeignKeyField = "PropertyId";  
            rt.KeyField = "PropertyId";  
            rt.Name = "Property";  
            rt.TextField = "title";  
                          
            this.RadScheduler1.ResourceTypes.Add(rt); 
    protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)  
    {  
        Resource prop = e.Appointment.Resources.GetResourceByType("Property");  
 
        if (prop != null)  
        {  
            e.Appointment.CssClass = "ID" + prop.Key.ToString();                  
        }  
    }  
 

Do I need to populate the ResourceType at a particular point in the page life cycle?

This will tell me the property that is associated to the given appointment correct? 


Thanks!
Felipe Saldana
Top achievements
Rank 1
 answered on 26 Jan 2009
4 answers
170 views
Hi, we have an application which is growing rapidly and we use a lot of the Rad-controls which are getting better and better. In this applicatoin we have a master-page which uses the RadSplitter to divide the page in sperate sections. In the header-section we use a UserControl containing the RadMenu and three RadToolbars.

On one of these RadToolbars I have added a button which should invoke the Radspell functionality. I came accross this thread, which is the functionality I try to accomplice, but I cannot get it to work. I tried the following code:

StringBuilder javaScript = new StringBuilder(); 
        javaScript.Append("<script language='javascript'>"); 
        javaScript.Append(rtbMain.ClientID + ".attachEvent('OnClientClick','click_handler');"); 
        javaScript.Append("function clientClick_eventHandler(sender, e)"); 
        javaScript.Append("{"); 
        javaScript.Append("if(sender.CommandName == 'spellCheck')"); 
        javaScript.Append("{"); 
        javaScript.Append("alert(e);"); 
        javaScript.Append("return false;"); 
        javaScript.Append("}"); 
        javaScript.Append("}"); 
        javaScript.Append("</script>"); 
 
        if (!Page.ClientScript.IsStartupScriptRegistered("clientSpellScript")) 
            Page.ClientScript.RegisterStartupScript(Page.GetType(), "clientSpellScript", javaScript.ToString()); 
I use this code in the PreRender of the UserControl. When I use this I get a javascript error saying that the id of the toolbar I reference does not exists. I checked this in the HTML-output, but he Id of the RadToolbar is ok. It is on the page. Then I tried to attach the function clientClick_eventHandler directly in the Radtoolbar. Thus setting OnClientButtonClicked="clientClick_eventHandler" of the toolbar. This doesn't throw the javascript-exception. But when I click the toolbar-button, it cannot find the CommandName of the sender-object. However there is a senderobject. I modifed the javascript function not to check for sender.CommandName but alert(sender). It shows me an alert box with [object Object]. So there is an object present.

The concent of the usercontrol is:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WindowsMenu.ascx.cs" Inherits="UserControls_WindowsMenu" %> 
<%@ Register Src="~/UserControls/Common/shiftPicker.ascx" TagName="ShiftPicker" TagPrefix="mextra" %> 
<div style="width: 100%; z-index: 100;"
    <telerik:RadMenu ID="rdmCommonMenu" runat="server" DataFieldParentID="MenuParentId" 
        Width="100%" CollapseDelay="0" Style="z-index: 100;" DataNavigateUrlField="NavigationUrl" 
        ClickToOpen="True" DataTextField="MenuItem" DataValueField="MenuId" OnDataBound="rdmCommonMenu_DataBound" 
        DefaultGroupSettings-ExpandDirection="Down" DataFieldID="MenuId" meta:resourcekey="Resource1" 
        MaxDataBindDepth="-1" OnLoad="rdmCommonMenu_Load" OnDataBinding="rdmCommonMenu_DataBinding"
        <CollapseAnimation Type="None" Duration="200" /> 
        <ExpandAnimation Type="None" /> 
    </telerik:RadMenu> 
</div> 
<asp:Panel ID="pnlToolbar" runat="server" Width="100%" Height="60px" CssClass="Toolbar" 
    meta:resourcekey="pnlToolbarResource1" OnDataBinding="pnlToolbar_DataBinding"
    <telerik:RadToolBar ID="rtbMain" runat="server" Width="350px" Height="60px" OnButtonClick="rtbMain_OnClick" 
        meta:resourcekey="rtbMainResource1" OnPreRender="rtbMain_PreRender" OnClientButtonClicked="clientClick_eventHandler"
        <Items> 
            <telerik:RadToolBarButton ImagePosition="AboveText" ToolTip="New Document" CausesValidation="False" 
                CommandName="new" ImageUrl="~/Images/Toolbar/new.gif" Text="new" runat="server" 
                meta:resourcekey="RadToolBarButtonResource1" /> 
            <telerik:RadToolBarButton ImagePosition="AboveText" ToolTip="Save" CommandName="save" 
                ImageUrl="~/Images/Toolbar/save.gif" Text="save" runat="server" meta:resourcekey="RadToolBarButtonResource2" /> 
            <telerik:RadToolBarButton ImagePosition="AboveText" ToolTip="Refresh" CausesValidation="False" 
                CommandName="refresh" Text="Refresh" ImageUrl="~/Images/Toolbar/refresh.gif" 
                meta:resourcekey="RadToolBarButtonResource3" runat="server" /> 
            <telerik:RadToolBarButton ToolTip="Back" ImagePosition="AboveText" CausesValidation="False" 
                CommandName="back" Text="Backward" ImageUrl="~/Images/Toolbar/backGreen.gif" 
                runat="server" /> 
            <telerik:RadToolBarButton ToolTip="Forward" ImagePosition="AboveText" CausesValidation="False" 
                CommandName="forward" Text="Forward" ImageUrl="~/Images/Toolbar/forwardGreen.gif" 
                runat="server" /> 
            <telerik:RadToolBarButton ToolTip="Spell Check" Value="spellCheck" CommandName="spellCheck" 
                Text="Spell Check" ImageUrl="~/Images/Toolbar/spellCheck.gif" runat="server" ImagePosition="AboveText" Enabled="false"
            </telerik:RadToolBarButton> 
        </Items> 
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </telerik:RadToolBar> 
    <telerik:RadToolBar ID="rtbMisc" runat="server" Height="60px" Width="350px" OnButtonClick="rtbMisc_ButtonClick"
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
        <Items> 
            <telerik:RadToolBarButton runat="server" ImagePosition="AboveText" ImageUrl="~/Images/Toolbar/client_report.gif" 
                Text="Alg. Rapportage" PostBack="true" CommandName="GeneralReport" CausesValidation="False"
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton meta:resourcekey="RadToolBarButtonResource6" runat="server"
                <ItemTemplate> 
                    <telerik:RadSpell ID="rscSpell" runat="server" ButtonType="None" ControlToCheck="" 
                        meta:resourcekey="rscSpellResource1" SupportedLanguages="en-US,English" /> 
                </ItemTemplate> 
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" ImagePosition="AboveText" ImageUrl="~/Images/Toolbar/voorblad.gif" 
                PostBackUrl="~/ClientFront/ClientFront.aspx" Text="Voorblad" ToolTip="Voorblad" 
                CommandName="ClientPage" /> 
            <telerik:RadToolBarButton runat="server" ImagePosition="AboveText" ImageUrl="~/Images/Toolbar/MextraToday.gif" 
                meta:resourcekey="RadToolBarButtonResource8" PostBackUrl="~/MextraToday/Default.aspx" 
                Text="MeXtra Today" ToolTip="MeXtra Today" /> 
            <telerik:RadToolBarButton ToolTip="Agenda" ImagePosition="AboveText" Text="Agenda" 
                PostBackUrl="~/Appointment/Appointment.aspx" ImageUrl="~/Images/Toolbar/Calendar.gif" 
                runat="server" /> 
            <telerik:RadToolBarButton runat="server" PostBack="False" ToolTip="Help" CausesValidation="False" 
                Visible="False"
                <ItemTemplate> 
                    <div style="margin-top: 5px; margin-left: 10px" onclick="displayHelp('Open');" onmouseover="style.cursor='hand'"
                        <asp:Image runat="server" ID="imgHelp" ImageUrl="~/Images/32X32/help2.gif" /> 
                    </div> 
                </ItemTemplate> 
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" PostBack="False" ToolTip="Filter" CausesValidation="False"
                <ItemTemplate> 
                    <div style="margin-top: 5px; margin-left: 10px" onclick="displayFilter();" onmouseover="style.cursor='hand'"
                        <asp:Image runat="server" ID="imgHelp" ImageUrl="~/Images/32X32/funnel.gif" /> 
                    </div> 
                </ItemTemplate> 
            </telerik:RadToolBarButton> 
        </Items> 
    </telerik:RadToolBar> 
    <telerik:RadToolBar ID="rtbHCP" runat="server" Height="60px" OnButtonClick="rtbHCP_ButtonClick" 
        OnPreRender="rtbHCP_PreRender" Width="170px"
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
        <Items> 
            <telerik:RadToolBarButton runat="server" ImagePosition="AboveText" ImageUrl="~/Images/Toolbar/daily_report.gif" 
                PostBackUrl="~/Reports/DailyReport.aspx" Text="Dagrapportage" CommandName="DailyReport"
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" CausesValidation="False" ImagePosition="AboveText" 
                ImageUrl="~/Images/Toolbar/listview.gif" Text="Overzicht"
            </telerik:RadToolBarButton> 
        </Items> 
    </telerik:RadToolBar> 
</asp:Panel> 
 
Can anyone point me in the right direction?


P.S.: Using the above result in :
Error: ctl00_ctl10_rtbMain is not defined
Source File: http://localhost:64121/WebSite/MextraToday/default.aspx

where ctl00_ctl10_rtbMain is the clientId of the RadToolbar to which the onclientclick event should be wired.
Line: 3069




Stephan
Top achievements
Rank 1
 answered on 26 Jan 2009
2 answers
110 views
I would like to use the Dutch dictionary language for de RadEditor SpellCheck. I have downloaded the available nl-NL.tdf file and placed in in the /App_Data/RadSpell/ folder of my web application. After setting the DictionaryLanguage property within the SpellCheckSettings section of RadEditor to "nl-NL", the spellcheck keeps showing the English dictionary. What is it I'm doing wrong?
Hendrik
Top achievements
Rank 2
 answered on 26 Jan 2009
1 answer
60 views
I'm unable to get any output ie no sign of the gird.  I've copied the settings from the demo except that I have pointed the grid at a stored procedure on a SQL server.  The datasource confirms that just over 400 data rows are being returned

   <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" OnColumnCreated="RadGrid1_ColumnCreated"
        OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound"
        ShowHeader="true" ShowDesignTimeSmartTagMessage="False" ShowStatusBar="True" AutoGenerateColumns="true">
        <HeaderContextMenu  EnableTheming="True">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </HeaderContextMenu>
        <MasterTableView HierarchyLoadMode="Client" AllowSorting="true"  
             DataKeyNames="AllocatedUnitID,AllocatedUnitParentID" Width="100%">
            <SelfHierarchySettings ParentKeyName="AllocatedUnitParentID" KeyName="AllocatedUnitID" />
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
        </MasterTableView>
        <ClientSettings AllowExpandCollapse="true" />
        <FilterMenu  EnableTheming="True">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </FilterMenu>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DEPT_PerformanceReportingConnectionString %>"
        SelectCommand="usp_GetRawPMForOrgHierarchy" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:Parameter DefaultValue="7" Name="OrgandiationId" Type="Int32" />
            <asp:Parameter Name="fromDate" Type="DateTime" />
            <asp:Parameter Name="ToDate" Type="DateTime" />
        </SelectParameters>
    </asp:SqlDataSource>
Georgi Krustev
Telerik team
 answered on 26 Jan 2009
1 answer
56 views
I have a DetailsView control that I'm adding RadTextBox's via the EditTemplate. An DataBinding event handler is added to each rtb.

Everything works fine except when I go to Update or Insert a new record. When it comes time to grab the data values from the textboxes, they either have their default values from the databind or their empty. Because Templates need to be created on every post back, I'm struggling on finding  a solution for persisting the values that were in the textboxes prior to the post back. Any assistance would be greatly appreciated.

Thanks
Alex
Nikolay Rusev
Telerik team
 answered on 26 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?