Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
276 views
I am tasked with developing some funcitonality that will allow users to create snippets of web content. The snippets will contain standard html formatting elements and images. It seems that Rad Editor can accomplish a great deal of what I'm trying to do. I do have some questions about inserting images in the content, though.

1) The images are going to be stored in a central directory on the server, but not necessarily in the application folder structure. I assume its possible to set the loacation of the images folder anywhere on the server by using a virtual directory in the application, and this will allow the images dialog to function. Is there any way to specify the location of the image directory on a networked server, as opposed to the same server as the web application?

2) Because the applicaiton will contain a virtual directory, the specified url for an image will work, even if the image is in a directory which isn't in the application folder structure. However, in some cases we don't want the image urls to reference the web application and its domain. We have created a separate domain which points to the images folder... something like http://imagesrv.com/images/someimage.jpg. When an image is inserted in the editor using the images dialog, is there a way to specify that the  url should be an absolute url based on this pattern http://imagesrv.com/images/ + imageFileName as opposed to the default url which is used by the editor? As a side note, can the same be done when inserting links to files as opposed to images?
Rumen
Telerik team
 answered on 07 Mar 2011
6 answers
87 views

Hi,

I am using Radgrid to display/retrieve/update data in an Access database.

Although I am able to delete and addd records, I cannot update.

There are no errors being displayed....I update the field(s) and press OK to accept the changes...but the new changes are not saved..the listing shows again the previous record/field...

As I said, no errors are shown after pressing ok.

Here is the code below (not all, but I assume is where the problem might be?)

II have not changed or added anything manual to the code.

Thank you in advance

<asp:AccessDataSource ID="AccessDataSource1" runat="server" 
            DataFile="~/App_Data/Registro_Planchas_be.mdb"
            DeleteCommand="DELETE FROM [Tabla Registro Planchas] WHERE [Nº] = ?" 
            InsertCommand="INSERT INTO [Tabla Registro Planchas] ([FECHA], [REFERENCIA], [PROVEEDOR], [REFERENCIA PEDIDO], [MAQUINA], [MARCA], [MEDIDA], [TROQUEL], [DISEÑO]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)" 
            SelectCommand="SELECT * FROM [Tabla Registro Planchas]" 
            UpdateCommand="UPDATE [Tabla Registro Planchas] SET [FECHA] = ?, [REFERENCIA] = ?, [PROVEEDOR] = ?, [REFERENCIA PEDIDO] = ?, [MAQUINA] = ?, [MARCA] = ?, [MEDIDA] = ?, [TROQUEL] = ?, [DISEÑO] = ? WHERE [Nº] = ?">
            <DeleteParameters>
                <asp:Parameter Name="Nº" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="FECHA" Type="DateTime" />
                <asp:Parameter Name="REFERENCIA" Type="String" />
                <asp:Parameter Name="PROVEEDOR" Type="String" />
                <asp:Parameter Name="REFERENCIA_PEDIDO" Type="String" />
                <asp:Parameter Name="MAQUINA" Type="String" />
                <asp:Parameter Name="MARCA" Type="String" />
                <asp:Parameter Name="MEDIDA" Type="String" />
                <asp:Parameter Name="TROQUEL" Type="String" />
                <asp:Parameter Name="DISEÑO" Type="String" />                
            </UpdateParameters>    <br>            </UpdateParameters>

Tsvetina
Telerik team
 answered on 07 Mar 2011
4 answers
123 views
Hi,

I have a RadPanel that has 3 radpanelitems, and for each of these panelitems i have a validation group that checks if all inputs on each panelitem is correct, if they are i want the user to hit a Next button that does the validation, so far all good.

If the validation goes trough in the first panelitem it does a postback and all values is lost, i only want it to validate and then enable and expand the second panelitem clientside, is this possible?

Dimitar Terziev
Telerik team
 answered on 07 Mar 2011
1 answer
84 views
<script type="text/javascript">
//<![CDATA[
  
        function mergeFileUploaded(sender, args) {
        <%= Page.GetPostBackEventReference(LB_doUploadData)%>;
    }
  
            function mergeUplOK(sender, eventArgs) {
                $telerik.$(".mergeuplErr")
                .html('');
            }
            function mergeValidationFailed(sender, eventArgs) {
                $telerik.$(".mergeuplErr")
                .html('<%= GetTranslation("invalidmergefile") %>');
                sender.deleteFileInputAt(0);
            }
     //]]> 
    </script>
  
                    <telerik:RadAsyncUpload ID="RadAsyncUpload_Data" HttpHandlerUrl="~/uploadHandler.ashx"
                        runat="server" MaxFileInputsCount="1" AllowedFileExtensions="csv,xls,xlsx,tsv"
                        OnClientFilesUploaded="mergeFileUploaded" OnClientFileUploading="mergeUplOK" OnClientValidationFailed="mergeValidationFailed" />
                    <div id="uplErr" class="mergeuplErr"></div>
When Silverlight is enabled and both OnClientValidationFailed and OnClientFilesUploaded are defined it seems that it fires the OnClientFilesUploaded even when the Validation failed. When Flash it works as expected. Have I missed anything?
Genady Sergeev
Telerik team
 answered on 07 Mar 2011
1 answer
119 views
Dear forum users

