Folder Selection is looping the loading panel for Grid

2 posts, 0 answers
  1. Sheik Alavudeen
    Sheik Alavudeen avatar
    6 posts
    Member since:
    Apr 2010

    Posted 16 Jun 2010 Link to this post

    Hi,
    I am facing problem in folder selection event :
    I am calling this function for this File Explorer from client-side event to do some processing on dblevel in serverside : 

    OnClientFolderChange

     

    ="controlPermissions"

    function

     

     

     

    controlPermissions()

     

     

     

     

    var oAjaxPanel = $find("<%= AjxPanelGFP.ClientID %>");

     

    oAjaxPanel.ajaxRequest(

     

    "NodeSelected"); // Call the RadAjaxPanel1_AjaxRequest function on the server ;

     

    }

    In Server side I wrote the function for the above ajax request :

     

    protected

     

     

    void AjxPanelGFP_AjaxRequest(object sender, AjaxRequestEventArgs e)

     

    {

     

    string

     

     

    UserCommand = e.Argument;

     

     

     

    switch (UserCommand)

     

    {

     

     

     

     

    case

     

     

    "NodeSelected":

     

    strFolderPath = FileExplorer1.TreeView.SelectedNode.FullPath.ToString();

     

     

    if (!PortalSecurity.IsInRole("Administrators"))

     

    {

     

     

    bool blnViewFolder;

     

     

     

    bool blnCreateFolder;

     

     

     

    bool blnRenameFolder;

     

     

     

    bool blnDeleteFolder;

     

     

     

    bool blnFullControl;

     

    GetFolderPermissions(strFolderPath,

     

    out blnViewFolder, out blnCreateFolder, out blnRenameFolder, out blnDeleteFolder, out blnFullControl);

     

     

     

    if (blnFullControl == true)

     

    {

     

     

    FileExplorer1.VisibleControls = Telerik.Web.UI.FileExplorer.

     

    FileExplorerControls.Toolbar;

     

    FileExplorer1.VisibleControls = Telerik.Web.UI.FileExplorer.

     

    FileExplorerControls.ContextMenus;

     

    pnlSecurity.Style.Add(

     

    "display", "block");

     

    }

     

     

    else

     

     

     

     

     

     

    {

    FileExplorer1.ToolBar.Visible =

     

    false;

     

    pnlSecurity.Style.Add(

     

    "display", "none");

     

    }

    }

     

     

    break;

     

    }

     

     

    }

    while, i am clicking the particular folder, I need to check the permissions for those selected one in serverside. Its firing, but the GridView is contineously showing the AjaxLoading Panel... After refreshing the page only.. Its releasing....

    Please provide your support

    Thanks,
    Sheik

     

     

     

     

     

  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 18 Jun 2010 Link to this post

    Hi Sheik,

    This behavior is caused by the fact that two ajax requests are initiated at the same time - one by the RadFileExplorer in order to load its content and second by the RadWindowManager (using its ajaxRequest method). In your case I recommend you to use ASP.NET CallBack mechanism in order to achieve the desired result. For your convenience i have attached an example to the thread.

    I hope this helps.

    Regards,
    Fiko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top