Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
138 views
I am having fits trying to find where the application thinks it should be looking for the 3.1 dll. I am using the EntityDataSource to populate the grid. I get this error:

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


[FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount) +0
   System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +147
   System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +203
   System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +133
   System.Reflection.CustomAttribute.IsCustomAttributeDefined(Module decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable) +183
   System.Reflection.CustomAttribute.IsDefined(Assembly assembly, RuntimeType caType) +100
   System.Reflection.Assembly.IsDefined(Type attributeType, Boolean inherit) +53
   System.Data.Metadata.Edm.ObjectItemCollection.IsSchemaAttributePresent(Assembly assembly) +29
   System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies) +129
   System.Data.Metadata.Edm.ObjectItemCollection.LoadFromAssembly(Assembly assembly) +61
   System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly) +77
   System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +708
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments, Creator qbConstructor) +97
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +154
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +4
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +235
   Telerik.Web.UI.RadGrid.DataBind() +80
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +23
   System.Web.UI.Control.FindControl(String id) +12
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +182
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(Control searcher, String ID) +186
   Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1085
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +8679510
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


When I comment out the grid and the data source the page loads fine. It used to work fine until I installed Enterprise Library 4.1. I never had 3.1 on this machine at all.
Sebastian
Telerik team
 answered on 15 Jun 2009
5 answers
218 views
I am on a deadline and sincerely need any help!

HOW to Refresh the selected node of a treeview, inside a splitter, by calling it from the contentPane.

I have a splitter. Within the Splitter, on left pane I have the TreeView. This Treeview has sections (section1, section2...). Each section has %complete calculation coming from the database. On the right pane is the contentPage, where user fills data and saves it to the database. Each time user fills and saves the data in the rightPane/contentPage. I want the selected node in the treeview to be refreshed.

Any help is appreciated.

Here is my code:--

<telerik:RadSplitter BorderSize="0" style="overflow:hidden" id="RadSplitter1" Skin="Outlook" runat="server" Height="700px"  width="100%">        
        <telerik:RadPane id="RadPane1" runat="server" width="250" CssClass="PanelBarBackground">
            <div class="tree-module">
            <table cellpadding="0" cellspacing="0">
            <tr><td colspan="3">&nbsp;</td></tr>
            <tr>
                <td width="5px">&nbsp</td>
                <td>
                     <telerik:RadTreeView ID="RadTreeView1" OnClientNodeClicked="OnClientNodeClicked" runat="server" Skin="Blue"
                     EnableEmbeddedSkins="False" OnPreRender="RadTreeView1_PreRender" SingleExpandPath="true">
                    <DataBindings>  
                        <telerik:RadTreeNodeBinding Target="ctl00_MiddleContent_ContentPane" />  
                    </DataBindings>
                </telerik:RadTreeView>
                </td>
                <td width="5px">&nbsp</td>
            </tr>
             <tr><td colspan="3">&nbsp;</td></tr>
            </table>
            </div>
        </telerik:RadPane>
        <telerik:RadSplitBar  Visible="true" id="RadSplitbar1" runat="server" collapsemode="Forward"></telerik:RadSplitBar>
        <telerik:RadPane id="ContentPane" runat="server" ContentUrl="about:blank" Scrolling="None">
        </telerik:RadPane>
    </telerik:RadSplitter>
Svetlina Anati
Telerik team
 answered on 15 Jun 2009
4 answers
105 views
I have looked through the forums but have been unsuccessful in finding a solution for my problem.

I have created a dock with a multipage control inside it, the first page has a grid which shows some data and the second page has a chart which shows the data in bar chart format.  i have been successful in adding a RadTabStrip inside the doc and controlling the pages this way.

What I want is a custom toggle button on my dock title bar to change the multipage and change the image client side. I have been successful in implementing this with a postback and just changing the state of the toggle button and changing the page, but i can not find a solution for doing this client side. 

I see that i might have to write Javascript, but i am a novice at writing script.

How can i do this?

thanks

don
ajit
Top achievements
Rank 1
 answered on 15 Jun 2009
14 answers
311 views

Hello

I have installed Q1 2009 version and there is a problem I cannot solve. 