I'm fairly new to the RadControls but I'm learning fast. I've created a rather simple form application which retrieves data from a SQL source and displays this data in a RadGrid. Unfortunately I'm running into following problem: when I try to insert a new row into the gridview using InsertItem this row is not showing up in the gridview. I hope you will be able to help me. Just some background info:

- The RadGrid uses the NeedDataSource event 
- See the screen cap for more info

Thanks in advance!

PS: The two rows displayed in the screen cap are comming from the SQL source. I however removed the data because of privacy issues.
Princy
Top achievements
Rank 2
 answered on 07 Mar 2011
1 answer
49 views

Hi There

I'm having real problems with the  RENT A CAR DEMO.  I have just installed the very latest version of the TELERIK ultimate collection, I tried running the rent a car DEMO but got an error regarding the 
Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7CE17EEAF1D59342"

So I changed the webconfic to :
Telerik.OpenAccess, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7CE17EEAF1D59342"/>

I also chaged all the DLL's in the BIn file to the most recent versions open acces version, asnd did the automatix upgrade wich was prompted by Visual Studio 2010..

BUT...... NOW I GET THE ERROR BELOW...  PLease Tell me what I am supposed to do..  thanks so much

Stu

erver Error in '/Telerik.CarRental.Web' Application.
Could not load file or assembly 'Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
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.IO.FileLoadException: Could not load file or assembly 'Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
 
Source Error:
 
Line 190:            cmbCarsSearch.Items.Add(new RadComboBoxItem(make, make));
Line 191:        }
Line 192:    }
Line 193:
Line 194:    protected void cmbCarsSearch_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
 
 
Source File: c:\Users\Stuart Cook\Documents\Visual Studio 2010\WebSites\CarRental-Origional\CarRental\Telerik.CarRental.Web\DailySchedule.aspx.cs    Line: 192
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' could not be loaded.

Telerik.OpenAccess, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7CE17EEAF1D59342"/></assemblies></compilation>
Veronica
Telerik team
 answered on 07 Mar 2011
3 answers
52 views
I have a RadGrid where one of the columns binds to a date/time value.  I use a GirdDataBound column and it binds correctly on the server.  Using the same source for the data, this fails when I try to bind on the client.  It shows the first record, then just stops. The lines that follow in the Javascript function do not execute.

I removed the DataFormatString and it worked. 

To work around this, I changed the column to a string and formatted it before sending it out to be bound.

I know I'll trip on this again some day (probably soon), so I'd like to get a resolution.

Thanks.
Tsvetina
Telerik team
 answered on 07 Mar 2011
3 answers
109 views
I am using CustomProvider to show files from a shared network drive in a web application hosted on the intranet. How can I allow users to modify files (mostly text files).
Thanks,
Dobromir
Telerik team
 answered on 07 Mar 2011
2 answers
103 views
I am trying to implement sample for binding xmlprovider to Radscheduler.
But I am getting the following error .

Server Error in '/' Application.
--------------------------------------------------------------------------------
 
The given key was not present in the dictionary.
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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
 
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:
 
 
[KeyNotFoundException: The given key was not present in the dictionary.]
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +9627953
   Telerik.Web.UI.Scheduling.ResourceConverter.Serialize(Object obj, JavaScriptSerializer serializer) +180
   System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +85
   System.Web.Script.Serialization.JavaScriptSerializer.SerializeEnumerable(IEnumerable enumerable, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +126
   System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +1311
   System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +194
   System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat) +26
   System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, SerializationFormat serializationFormat) +74
   System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj) +6
   Telerik.Web.UI.RadScheduler.DescribeResources(IScriptDescriptor descriptor, JavaScriptSerializer serializer) +204
   Telerik.Web.UI.RadScheduler.DescribeComponent(IScriptDescriptor descriptor) +972
   Telerik.Web.UI.RadDataBoundControl.Telerik.Web.IControl.DescribeComponent(IScriptDescriptor descriptor) +39
   Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(Control control) +185
   Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(WebControl control) +31
   Telerik.Web.UI.RadDataBoundControl.GetScriptDescriptors() +31
   Telerik.Web.UI.RadDataBoundControl.System.Web.UI.IScriptControl.GetScriptDescriptors() +33
   System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl) +128
   System.Web.UI.ScriptManager.RegisterScriptDescriptors(IScriptControl scriptControl) +49
   Telerik.Web.UI.RadDataBoundControl.RegisterScriptDescriptors() +66
   Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) +120
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +173
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060
 
  
 
 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

My code behind is public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            RadScheduler1.Provider = new XmlSchedulerProvider(Server.MapPath("~/App_Data/Appointments.xml"), true);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
        }
    }
My aspx is

<telerik:RadScheduler runat="server" ID="RadScheduler1">
   </telerik:RadScheduler>

My appointments.xml file is in place in App_Data folder
Pls help
sagar
Top achievements
Rank 1
 answered on 07 Mar 2011
0 answers
37 views
Hi,
i am using radtabstrip in my application.
it works well in all the browsers, but when i checked my application in IE9, the page is in loading state.
this problem occurs when i navigate from one tab to the other and also when the selectedindex of the radcombo box is raised.

but when i add postback trigger to these control it works fine. 

need solution or ideas.......
sunil
Top achievements
Rank 1
 asked on 07 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?