How to get RadFileExplorer FileBrowserItem's attributes?

3 posts, 1 answers
  1. Shareb
    Shareb avatar
    3 posts
    Member since:
    Apr 2012

    Posted 29 May 2012 Link to this post

    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. Answer
    Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 31 May 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shareb
    Shareb avatar
    3 posts
    Member since:
    Apr 2012

    Posted 31 May 2012 Link to this post

    Thanks Dobromir.
Back to Top