RadScheduler - RadScheduler1There was an error rendering the control.
Cannot create an object of type 'Telerik.Web.UI.IAppointmentFactory' from its string representation '' for the 'AppointmentFactory' property.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %> 
 
<%@ 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 runat="server">  
    <title>Untitled Page</title> 
</head> 
 
<body> 
    <form id="form1" runat="server">  
    <asp:scriptmanager ID="Scriptmanager1" runat="server"></asp:scriptmanager> 
          
    <div> 
            <telerik:RadScheduler ID="RadScheduler1" runat="server" AppointmentFactory=""   
                DataEndField="End" DataKeyField="ID" DataSourceID="ObjectDataSource1"   
                DataStartField="Start" DataSubjectField="Subject" Height=""   
                HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1">  
            </telerik:RadScheduler> 
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"   
                DeleteMethod="DeleteAppointment" InsertMethod="InsertAppointment"   
                SelectMethod="AllData" TypeName="WebApplication2.AppointmentList"   
                UpdateMethod="UpdateAppointment">  
                <DeleteParameters> 
                    <asp:Parameter Name="ID" Type="String" /> 
                </DeleteParameters> 
                <UpdateParameters> 
                    <asp:Parameter Name="ID" Type="String" /> 
                    <asp:Parameter Name="Subject" Type="String" /> 
                    <asp:Parameter Name="Start" Type="DateTime" /> 
                    <asp:Parameter Name="End" Type="DateTime" /> 
                    <asp:Parameter Name="RecurrenceRule" Type="String" /> 
                    <asp:Parameter Name="RecurrenceParentID" Type="Object" /> 
                    <asp:Parameter Name="RecurrenceState" Type="Object" /> 
                </UpdateParameters> 
                <InsertParameters> 
                    <asp:Parameter Name="Subject" Type="String" /> 
                    <asp:Parameter Name="Start" Type="DateTime" /> 
                    <asp:Parameter Name="End" Type="DateTime" /> 
                    <asp:Parameter Name="RecurrenceRule" Type="String" /> 
                    <asp:Parameter Name="RecurrenceParentID" Type="Object" /> 
                    <asp:Parameter Name="RecurrenceState" Type="Object" /> 
                </InsertParameters> 
            </asp:ObjectDataSource> 
    </div> 
    </form> 
</body> 
</html> 
 
 
I have try to delete all property and quickly got another error:

Error Creating Control - RadScheduler1'End' could not be set on property 'DataEndField'.

I alse have to try assign properties on the fly, but I have got many client scripts errors.

Thank you very much.

Tom
Atanas Korchev
Telerik team
 answered on 15 Jun 2009
7 answers
138 views
I'm having troubles getting the rotator to do what it obviously should in IE.  I have a horizontal rotator that uses button clicks to advance the rotator.  The items in the rotator is dynamic based on the user (some users may have 15-20 items, some may only have 1). 

Each item template contains one PNG image that is links to another website.  Each image is a circle (like an M&M) that has a transparency in the PNG to fade to the background (it's a gradual fade with different degrees of transparency, different than a GIF).

It looks fine on first load, but as soon as I scroll either left or right, each item that is displayed has a horrible reaction with the transparency.

I'm using IE7, but it looks fine in both FireFox3 and Safari for PC.  I also noticed that if I do a GIF with a transparent background it works fine, but I can't make it look as nice :)

I have a zipped project with example images I was going to attach, but doesn't look doable.  It is available if anyone needs it to help.
Fiko
Telerik team
 answered on 15 Jun 2009
1 answer
118 views
Hi,
I seem to be having an issue putting a web user control within the tabstrip.  The user control is a based form layout.  Is there something that I'm missing.  Here is the HTML code:

