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

How to get RadFileExplorer FileBrowserItem's attributes?

2 Answers 69 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Shareb
Top achievements
Rank 1
Shareb asked on 29 May 2012, 05:50 PM
Hi,

How do I get by server-side or client-side RadFileExplorer FileBrowserItem's attributes that I set from server-side to the list by the code below:

protected void RadFileExplorer1_ExplorerPopulated(object sender, RadFileExplorerPopulatedEventArgs e)
{
//some code .. then a for loop then
e.List[i].Attributes.Add("myKey", "myValue");
}
 
}

How do I get the value "myValue" from any of the client-side or server-side?
Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 31 May 2012, 12:17 PM
Hi Mohammad,

You can access custom attributes added to the FileBrowserItem on the client in the following manner:

$find("RadFileExplorer1").get_grid().get_selectedItems()[0].get_dataItem().Attributes["myKey"]


Kind regards,
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.
0
Shareb
Top achievements
Rank 1
answered on 31 May 2012, 07:46 PM
Thanks Dobromir.
Tags
FileExplorer
Asked by
Shareb
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Shareb
Top achievements
Rank 1
Share this question
or