Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
I'm getting the following error in when I try to set the toolsfile as an embedded resource. The resource can be accessed by requesting the URL directly, so I know I have that configured correctly.

Below is the error message I'm getting. Any thoughts?

Edit: The embedded resource is located in an assembly with the server control that is loading the embedded resource:
  • A web site uses a custom server control with an encapsulated radeditor
  • The server control is contained in separate assembly
  • The server control sets the ToolsFile property to using the GetWebResource method

Heres's the ref. in assemblyinfo.vb:

 

<Assembly: WebResource(

"[AssemblyName].FullToolsFile.xml", "text/xml")>

 

I've tried creating the toolsfile.xml with and without the XML declaration. There is no difference in the error.
 

Server Error in '/Support.SyscomGM.com' Application.  
--------------------------------------------------------------------------------  
 
'~/WebResource.axd?d=aaW8Z0muXD8UCgD1F5rh6NrswGUH-n32h7QL8r5EKe4JkUGyDvia1dpgWW9Lmj2o0&t=633909254677368497' is not a valid virtual path.   
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.Web.HttpException: '~/WebResource.axd?d=aaW8Z0muXD8UCgD1F5rh6NrswGUH-n32h7QL8r5EKe4JkUGyDvia1dpgWW9Lmj2o0&t=633909254677368497' is not a valid virtual path.  
 
Source Error:   
 
 
Line 470:  
Line 471:           If Not String.IsNullOrEmpty(EditorToolsFile) Then  
Line 472:               HtmlEditor.ToolsFile = EditorToolsFile 
Line 473:           Else  
Line 474:  
   
 
Andrew Benson
Top achievements
Rank 2
 answered on 12 Oct 2009
2 answers
116 views

Guys,

I need to style content area so it looks like a page in a Word document (gray padding outside with white page in a middle). White space in middle needs to have a specific size. Let’s say 400X600. To accomplish this I created css for ContentAreaCssFile as follows