Thanks,
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title></title>  
    <link id="UICSS" rel="stylesheet" type="text/css" href="../Styles/ui.css" /> 
    <style type="text/css">  
        html, body, form  
        {  
            height: 100%;  
            margin: 0px;  
            padding: 0px;  
            overflow: hidden;  
        }  
    </style> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <telerik:RadTabStrip ID="RadTabStrip3" runat="server" Skin="Office2007" Width="100%" 
        MultiPageID="RadMultiPage1" SelectedIndex="0">  
        <Tabs> 
            <telerik:RadTab Text="Lead Details">  
            </telerik:RadTab> 
            <telerik:RadTab Text="Life Insurance">  
            </telerik:RadTab> 
        </Tabs> 
    </telerik:RadTabStrip> 
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
        <telerik:RadPageView runat="server" ID="RadPageView1">  
           <uc2:LeadDetails ID="LeadDetails1"   
                runat="server" /> THIS IS WHERE I LOAD THE CONTROL  
        </telerik:RadPageView> 
        <telerik:RadPageView runat="server" ID="RadPageView2">  
            My Life Insurance  
        </telerik:RadPageView> 
    </telerik:RadMultiPage> 
    </form> 
</body> 
</html> 
Atanas Korchev
Telerik team
 answered on 15 Jun 2009
1 answer
87 views

Hello

I have a custom validator attached to a column.  Here is the item_created event

  protected void radDeferredIncome_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem item = e.Item as GridEditableItem;
                GridTextBoxColumnEditor editor = (GridTextBoxColumnEditor)item.EditManager.GetColumnEditor("AdvanceVarianceComment");
                TableCell cell = (TableCell)editor.TextBoxControl.Parent;
 
                GridNumericColumnEditor proposed = (GridNumericColumnEditor)item.EditManager.GetColumnEditor("ProposedAdvanceTargetAmount");
                GridNumericColumnEditor expected = (GridNumericColumnEditor)item.EditManager.GetColumnEditor("ExpectedAdvanceTargetAmount");
 
                CustomValidator val = new CustomValidator();
                editor.TextBoxControl.ID = "AdvanceVarianceComments";
 
                val.ControlToValidate = editor.TextBoxControl.ID;
                val.ErrorMessage = "*";
                val.Attributes.Add("proposed", proposed.NumericTextBox.ClientID);
                val.Attributes.Add("expected", expected.NumericTextBox.ClientID);
                val.ClientValidationFunction = "advanceVarianceValidation";
                cell.Controls.Add(val);
            }
        }  

I am using in-grid editing. I am passing in 2 attributes that are the clientId's of the 2 textboxes i need to compare. Basically, If the difference
between the 2 textboxes is not zero and a comments textbox is blank that the row is not valid.

The javascript is below.


<

 

telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

<script type="text/javascript" language="javascript">

 

 

function advanceVarianceValidation(sender, args) {

 

 

var isValid = true;

 

 

var proposed = document.getElementById(sender.attributes["proposed"].value).value;

 

 

var expected = document.getElementById(sender.attributes["expected"].value).value;

 

alert(proposed +

',' + expected);

 

 

if ((proposed - expected) != 0) {

 

 

if (args.value == null || args.value.length == 0) {

 

isValid =

false;

 

}

}

 

args.IsValid = isValid;

}

 

</script>

 

 

</telerik:RadCodeBlock>


This works if i am editing the first row but the validation does not fire if i am editing any other.

Anyone have any ideas.



Thanks,


John

 

Georgi Krustev
Telerik team
 answered on 15 Jun 2009
3 answers
113 views
I would like to have a custom edit button in the appointment template of the calendar.  It's fairly simple to get the scheduler to display the edit form on the button click.  However, I would like for the "edit this series/edit this occurrence" box to display when the edit button is clicked on a recurring appointment.  Basically, I would like the edit button in the appointment template to perform exactly the same way as double clicking the appointment.  Any help you could provide would be helpful!

Thanks,
Laura
Veselin Vasilev
Telerik team
 answered on 15 Jun 2009
1 answer
79 views
Hello I am using radtoolbar when view with firefox i see some small black squares. Are there way to fix it? 
Atanas Korchev
Telerik team
 answered on 15 Jun 2009
3 answers
186 views
Hi Everyone,

I am reusing a Radwindow in various places as a modal popup, the problem is if someone presses the backspace key when there is no control with focus the popup loads the contents of the last time the popup was used.
Is there anyway to stop this from happenning?
I assume it has to do with Browser history, is there a way to tell the window not to add the URL into the history each time the window is displayed?

Any ideas welcomed

Antony
Georgi Tunev
Telerik team
 answered on 15 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?