RadFileExplorer + jQuery Dialog Modal

2 posts, 0 answers
  1. Oki
    Oki avatar
    1 posts
    Member since:
    Jan 2008

    Posted 08 May 2012 Link to this post

    Hi guys

    I try to combine RadFileExplorer with jQuery Dialog Modal but something happened.
    when i wanted to create a new folder, I was not able to type any character into the input element nor delete the default name.
    It still creates a new folder but with the name 'NewFolder' if I click the OK button. 

    It works OK if i don't use jQuery Dialog Modal.

    Please see the attachment file.

    Here are the codes:

    HTML script :
    <div id="fSaveCroppedImage" title="Save Image">           
                <telerik:RadFileExplorer ID="RadFileExplorer1"  Width="90%" Height="200px"   runat="server" 
                    ExplorerMode="Default" OnClientFolderChange="OnClientFolderChange" 
                    EnableOpenFile="False" 
                    VisibleControls="TreeView,ContextMenus,Toolbar" 
                    onclientfolderloaded="OnClientFolderLoaded" >
                <Configuration ViewPaths="~/pubimages" UploadPaths="~/pubimages"
                                    DeletePaths="~/pubimages" 
                               />
                </telerik:RadFileExplorer>
      </div>


    jQuery script:

    $("#fSaveCroppedImage").dialog({
            bgiframe: false,
            autoOpen: false,
            dialogClass: '',
            height: 'auto',
            width: 'auto',
            modal: true,
            open:function(){{
              $(this).parent().appendTo($("form:first")); 
            }},
            buttons: {
                Cancel: function() {
                    $(this).dialog('close');
                },
                Save: function() {
                    //do something    
    $(this).dialog('close');
                    }
                }
            },
            close: function() {
            }
        });

    Anyone can help?

    Im using jQuery 1.7.2 and Telerik 2010.1.415.20.

    Thanks.
    Oki
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 14 May 2012 Link to this post

    Hi Oki,

    I tried to reproduce the problem but to no avail. Could you please provide more detailed information on the specific scenario?

    • Under which browser and its version the problem occurs?
    • Are there any JavaScript errors thrown on the page? If so, could you please provide the detailed error message(s)?
    • Could you please provide a simple fully runnable project reproducing the problem so we can investigate it further?

    For your convenience I have attached my sample test page, could you please modify it to a point where the problem occurs and send it back?

    In addition, the version of RadControls that you are using is quite old, could you please try to upgrade to the latest version of the controls and see if the problem still occurs?


    Greetings,
    Dobromir
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top