Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
232 views

 

On Main.aspx i have a grid with templateColumn

that contains image populated with another page (ImageUrl="LoadPicture.aspx?Indx=2).

My Main.aspx and LoadPicture.aspx – are in the same folder ("FolderName").

When I try to export to pdf , I get error :

System.Web.HttpException: '/ProgectName/FolderName/LoadPicture.aspx?Indx=2' is not a valid virtual path.
  at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)
  at System.Web.HttpServerUtility.MapPath(String path)
  at Telerik.Web.Apoc.Image.ApocImageFactory.Make(String href)
  at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)

Stack Trace:

[SystemException: System.Web.HttpException: '/ProjectName/FolderName/LoadPicture.aspx?Indx=2' is not a valid virtual path.
   at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)
   at System.Web.HttpServerUtility.MapPath(String path)
   at Telerik.Web.Apoc.Image.ApocImageFactory.Make(String href)
   at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
   at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
   at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
   at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
   at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)]
   Telerik.Web.Apoc.ApocDriver.FireApocError(String message) +78
   Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader) +628
   Telerik.Web.Apoc.ApocDriver.Render(XmlReader inputReader, Stream outputStream) +364
   Telerik.Web.Apoc.ApocDriver.Render(TextReader inputReader, Stream outputStream) +41
   Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +1235
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2113547
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
   Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderPage(HtmlTextWriter nullWriter, Control page) +117
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2113547
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +667
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2113547
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896

 

Blaize
Top achievements
Rank 1
 answered on 16 Oct 2008
4 answers
114 views
Hello,
Here is my scenario.
1. I am using this control as part of webpart (for MOSS integration). I've autopostbacks disabled on this control. I am trying to spit some javascript to be used at runtime on the blur event of the combobox. This is throwing error saying this script is not found even though i've added that script to the page. I can see this script on the page (View source). I'm using this snippet for that.Pleaselet me know how can i resolve this.

 private void SpitWrapperJavascriptToPage()
        {
            string strGetSelectedNodes = "function companyblur(sender, eventArgs)";
            strGetSelectedNodes += " {ctlCompany_onBlur();}";
            Page.ClientScript.RegisterStartupScript(typeof(RadTreeView), "wrapperCompany", strGetSelectedNodes, true);

        }
protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
SpitWrapperJavascriptToPage();
            cmbCompany.OnClientBlur = "companyblur";
}

Atanas Korchev
Telerik team
 answered on 16 Oct 2008
1 answer
197 views
Dear all,

I'm building my own control to display images. I want to link it to a slidder control. I need to attach the client side event OnClientValueChange from javascript on my control behavior. unfortunattely I do not manage to attach to the event. Nothing happen when the event is triggered. What is the real name of the event in javascript and is it an event of the RasSplitter div element?

this is the javascript code used when my imagedisplay client behavior class is initialized

Event declaration

this

 

._slidder$delegates = {

 

onclientvaluechange: Function.createDelegate(

this, this._onSlidderChange)

 

}


Event initialization

if

 

(this._slidderId) {

 

 

  this._slidder = $get(this._slidderId);

 

 

  // Attach change handler to parent

 

  Sys.Debug.

assert(this._slidder != null, 'Slidder Control cannot be found');

 

 

    if (this._slidder) {

 

    $addHandlers(

this._slidder, this._slidder$delegates, this);

 

  }

}

Event handler

_onSlidderChange:

function(sender, eventArgs) {

 

alert(

'test');

 

},

Everything happens fine but the event "onclientvaluechange" of my slidder defined by the slidder id is never triggered....

On the client side the slidder id hteml element is

<div style="WIDTH: 200px; DISPLAY: none" id="RadSlider1" class="radslider RadSlider_Default horizontal " _events="[object Object]" control="[object Object]">

How can I find the events of this element?

Any help would be appreciated.







Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 16 Oct 2008
1 answer
69 views
Hi guys,

I have this one field database table I decided to use Inline Editing grid control for editing plus a simple text box for adding new data.
In the text box I added a PropertyProxyValidator (EnterpriseLibrary)  to validate new entries.
The Problem: Inline Editing stops working (doesnt call the UpdateCommand when I click in the Update link).

If I comment out the PropertyProxyValidator definition in the aspx file, the grid control Inline Editing works fine again.

I added this new thread as couldnt find anything similar in the forum.

Thanks in advance.
Regards,

Miguel
Iana Tsolova
Telerik team
 answered on 16 Oct 2008
3 answers
180 views
My team has written an application that takes advantage of the RadEditor and its built in ImageManager.  We decided that our means of persistence was going to be a relational database, and implemented our own FileBrowserContentProvider accordingly.  Everything works great, except we can't figure out how to pass the value of the "Overwrite if file exists?" checkbox into our FileBrowserContentProvider.  Our one thought was that it might be passed in the "arguments" parameter, but no such luck.  Please advise.
Rumen
Telerik team
 answered on 16 Oct 2008
3 answers
102 views
Hi,

I try to ajaxify a asp:button with RadAjaxManager, but when i click on button the property RadAjaxManager1.IsAjaxRequest is always FALSE. 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="btnSave"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pnlDialog" /> 
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 

I can't use RegisterScript because that server-side: (VB)
If RadAjaxManager1.IsAjaxRequest Then 
      RadAjaxManager1.ResponseScripts.Add("CloseWithCallBack('" & args & "');") 
End If 

My Javascript function never call..

Ty for your help.

Maria Ilieva
Telerik team
 answered on 16 Oct 2008
4 answers
99 views
Hi,

Is it possible to remove or hide the textbox from the image manager? I know it is possible in the asp.net control, but in the ajax version it is not so obvious.

any help would be appreciated

Jean
Jean
Top achievements
Rank 1
 answered on 16 Oct 2008
2 answers
168 views
Hi, I am using the RadTree control and the RadMenu control to launch a right click menu from the tree. I would like to display an alert when the right click is not made on the tree, please advise if it's possible to capture the right click event for the RadMenu or any property where I can determine whether the right click was performed on the RadTree for the RadMenu or whether it was a random right click.
Thanks alot!

MJ
M
Top achievements
Rank 1
 answered on 16 Oct 2008
1 answer
174 views
I have opened a window programmatically and added it to a radwindowmanager.

the window opens fine and displays the target page.  when the user clicks a button, I'd like to 1) close the radwindow, and 2) direct the parent page (window, the main browser) to another page and have information the user submitted available there.

How can I accomplish this?  I'd like to do it with as much C# as possible in the code-behind.

Thanks,

Mark
Princy
Top achievements
Rank 2
 answered on 16 Oct 2008
2 answers
109 views
I may be missing this because it seems simple. Is there a way to filter immediatey when the filter image is clicked. I will always use only the contains filter and do not need the extra step of the menu from opening. I tried to add a "search" link button in the filter row but I can not get the correct arguments to be passed to the commanditem event. I was thinking I was making it more complicated then i needed to. Thanks for any help
Henry Derstine
Top achievements
Rank 1
 answered on 16 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?