This is a migrated thread and some comments may be shown as answers.

Folder Selection is looping the loading panel for Grid

1 Answer 48 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Sheik Alavudeen
Top achievements
Rank 1
Sheik Alavudeen asked on 16 Jun 2010, 08:47 AM

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

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 18 Jun 2010, 02:55 PM
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
Tags
FileExplorer
Asked by
Sheik Alavudeen
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or