Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
84 views
I'm trying to use the grid to export to excel.  After reviewing many different examples I am able to get the grid to work with a button, however, I want to use the little excel button on the grid located near the refresh.  Every example I've tried doesn't work for me.  When the button is clicked the grid flashes, and looses the header line that the button and refresh is on. 

I also loose the grid formatting and my edit links disappear. 

What am I missing?
Daniel
Telerik team
 answered on 13 May 2010
2 answers
104 views
I am working with an older version of RadEditor from RadControls Q1 2008.  Unfortunately for this product upgrading is not an option right now as the upgrade itself will necessitate a lot of work for the skinning team that is not practical.  It has a bug where the user can potentially upload files with "%" characters which will break scripts on the page and break the functionality of the editor control.

What we have done initially is skin the upload part of the editor dialogs to show a message.  Unfortunately there is another part of the application where we use the dialog without the editor and I cannot change this skin.  So far I have been following the suggestions outlined here and using the ascx files from our other custom skin, but to no avail.

http://www.telerik.com/community/forums/aspnet-ajax/editor/imagemanager-standalone-customization.aspx


Ideally, there would be a simple way for me to just block the upload.  I attempted unsuccessfully to use some fairly creative Javascript with this, but it proved to difficult to determine when the dialog was loaded and respond to it, not to mention all the iframes that had to be dealt with.

Any suggestions would be very much apprecaited, again considering that upgrading isn't really an option at the present time.
Chris
Top achievements
Rank 1
 answered on 13 May 2010
4 answers
96 views
Hi, I'm developing an application that uses RadGrid and noticed this evening that it works fine under IE, but not under Safari.  This applies whether I'm using Safari on Windows or on my iPhone.  Specifically, if I have the AllowFilteringByColumn="false", the grid displays fine.  If I set it to true, then the grid becomes nearly infinitely wide in Safari with a huge horizontal scroll...yet works fine in IE either way.

Is this a known issue in Safari?  I'm using Q3 2009 version...any help is greatly appreciated as I'd like my app to be cross-platform...

Thanks,
Andrew
Jeremy Wadsworth
Top achievements
Rank 1
 answered on 13 May 2010
8 answers
196 views
Dear friends,

I am using RadDock control (2009 Q3) together with theme of Asp.net. I am using a custom skin (modified from Telerik skin) for this dock. Everything works fine with FireFox, SeaMonkey... but shows error with IE 8 (as seen in the attached picture).

I have thought of css conflicts between the dock css file and my custom css files (because I have some .css files in the theme folder), so I have tried to delete all my custom .css files. It means my page has no custom css file now, but the display error still exists. I really cannot think of where the error comes from.

Could you suggest any ideas of this error.

Thank you.
WRONG ACCOUNT
Top achievements
Rank 1
 answered on 13 May 2010
7 answers
331 views
We have some problems with the RadEditorMOSS 5.0.1.
When our users adds a bulleted list in the editor, it often ends up with an extra bullet. When they try to remove the bullet and then save, the bullet suddenly reappears. They have to do this three or four times before it disappears. What is the reason for this, and what can we do avoid it?

Thomas
Stanimir
Telerik team
 answered on 13 May 2010
1 answer
83 views

I have had the following code which was not working.  When i replaced RadAjaxManagerProxy  with RadAjaxManager, the code worked fine.

<telerik:RadCalendar ID="RadRadCalendar1"   AutoPostBack="true" runat="server" Skin="Web20" ></telerik:RadCalendar> 

<asp:Content runat=server ContentPlaceHolderID=Main>
    <telerik:RadAjaxManagerProxy  id="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting  AjaxControlID="RadRadCalendar1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl LoadingPanelID="Loadingpanel"   ControlID="RadRadCalendar1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

<asp:Content runat=server ContentPlaceHolderID=Main>
    <telerik:RadAjaxManagerProxy  id="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting  AjaxControlID="RadDatePicker1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl LoadingPanelID="Loadingpanel"   ControlID="RadDatePicker1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rcStartDate">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rcStartDate"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
RadAjaxManagerProxy   
Pavlina
Telerik team
 answered on 13 May 2010
3 answers
159 views
I have an OnClientSubmit callback in a RadEditor which detects whether there are incorrect widths and heights specified for images and corrects them.  Since there's no way to disable the browsers' built-in resizers that appear when you click on an image and drag the rectangle, we decided to implement an ajax call to resize local images (i.e. alter the image files) from the OnClientSubmit call to match on the requested size of the image.

This appears to work in IE6-8 but on Firefox, the postback happens before the AJAX call has completed.  It looks to me like the AJAX callback is left hanging.   Is there something else I need to do to keep the postback from happening before my callback is complete?

Thanks!

-Mike

 
<script type="text/javascript">  
 
 
function OnResizeCallbackSuccess(result, userContext) { 
    alert("Success="+result.Success+": "+result.ErrorMessage); 
} 
 
function OnResizeCallbackFailed(err, context) { 
    alert("We are temporarily unable to check the images.  Please try again in a few minutes. (" + err.get_message() + ")"); 
} 
 
function OnResizeCallbackTimeout(result, userContext) { 
    alert("We are unable to access the server.  Please try again in a few minutes. (" + 
                err.get_message() + ")"); 
} 
 