body {background-color: #a5a5a5!important;} 

.PagePlaceholder

 

{background-image: url(images/pageBG.png); background-repeat:no-repeat;background-position: center top;

 

 

padding: 20px; margin:20px; }

 


The problem is that as soon as I set a height on PagePlaceholder class and click on that region in the editor It gets selected ( borders around it appear ) in IE 7 and 8. Work fine in FF. that selection makes it difficult to edit content that’s inside of PagePlaceholder div. can you please help me out here.

 
Thank you!

Orest
Top achievements
Rank 1
 answered on 12 Oct 2009
1 answer
127 views
The traditional listbox allows you to scroll the items with the mouse wheel whenever the mouse is hovered over it. How do I mimc that behavior here?

Thanks,
Andrew
Andrew Ryan
Top achievements
Rank 1
 answered on 12 Oct 2009
5 answers
134 views
I have a RadUpload control inside an UpdatePanel with UpdateMode set to conditional, and the RadUpload has a TargetPhysicalFolder specified.  I specify an image to upload, and then in the FileExists event save the name of the file to a label control (so I can write the location to a DB).  This works fine.

If I browse back to the page, and try to upload another file to in a sense change the uploaded file, the FileExists event does not fire again so I can't write the filename to the label and update it in the database.

[code]

<

 

asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">

 

 

<ContentTemplate>

 

 

<telerik:RadUpload ID="RadUploadLogo" runat="server" EnableAjaxSkinRendering="False"

 

 

EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False"

 

 

TargetPhysicalFolder="C:\Test"

 

 

EnableFileInputSkinning="False" CssClass="formfields" AllowedFileExtensions=".gif"

 

 

ControlObjectsVisibility="None" onfileexists="RadUploadLogo_FileExists">

 

 

</telerik:RadUpload></ContentTemplate></asp:UpdatePanel>

 

protected

 

void RadUploadLogo_FileExists(object sender, Telerik.Web.UI.Upload.UploadedFileEventArgs e)

 

{

lblUploadFileName.Text =

String.Format("C:\\Test\\{0}", e.UploadedFile.GetName());

 

}

[/code]

Is there a way to make the FileExists event fire again?

Samantha
Top achievements
Rank 1
 answered on 12 Oct 2009
2 answers
421 views
hello ,
i have a grid with item nested template can i rasise expand row on row click client event ?
Michael
Top achievements
Rank 2
 answered on 12 Oct 2009
2 answers
138 views
Hello all,

New user to Telerik controls here.  Question on RadTree...is it possible to enable multi-select, but restrict selections to a given node?  And only the immediate children of that node?

So for example, if there are 3 parent nodes, each with 5 child nodes.  If a user select 2 child nodes of Parent 1, but then selects a child node of parent 2, all the selected nodes in Parent 1 would be unchecked.  The user could continue to multi-select children in Parent Node 2.  And so on.

Any help is appreciated.  Thanks in advance.
Albert Pernia
Top achievements
Rank 1
 answered on 12 Oct 2009
1 answer
56 views
Is it possible to change "Custom Links" text  to something that's more meaningful for my application, for example " Sitemap Pages"

Thanks!
Rumen
Telerik team
 answered on 12 Oct 2009
2 answers
145 views
Hi ,
I can not put a RadWindow object on a swf, the swf is always above the RadWindow, how can I solve this?

    <telerik:RadWindowManager  
    ID="RadWindowManager1"  
    runat="server"  
    BackColor="#D5E8EE"  
    Behavior="Minimize, Close, Move"  
    Behaviors="Minimize, Close, Move"  
    Modal="True"  
    Skin="Inox"  
    style="z-index:70000; position: absolute"> 
    </telerik:RadWindowManager> 
 
 
        <telerik:RadWindow  
        ID="RadWindow1"  
        runat="server"  
        Skin="Inox"  
        BackColor="#D5E8EE"  
        Modal="True"  
        ReloadOnShow="True"  
        Behavior="Minimize, Close, Move"  
        Behaviors="Minimize, Close, Move"  
        style="z-index:700000; position: absolute"> 
        </telerik:RadWindow>   
 

swf

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  
                  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"  
                  width="1024" height="272" style="z-index: -1; position: relative"> 
              <param name="movie" value="swf/topo.swf" /> 
              <param name="quality" value="high" />     
              <embed src="swf/topo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1024" height="272"></embed> 
            </object> 



Ernandes
Top achievements
Rank 1
 answered on 12 Oct 2009
2 answers
165 views

Hi

I am having trouble turning off the initial behaviors of a window.  I have this declaration:

<telerik:RadWindow ID="RadWindowLafite" runat="server"   
        NavigateUrl="~/windows/lafite-event.aspx" OpenerElementID="divLafite"   
        Width="570px" Modal="True" Height="600px" InitialBehaviors="Resize"   
        VisibleStatusbar="False" Animation="Fade">  
    </telerik:RadWindow>   

When the window opens, all the behaviors are active, including pin, minimize, maximize, refresh.
In other respects the window is behaving as expected.
Actually I only want to allow resize, and had expected that this setting for initial behviours would
not show the icons for the other behaviors. What am I missing ?

BTW the properties window in VS2008 shows both 'Initial Behavior' and 'Initial Behaviors'

Thanks

Clive

Q2 2009, IIS7, asp.net 3.5, VS2008
Clive Hoggar
Top achievements
Rank 1
 answered on 12 Oct 2009
1 answer
167 views

Dears,
I am working on a composite custom control contains a radGrid control, I faced the following problem in the RadGrid Paging,
i have set the RadAjaxManager to enable the Ajax paging for my grid so that it shouldn't postback on each page number change,
unfortunately, it is doing postback on each page index change and it is not passing by the 
GridNeedDataSourceEventHandler
Please check below code sample and help me to fix this issue,

Any help will be highly appreciated,

protected override void OnInit(EventArgs e)  
        {   
            //grdTransactionsList  
            grdTransactionsList.ID = "grdTransactionsList";  
            grdTransactionsList.Skin = "Office2007";  
            grdTransactionsList.AutoGenerateColumns = false;  
            grdTransactionsList.AllowPaging = true;  
            grdTransactionsList.AllowCustomPaging = true;  
            grdTransactionsList.PageSize = Constants.PageSize;  
            grdTransactionsList.Visible = true;  
            grdTransactionsList.NeedDataSource += new GridNeedDataSourceEventHandler(grdTransactionsList_NeedDataSource);  
            grdTransactionsList.PagerStyle.Mode = GridPagerMode.NumericPages;  
            grdTransactionsList.MasterTableView.GridLines = GridLines.None;  
            grdTransactionsList.MasterTableView.AutoGenerateColumns = false;  
            grdTransactionsList.MasterTableView.TableLayout = GridTableLayout.Auto;  
            InitilizeTransactionsListColumns();  
            grdTransactionsList.ClientSettings.Selecting.AllowRowSelect = true;  
            grdTransactionsList.ClientSettings.EnableRowHoverStyle = true;  
 
            //Check if there is already added ScriptManager to this Page, Only one Script Manager Instance can be in the page  
            if (ScriptManager.GetCurrent(this.Page) == null)  
            {  
                scriptManager = new ScriptManager();  
                scriptManager.ID = "ScriptManager1";  
            }  
            if (RadAjaxManager.GetCurrent(this.Page) == null)  
            {  
                radAjaxManager = new RadAjaxManager();  
                radAjaxManager.ID = "RadAjaxManager";  
                  
                radAjaxLoadingPanel = new RadAjaxLoadingPanel();  
                radAjaxLoadingPanel.ID = "pnlRadAjaxLoadingPanel";  
                radAjaxLoadingPanel.Height = new Unit(50);  
                radAjaxLoadingPanel.Width = new Unit(50);  
                radAjaxLoadingPanel.Transparency = 30;  
                Image imgLoading = new Image();  
                imgLoading.ID = "imgLoading";  
                radAjaxLoadingPanel.Controls.Add(imgLoading);  
                radAjaxManager.DefaultLoadingPanelID = radAjaxLoadingPanel.ID;  
            }  
        }  
 
 protected override void CreateChildControls()  
        {  
            if (scriptManager != null)  
                Controls.Add(scriptManager);  
            if (radAjaxManager != null)  
                Controls.Add(radAjaxManager);  
            if (radAjaxLoadingPanel != null)  
                Controls.Add(radAjaxLoadingPanel);  
 
            if (RadAjaxManager.GetCurrent(this.Page) != null)  
            {  
                AjaxSetting ajaxSetting = new AjaxSetting     (grdTransactionsList.ID);  
                ajaxSetting.UpdatedControls.Add(new AjaxUpdatedControl(grdTransactionsList.ID, radAjaxLoadingPanel.ID));  
                RadAjaxManager.GetCurrent(this.Page).AjaxSettings.Add(ajaxSetting);  
            }  
                Controls.Add(new LiteralControl("<table>"));  
                Controls.Add(new LiteralControl("   <tr>"));  
                Controls.Add(new LiteralControl("        <td>"));  
                Controls.Add(grdTransactionsList);  
                Controls.Add(new LiteralControl("        </td>"));  
                Controls.Add(new LiteralControl("   </tr>"));  
                Controls.Add(new LiteralControl("</table>"));  
        }  
  protected void grdTransactionsList_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
        {  
            if (!Page.IsPostBack)  
                return;  
            else  
            {  
                try  
                {  
                    int totalRecords = 0;  
                    grdTransactionsList.DataSource = Presenter.GetTransactionsList(out totalRecords);  
                    grdTransactionsList.VirtualItemCount = totalRecords;  
                }  
                catch (JoPayBusinessException ex)  
                {  
                    ShowError(ex);  
                }  
            }  
        }  
//Presenter.GetTransactionsList(out totalRecords) will call below method  
 public void SetTransactionsGrid(IList<TransactionSearch> paymentTransactions, int totalRecords)  
        {  
            grdTransactionsList.DataSource = paymentTransactions;  
            grdTransactionsList.VirtualItemCount = totalRecords;  
            grdTransactionsList.DataBind();  
        } 
Pavlina
Telerik team
 answered on 12 Oct 2009
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?