Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
115 views
Hi,

I'm using the RadContextMenu passing in parameters in Context to dynamically load options for a Grid in ASP.NET.

In the backend it's calling database to retrieve links the user can do.

The problem is that when there is no links to return, passing a empty RadMenuItemData array causes javascript error in the aspx.

I first try to raise an ApplicationException, and the error message will get displayed as an alert to the user.
However, this approach will somehow make the contextmenu don't call the web service at all (I set a breakpoint at the populate method, and it's not getting called) the next time you right click. If you right click again then it will be back to normal.            

I wonder what's the recommended way to pass empty results so no itemdata will be populated?


Thanks!        
Yana
Telerik team
 answered on 30 Mar 2009
2 answers
137 views
Hi,

I have just tried this out and have come across a small display issue. If you set VisibleControls="Grid, TreeView" I seem to get a large empty white space between the bottom of the control and its bottom border. I have tried this on an empty page with no other stylesheets and the same thing happens...

What style can I use to target the bottom border of the control and correct it?

Thanks,
Matt
Lini
Telerik team
 answered on 30 Mar 2009
5 answers
204 views
There is a couple issues I've noticed with the delete dialog I wanted to make sure Telerik would be aware.
  1. If the height of the scheduler is set and at the same time OverflowBehavior="Expand" then it causes the delete dialog to only appear in the area at the top specified by the height. The delete dialog should follow the overflow behavior instead of the explicit height.
  2. It would be preferable if the position of the delete dialog was relative to the scroll position on the page instead of being directly in the middle of the schedule vertically because if it is showing 24 hours while overflow is expand then the delete dialog often occurs off of the visible area of the page.
If you are aware of a practical css workaround for #2 I'd like to know it.

Thanks for a great product!
Peter
Telerik team
 answered on 30 Mar 2009
1 answer
122 views
We are currently accessing SSRS reports using Microsoft.Report Viewer control.

In web application we are trying to open rad modal  window from the row item displayed in the ReportViewer . Also we  are using rad window manager to open the rad window and the skin type as Vista.
The below message is displyed in a blank page, instead of opening the requested url in window.radopen().

object [RadWindow id=RadWindowClass3001].

Kindly let me know the solution for this problem. Also is it possible to access rad window from Microsoft.ReportViewer control.

Thanks,
Suganthi
Tervel
Telerik team
 answered on 30 Mar 2009
18 answers
370 views
I have an app where I use the MS Ajax ModalPopupExtender to show a text box. I need that text box to have spell checking. When I add the RadSpell and click on the button, the spell checker is behind my modal pop up. Any way to get around this?
Tervel
Telerik team
 answered on 30 Mar 2009
1 answer
79 views
Hi,
I'm used telerik telerik q3 2008 with custom skins.
Latelty I installed the new version of Telerik and I have lots of bugs in visual appearance.
How can I fox this? In css files?
Thx
Paul
Telerik team
 answered on 30 Mar 2009
5 answers
316 views
I'm using the 2008.2.826.35 version of the RadControls. My problem can be explained in comparing the following three screen shots:

http://lscs.byu.edu/Chris/Splitter/IE.jpg
http://lscs.byu.edu/Chris/Splitter/Safari.jpg
http://lscs.byu.edu/Chris/Splitter/Firefox.jpg

My code can be found here: Link removed by Admin.

The splitter is in the master page. The commented out div around the splitter doesn't seem to make a difference.

Notice how in Firefox that the full screen mode fills the whole screen and doesn't respect some div boundaries that I have set. The other two browsers seem to be fine. Is there are work around for this? If not, is this problem fixed in the newest build? I have already tried not doing full screen mode and setting width and height to 100%, but as soon as I set the height to any percentage value, firefox (I'm using 3.0.6) wigs out and shrinks the splitter to just about nothing.



http://lscs.byu.edu/Chris/Splitter/Safari.jpg

http://lscs.byu.edu/Chris/Splitter/Safari.jpg




Tsvetie
Telerik team
 answered on 30 Mar 2009
3 answers
320 views
I was working to Ajaxfy one of the
<table runat="server" id="tbl1">
<tr runat="server" id="tr1" visible="false">
<td>Something</td>
</tr>
<table>

Now if I try to ajaxify <tr> with RadAjaxManager I get this error
'HtmlTable' cannot have children of type 'PreControlToAjaxify'.

Are you adding control to parent of whatever control is ajaxified?
Sebastian
Telerik team
 answered on 30 Mar 2009
2 answers
230 views
OK....I'm sure you'll think I'm going overboard but I am trying to add three different controls to a View and am finding strange behaviour.  But I think the fatal flaw is probably my understanding of when to use <form runat="server"> tags, ScriptManagers, etc.  So here is where I need help.....

1.  Can anyone throw me a bone on why this view works without the RadEditor on it but once I copy it back in the RadFileExplorer ceases working?  Run the view without the RadEditor and then with to see the difference.
2. Would Telerik be willing to write some blog posts helping with the methodology for adding these more complex control that are not part of the MVC demo.  Of greatest interest is an app that persists data rather than just rendering.  I can only think these posts will be worth hundreds of support hours you might need to provide users like me.  Thanks in advance and I will post things in the forum to help.

Here is my view.....

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ThemeInfo>" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">  
    <title>Details</title> 