function OnClientSubmit(editor) 
{ 
    var elems = editor.get_document().getElementsByTagName("img");   
    for (var i=0; i < elems.length; i++)   
    {   
        var image = elems[i]; 
        //alert("found image" +image.src+ " (w:"+image.width+" h:"+image.height); 
        var specifiedWidth=image.style.width.replace("px", ""); 
        var specifiedHeight=image.style.height.replace("px", ""); 
        if (!specifiedWidth) 
        { 
            specifiedWidth = image.getAttribute("width"); 
        } 
        if (!specifiedHeight) 
        { 
            specifiedHeight = image.getAttribute("height"); 
        } 
 
         
        image.style.width=""; 
        image.style.height=""; 
        image.removeAttribute("width"); 
        image.removeAttribute("height"); 
         
        imageimage.style.width=image.width; 
        imageimage.style.height=image.height; 
         
        image.setAttribute("width", image.width); 
        image.setAttribute("height", image.height); 
         
        var wasreset=false; 
        if (specifiedWidth && image.width != specifiedWidth) { 
            wasreset=true         
        } 
        if (specifiedHeight && image.height != specifiedHeight) { 
            wasreset=true; 
        } 
         
         
        if (wasreset) { 
            
            var svc = MyMailout.WebServices.ImageService; 
            svc.set_defaultSucceededCallback(OnResizeCallbackSuccess); 
            svc.set_defaultFailedCallback(OnResizeCallbackFailed); 
            svc.Resize(image.src, parseInt(specifiedWidth), parseInt(specifiedHeight)); 
             
             
        }; 
 
    }                    
     
     
    return true;     
} 
 
 
 
</script> 
 
<body> 
    <form id="form1" runat="server"> 
        <telerik:RadScriptManager runat="server" id="radScriptManager"> 
    <Services> 
         <asp:ServiceReference Path="~/WebServices/ImageService.asmx" /> 
    </Services> 
     
     
    </telerik:RadScriptManager> 
     
      <telerik:RadAjaxManager ID="radAjaxManager" runat="server"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="btnOk1"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadEditor1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
      </telerik:RadAjaxManager> 
       
     
     
    <div> 
        <div><strong>Resize the image by clicking in it and dragging the boxes, then click "OK".</strong></div> 
     
        <telerik:RadEditor  
            ID="RadEditor1" Runat="server" Skin="Black"  
            EnableResize="true" 
            Width="750" 
            Height="500" 
            OnClientSubmit="OnClientSubmit" 
        > 
        <ImageManager  
            UploadPaths="~/Home/86"  
            ViewPaths="~/Home/86"  
            SearchPatterns="*.gif,*.jpg,*.jpeg,*.png"             
            /> 
            <Content>             
                <img src="http://localhost/Industry/images/Industry/logo.gif"></img> 
            </Content> 
        </telerik:RadEditor>     
        <asp:Button runat="server" id="btnOk" Text="OK" />   
    </div> 
    </form> 

Mike Bridge
Top achievements
Rank 1
 answered on 13 May 2010
2 answers
138 views
Hi,

I have a RadPanelBar with a TreeView contained within an ItemTemplate.

How do I handle a NodeClick event for the TreeView?  Before the TreeView was part of the PanelBar it was simple:

Private Sub RadTreeView1_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeview1.NodeClick

Now it is in the PanelBar VS doesn't like the Handles RadTreeview1.Nodeclick

Thanks in advance,

Kirk
Kirk Potter
Top achievements
Rank 1
 answered on 13 May 2010
6 answers
142 views
In my experimentation with your treeview I've been able to stylize individual nodes in any way I wished.  Now I've come across a situation where it doesn't seem to work.  The only difference is that the treeview sits in a sliding pane as follows:

        <telerik:RadSplitter ID="radSplitter" runat="server" Height="530" Width="1000" LiveResize="false">
          <telerik:RadPane ID="radPaneLeft" runat="server" Width="22" MinWidth="22" MaxWidth="22" Scrolling="None">
            <telerik:RadSlidingZone ID="radSlidingZone" runat="server" Width="22" ClickToOpen="true" ExpandedPaneId="radSlidingPane" DockedPaneId="radSlidingPane">
              <telerik:RadSlidingPane ID="radSlidingPane" runat="server" Title="Specify Path:" Width="265" ForeColor="Blue"
                                      TabView="ImageOnly" IconUrl="~/Images/hierarchy.gif" OnClientBeforeResize="radSlidingPane_BeforeResize" OnClientExpanded="radSlidingPane_Expanded">
                <div>
                  <asp:Panel ID="panelTree" runat="server" Width="250px" Height="400px" BorderColor="DarkGray" BorderStyle="Groove" BorderWidth="1">
                    <telerik:RadTreeView ID="treeViewMain" runat="server" . . .


Can you envision any situation that would prevent one from stylizing individual nodes?

Robert W.

Robert
Top achievements
Rank 1
 answered on 13 May 2010
7 answers
250 views
Having done a thorough search for the obvious, I figured I was better off just asking the experts here.

I have a custom/advanced edit form which is powered by a custom data provider.  This provider is capable of throwing custom exceptions that I would love to be able to catch and display a friendly error message to the user.  However, I can't seem to find where the heck to put a try catch block and what to wrap it around.  I'm believe that there would have to be one inside the AdvancedForm for insert/update cases as well as one in the page that hold the calendar in the case of moving an appointment from the calendar view.
T. Tsonev
Telerik team
 answered on 13 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?