Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views
Hello,

I have the scheduler in one of my pages. It works great on my machine, I am able to add appointments to it with out a problem. After I publish it the first time I load the page it will usually display correctly. The second time it throws an error. Then the next day it seems fine for a while but eventually throws the error again just for loading the page. I am not sure what the problem is or why it is so temperamental. The base type of the page had to be changed to Telerik.Web.UI.RadAjaxPage because it is hosted on godaddy and runs in medium trust.

I thank you in advance for any insight you may have.

Below is the error:

Server Error in '/' Application.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
   System.Reflection.RuntimeModule.GetTypes() +4
   System.Reflection.Assembly.GetTypes() +78
   System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly() +32
   System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load() +25
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData) +160
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors) +166
   System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +316
   System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +53
   System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage) +93
   System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) +130
   System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +572
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +77
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
   Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.GetAppointments(RadScheduler owner) +160
   Telerik.Web.UI.SchedulerProviderBase.GetAppointments(ISchedulerInfo schedulerInfo) +27
   Telerik.Web.UI.RadScheduler.BindAppointments() +113
   Telerik.Web.UI.RadScheduler.PerformSelect() +97
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
   Telerik.Web.UI.RadScheduler.EnsureDataBound() +12
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +63
   Telerik.Web.UI.RadScheduler.CreateChildControls() +10
   System.Web.UI.Control.EnsureChildControls() +102
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

Plamen
Telerik team
 answered on 22 Feb 2012
1 answer
121 views
Hi,
I'm using asp.net ajax tool and I create dynamically 3 RadNumeric TextBoxes with names  RadNumTxt1, RadNumTxt2, RadNumTxt3. 
I create the Text Boxes as follow:
            for (int i = 1; i <= 3; i++){
                    RadNumericTextBox RadNumTxt = new RadNumericTextBox();
                    RadNumTxt .ID = "RadNumTxt" + i;
                    RadNumTxt.AllowOutOfRangeAutoCorrect = true;
                    RadNumTxt.Culture.CultureTypes.Equals("en-US");
                    RadNumTxt.DataType.BaseType.Equals("System.Double");
                    RadNumTxt.Display = true;
                    RadNumTxt.Enabled = true;
                    RadNumTxt.Visible = true;
                    RadNumTxt.ClientIDMode = System.Web.UI.ClientIDMode.Static;
                    PanelCompMembers.Controls.Add(RadNumTxt);
            }
After rendering the page in browser the ids of the  Numeric Texts Boxes have been changed into RadNumTxt1_text, RadNumTxt2_text, RadNumTxt3_text. 

When I try to change the value of these inputs with javascript in client by using the new ids of the inputs like "RadNumTxt1_text" I change them, but when click on them the values that I have change disappeared.  What I am doing wrong?

Veli
Telerik team
 answered on 22 Feb 2012
9 answers
179 views

Hello.

In the web application I have been developing, there is a web page page that uses the RadScheduler component with web service binding.
The RadScheduler component displays appointments grouped by resources.
Since the resources are loaded by a stored procedure that requires input parameters, class SchedulerInfo has been extended:

public class SchedulerInfoExt : SchedulerInfo
{
 public Int16 ClubId { get; set; }
 public String ResourceType { get; set; }
 public String MembershipNumber { get; set; }
 public String InsertResult { get; set; }
  
 public SchedulerInfoExt(ISchedulerInfo baseInfo, Int16 clubId, String resourceType, String membershipNumber) : base(baseInfo)
 {
  ClubId = clubId;
  ResourceType = resourceType;
  MembershipNumber = membershipNumber;
  InsertResult = "";
 }
  
 public SchedulerInfoExt()
 {
 }
}

In the web page, a RadDock component is used to implement a form that allows users to create appointments.
In the Data Provider class, the Insert method validates the business rules and creates the appointment. The scheduler info property InsertResult is set by the Insert method, indicating if the insertion was successful, if there was an error or if there was a violation of the business rules.

On the client side, function AppointmentsPopulated, associated with event OnClientAppointmentsPopulated, is supposed to display a message based on the content of the scheduler info property InsertResult, informing the user if the appointment was created or if there was an error.

Is it possible to access the scheduler info property InsertResult from the client side function AppointmentsPopulated?

Thank you in advance.
Paulo

Plamen
Telerik team
 answered on 22 Feb 2012
1 answer
115 views
I have tried everything I know of to override the inline zIndex of 7000 that is used for RadGrid Header Context menu.
I can see that the rad grid's Context Menu element's style's zIndex is changed to a higher number than the AjaxControlToolkit's ModalPopup in which the RadGrid is shown but still the Context menu appears behind the ModalPopup. My previous method for Q3 2011 where I specified a class for the Header Filter Menu

.modalRadFilterMenu
{
   z-index:111001 !important;
}

