Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
116 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
83 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
116 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
47 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
50 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
105 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
99 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
36 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
3 answers
218 views
Hi, I'm studying for a Gant Chart.

In the documentation there are two project perfect for me.
Where I can find the source code of these example ?

P.S In the documentation there is a link error.

CONTROLS ==> RadChart ==> Understanding RadChart Types 

Error link DefaultType property or ChartSeries.Type
Yavor
Telerik team
 answered on 07 Mar 2011
2 answers
91 views
hi all
I have 3level RadGrid Hierarchy.
in btn_save that is in out side of my radgrid,I want reach all rows in Hierarchy radgrid(from first level to last level)
how can I do that?
samaneh
Top achievements
Rank 1
 answered on 07 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?