</asp:Content> 
 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">  
 
    <h2>Theme Details</h2> 
 
    <p> 
        <label for="LeadId">Theme Name:</label> 
        <%= Html.TextBox("Name") %> 
        <%= Html.ValidationMessage("Name", "*") %> 
          
        <%=Html.ActionLink("Download Theme", "Download") %> 
    </p> 
      
        <fieldset> 
            <legend>Replace Theme</legend> 
 
            <p> 
                <label for="Email">Theme Zip Upload:</label> 
                        Allowed files: .zip archives (limitation set in .aspx):  
                <p> 
                <% using (Html.BeginForm("Upload", "Themes", FormMethod.Post, new { enctype="multipart/form-data"})){%> 
 
                <telerik:RadUpload runat="server" ID="RadUpload1" initialfileinputscount="1"   
                            maxfileinputscount="1" 
                            allowedfileextensions=".zip" 
                            maxfilesize="1000000"></telerik:RadUpload> 
                <telerik:RadProgressManager runat="server" ID="RadProgressManager1" AjaxUrl="~/Telerik.RadUploadProgressHandler.axd"/>  
                <p> 
                    <telerik:RadProgressArea runat="server" ID="RadProgressArea1"/>  
                <p> 
                <input type="submit" value="Upload" /> 
 
                <%} %>    
        </fieldset>      
      
               <p> 
            <%  
                editorCode.Content = "TODO Put in js to set to file contents";  
            %> 
                <label for="ContactForm">Code View:</label> 
                <telerik:RadEditor ID="editorCode" Runat="server" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"  > 
                </telerik:RadEditor> 
            </p>   
      
        <form id="Form1" runat="server">  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
    <table> 
        <tr> 
            <td> 
                <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Skin="Vista" Width="450" VisibleControls="Grid,TreeView,Toolbar"   
                    OnClientCreateNewFolder="OnClientCreateNewFolder" OnClientDelete="OnClientDelete" 
                    OnClientFileOpen="OnClientFileOpen" OnClientFolderChange="OnClientFolderChange" 
                    OnClientFolderLoaded="OnClientFolderLoaded" OnClientItemSelected="OnClientItemSelected" 
                    OnClientLoad="OnClientLoad" OnClientMove="OnClientMove" EnableOpenFile="true" > 
                    <Configuration ViewPaths="~/Content" UploadPaths="~/Content" 
                        DeletePaths="~/Content" /> 
                </telerik:RadFileExplorer> 
            </td> 
            <td> 
                <div id="eventConsole" class="module" style="height: 470px; width: 300px; overflow: auto;">  
                </div> 
            </td> 
        </tr> 
    </table> 
      
        <script type="text/javascript">  
 
            function OnClientFolderLoaded(sender, args) {  
                LogEvent("Grid folder loaded: " + args.get_item().get_name());  
            }  
            function OnClientFileOpen(sender, args) {  
                LogEvent("Item open: " + args.get_item().get_name());  
            }  
            function OnClientItemSelected(sender, args) {  
                LogEvent("Item click: " + args.get_item().get_name());  
            }  
            function OnClientFolderChange(sender, args) {  
                LogEvent("Tree folder change: " + args.get_item().get_name());  
            }  
            function OnClientDelete(sender, args) {  
                LogEvent("Delete: " + args.get_item().get_name());  
            }  
            function OnClientCreateNewFolder(sender, args) {  
                LogEvent("Create new folder: " + args.get_newPath());  
            }  
            function OnClientMove(sender, args) {  
                LogEvent("Item moved to: " + args.get_newPath());  
            }  
            function OnClientLoad(sender, args) {  
                LogEvent("File Explorer loaded!");  
            }  
            function LogEvent(text) {  
                var d = new Date();  
                var ddateStr = d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() + "." + d.getMilliseconds();  
                var eventConsole = $get("eventConsole");  
                eventConsole.innerHTML += "[" + dateStr + "] " + text + "<br/>";  
            }  
 
    </script>     
      
    </form> 
      
 
 
    <p> 
        <%=Html.ActionLink("Edit", "Edit", new { /* id=Model.PrimaryKey */ }) %> |  
        <%=Html.ActionLink("Back to List", "Index") %> 
    </p> 
 
</asp:Content> 
 
 
Lini
Telerik team
 answered on 30 Mar 2009
2 answers
83 views
Hi!

Today two of our customer have reported that content designed in the editor suddenly just got messed up. I know one of them pasted some html code in the code mode and then switched to design mode and everything looked weird.

I suspect this a problem with their machine cause I cant reproduce the problem. Probably an update of some software like skype that destorys the html code.

Do you have any clue of what is doing this?

Heres an example of whats in the design mode
3chtml~3e~3chead~3e~3c/head~3e~3cbody~3e~3chtml~3e~3chead~3e~3c/head~3e~3cbody bgcolor~3d~22~23e2e2e2~22~3e ~3cp align~3d~22center~22~3e ~3ctable style~3d~22width~3a 600px~3b~22 bgcolor~3d~22~23ffffff~22 cellpadding~3d~220~22 cellspacing~3d~220~22~3e ~3ctbody~3e~3ctr~3e ~3ctd align~3d~22left~22 bgcolor~3d~22~23e2e2e2~22 valign~3d~22middle~22~3e ~3cp

 and no, they did not paste the html code in design mode =)

//Niclas
Rumen
Telerik team
 answered on 30 Mar 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?