Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
213 views
We've uninstalled Telerik RADEditor from our Sharepoint 2010 environment. The features were deactivated and uninstalled. The solution was retracted and uninstalled. But we still see remnants of the RADEditor on one of our front ends. This is the message we receive when we try to add a new task to a list:

Server Error in '/' Application.

Could not find a part of the path 'c:\_wpresources\RadEditorSharePoint\5.5.1.0__1f131a624888eeed\Resources\ListToolsFile.xml'.

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.DirectoryNotFoundException: Could not find a part of the path 'c:\_wpresources\RadEditorSharePoint\5.5.1.0__1f131a624888eeed\Resources\ListToolsFile.xml'.

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:

[DirectoryNotFoundException: Could not find a part of the path 'c:\_wpresources\RadEditorSharePoint\5.5.1.0__1f131a624888eeed\Resources\ListToolsFile.xml'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +239
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +2580
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +94
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +121
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +65
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +76
   System.Threading.CompressedStack.runTryCode(Object userData) +118
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +122
   System.Xml.XmlTextReaderImpl.OpenUrl() +5027836
   System.Xml.XmlTextReaderImpl.Read() +152
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +165
   System.Xml.XmlDocument.Load(XmlReader reader) +134
   System.Xml.XmlDocument.Load(String filename) +95
   Telerik.Web.UI.RadEditor.get_ToolsFileContent() +331
   Telerik.Web.UI.ToolsFileLoader.LoadColors(EditorColorCollection colors) +67
   Telerik.Web.UI.RadEditor.LoadToolsFile(Boolean loadOnlyEmptyCollections) +179
   Telerik.SharePoint.RadTextField.OnLoad(EventArgs e) +65
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.4961; ASP.NET Version:2.0.50727.4955 


Where do we remove the references so this doesn't appear? I don't see any references in the master pages or web.config. Any help is appreciated.

Thanks!
Stanimir
Telerik team
 answered on 03 Oct 2011
1 answer
89 views
Hi Telerik,

On clicking on Rating i need to display a radwindow or a popup with a textbox and button in it,a little bit similar to the one that you have given in your demo.http://demos.telerik.com/aspnet-ajax/rating/examples/rateandleavecomment/defaultcs.aspx.

Thanks,
Praveen
Slav
Telerik team
 answered on 03 Oct 2011
1 answer
89 views
I noticed that when I use the Telerik controls it adds a bunch of Http handlers and http modules, including a RADCompression one.  Can I assume the RAD compression handler compresses the AJAX controls (.axd files)?
Johny
Top achievements
Rank 1
 answered on 03 Oct 2011
7 answers
141 views
Hi all,

I have found out that when my data for x axis has mixed string and int values (even though they come in as "strings'" from the DB), I get an exception "Input string was not in a correct format." Looking at the call stack I see that it fails converting ToDouble.

Do you know any workarounds?

Note, this is a generic/dynamic solution, so I don't know what kind of data comes in. I allow users to select fields on the fly which they want to display on the chart. Then, I have code to populate the grid:

qbChart.Series.Clear();
t
his.qbChart.DataGroupColumn = this.ddlGroup.SelectedValue;
this.qbChart.PlotArea.XAxis.DataLabelsColumn = this.ddlX.SelectedValue;
sdsResults.ConnectionString = cm.css.ConnectionString;
sdsResults.SelectCommand = SQLString;             
this.qbChart.DataBind();

I would like to stick with sql datasource. IAlso, I do not have an option to convert values to int in DB.

Thank you.
Yavor
Telerik team
 answered on 03 Oct 2011
1 answer
138 views
Hi everybody

Can you please tell me how to fix the width of  columns.I have a radgrid.Coumns will be added to the existing grid depending on the selection in the radcomobobox.When I treid to add the columns the already existing columns start shriking .how to prevent this?


Thanks & regards
Princia D
Shinu
Top achievements
Rank 2
 answered on 03 Oct 2011
2 answers
79 views
hi,
i wanna know if i can add update/insert/delete functionality to the grid

and if it can genreate automatically, i tried AllowAutomaticUpdates="true" and its dont work


yaniv
Top achievements
Rank 1
 answered on 03 Oct 2011
1 answer
400 views
Hi All,

 I have created a radgrid .Rows inside the radgrid will depend on the selection made in the RadCombobox.So I have placed both Radgrid and  RadCombobox inside the Updateapnel ,because I don't want any postback.But the problems is whenever I change the items in Radcombobox I get Scripting error like "Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'grdCustomerSuppliedRequirementsPanel'. If it is being updated dynamically then it must be inside another UpdatePanel".can you please tell me the solution for this.

Thanks in Advance
Princia D

Princy
Top achievements
Rank 2
 answered on 03 Oct 2011
1 answer
334 views
I am using a class that is derived from the RadGrid...

    public

 

 

class RadGridExport : RadGrid

We are using the native PDF export features of the RadGrid control.  I would like to be able to insert an image (corporate logo) into the beginning of the pdf file (above the data table data).

I found the OnPDFExporting() event and decided to override it and thus access the RawHTML stream. 
I then attempted to add an image to the HTML via the <img> element:

 

 

 

 

 

 

 

protected override void OnPdfExporting(GridPdfExportingArgs e)

 

{

 

 

 

 

base.OnPdfExporting(e);

 

 

 

string newHTML = string.Empty;

 

 

 

string addHTML = string.Empty;

 

newHTML = e.RawHTML;

 

 

//THIS WORKS

 

addHTML =

 

@"<img alt='test' src='../images/corp_logo.gif'/>";

 

 

 

//THIS DOES NOT WORK (where URL is correct and resolvable)

 

addHTML =

 

@"<img alt='test' src='https://mycorp.net/pages/Custom/Images/corp_logo.gif'/>";

 

newHTML = addHTML + newHTML;

e.RawHTML = newHTML;

}

 

 

The issue that I am running into is that the above technique will work as long as I am using a relative path that resolves within the directory structure of the web application / virtual directory.

However, if I used an absolute path (via http:/ or file:/ or even embedded by data:) that I get an error similar to:

"System.SystemException: Error while creating area : Encountered web exception while fetching image from file:///C:/WORKING/MyProject/MyProject.Controls/Test/https://mycorp.net/pages/Custom/Images/corp_logo.gif: The given path's format is not supported."

Even though I have manually coded the src attribute with a absolute path to a URL... the RadGrid appears to resolve to my web apps directory structure.

Is there any way that I can avoid this behavior and have the src attribute work against an absolute?

Or is there another technique or method recommended for adding an image to a PDF file that is being exported?

Thanks,
M.T.



Shinu
Top achievements
Rank 2
 answered on 03 Oct 2011
1 answer
116 views
How can I refresh a grid using script when I'm using a RadGrid1_NeedDataSource?  I've tried most of all of the sugestions in the forum but nothing seems to work.  I have a time stamp column in my datasource so I can tell when it was last updated.
My last attempt was
function refreshGrid()
{
 $find("<%= RadGrid1.ClientID %>").get_masterTableView().rebind(); 
}

Update information.  I'm using a usercontrol in DotNetNuke6.  I've researched and it seems  that its mostly an issue with the radAjaxManager.  I'm still haveing problems with putting the manager on the parent page programmatically from the user control.  I'm using

Dim manager As New RadAjaxManager()

manager.ID = "RadAjaxManager1"
Me
.Page.Form.Controls.Add(manager)
But I don't think it is getting registered.  If I can't get this last part to work I'm going to have to redo the entire structure.

As a hack work around a put a page refresh in the function OnClientClose

window.location.reload(true);
It's not very smooth but gets the job done for now.  Is there a better way?

Added information: I'm moving this question over to the Ajax forum since it more of an issue with the RadAjaxManager than with the RadGrid.  Sorry for the post but I did not see a way to delete.

 

Thanks

 

 

 

 

 

 

 

 

 

 


Iana Tsolova
Telerik team
 answered on 03 Oct 2011
1 answer
114 views
Hello,

I have a situation where I load a RadRating control alongside a video to allow users to rate it.  I have a client side method attached to the "OnClientRating" event to capture the user entry and save it into the database.

Below it, I have a grid of other videos.  When a user clicks on the one of the videos in the grid, I get the current rating value for that video and try to set it to the rating control via the "Rating.set_value" client side api method.  However, this is causing the control to fire the "OnClientRating" event again, with the current value as the rating.  This causes a new "rating", but it was not initiated by the user, but rather via the the "set_value" method.

Is there a way to NOT fire the OnClientRating event when executing the "set_value" method?  Or, is there another way I should approach this?

Thank you.
Princy
Top achievements
Rank 2
 answered on 03 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?