stopped working after 2011-3-1305 introduced inline styling for the context menu.

I used both the Client events HeaderMenuShowing and GridCreated to set the zIndex - the code fired the Zindex was changed but the menu still appears behind the ModalPopup - what next??

                    function HeaderMenuShowing(sender, eventArgs) {
                       var mnEle = eventArgs.get_menu().get_element();
                       mnEle.style.zIndex = 111011;
                     }
                     function GridCreated(sender, eventArgs) {
                        var grid = sender;
                        var headerContextMenu = grid.get_headerMenu();
                        var grEle = headerContextMenu.get_element();
                        grEle.style.zIndex = 111011;
                     }
Veli
Telerik team
 answered on 22 Feb 2012
1 answer
54 views
Hi,
I need a usercontrol to be used as EditForm in RadGrid. When I click on "Edit" in RadGrid, the aforementioned usercontrol appears. Up till now, everything can be acheivable. However, after the usercontrol appears, all the bottom rows are being scrambled. I need your assistance in enabling autoscrollbar so that all the bottom rows are adjusted automatically i.e. enabling autoscrollbar option.

I do not want to use popupsettings auto-scrollbar as I would like the usercontrol to be displayed in the form. I even tried to enable auto-scrollbar option for the RadGrid but it didnt serve my purpose.

Could you please advice a resolution at the earliest????
Veli
Telerik team
 answered on 22 Feb 2012
1 answer
100 views
We are experiencing following error in .NET web application
"Microsoft JScript runtime error: '_events' is null or not an object"

We are using ASP.NET AJAX build version 2011.3.1305.40
James Campbell
Top achievements
Rank 1
 answered on 22 Feb 2012
1 answer
78 views
The problem i have is , My HTML look good on the Editor but when on exported PDF all the table size and TD sizes are ignored !!! , i tried to use inline css , external css , but still same result ,
i learned my HTML cant have HTML , BODY tag !! where can i find document about what is supported on PDF what is not?
i'm using latest version of Telerik component 
 
Princy
Top achievements
Rank 2
 answered on 22 Feb 2012
0 answers
58 views
Dear Friends,
                      I have work out the Rad Inline Grid,its working properly without layer architechture,when i am trying to implement it into layered architechture am getting some errors.

I got the code from below link,can you please explain me that how to apply this in layered architecture.

http://www.telerik.com/community/code-library/aspnet-ajax/grid/manual-insert-update-delete-operations-using-auto-generated-editform-with-sql-statements-from-the-code-behind.aspx
Aarthi
Top achievements
Rank 1
 asked on 22 Feb 2012
3 answers
129 views
I was curious if the RadCalendar can be used in a monthly format with listing out details for each day.

Click here to see an example.

Thanks in advance.

Matt
Princy
Top achievements
Rank 2
 answered on 22 Feb 2012
1 answer
79 views
When I dynamically instantiate a RadGrid server side and insert it into a placeholder control I have no problems.  If I create the same RadGrid with identical properties declaratively, I get the error: "Error: Sys.InvalidOperationException: A control is already associated with the element.".  If I remove the AllowScroll property from the declarative RadGrid, the error goes away, but this isn't what I'm looking for.  Since I will be reusing the same grid over several pages I created a user control that wraps the RadGrid, but I am still getting the error.  Leaving out AllowScroll removes the error but, again, this isn't what I need.  I tried adding the AllowScroll property in the pre-render event, but I get the same error.  I can't figure out how the same grid created dynamically works when creating it declaratively doesn't. 

Here's the dynamic version (c#):
            RadGrid grid = new RadGrid();
            grid.ID = "GridName";
            grid.Skin = SkinName;
            grid.CssClass = "gridCss";
            grid.AllowMultiRowSelection = true;
            grid.MasterTableView.HeaderStyle.Wrap = false;
            grid.MasterTableView.HeaderStyle.Height = Unit.Pixel(50);
            grid.MasterTableView.AutoGenerateColumns = true;
            grid.ClientSettings.Scrolling.AllowScroll = true;
            grid.ClientSettings.Scrolling.UseStaticHeaders = true;
            grid.ClientSettings.Selecting.AllowRowSelect = true;
            grid.ClientSettings.AllowKeyboardNavigation = true;

and here's the declarative version:
<telerik:RadGrid runat="server" ID="GridName" AllowMultiRowSelection="true" Skin="SkinName">
    <ClientSettings AllowKeyboardNavigation="true" KeyboardNavigationSettings-AllowSubmitOnEnter="false">
        <Selecting AllowRowSelect="true" />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
    <MasterTableView HeaderStyle-Wrap="true" HeaderStyle-Height="50px"> 
    </MasterTableView>
</telerik:RadGrid>



Shinu
Top achievements
Rank 2
 answered on 22 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?