radfileexplorer OnClientFileOpen check which grid column was clicked

2 posts, 1 answers
  1. mkerchenski
    mkerchenski avatar
    8 posts
    Member since:
    Jun 2012

    Posted 18 May 2012 Link to this post

    Hi Telerik,
    I customized the grid with one custom column.
    in my OnClientFileOpen I need to do different things based on which column was clicked. Is there a way for me to determine which column were clicked?
    What I'm truing to do this. if you clicked on name open image preview. if you click on custom column then select that image.
  2. Answer
    Dobromir avatar
    1633 posts

    Posted 21 May 2012 Link to this post

    Hi Mike,

    In order to get the clicked cell in the grid you need to handle its ClientRowClick event and access the target attribute of the domEvent. You can use the following sample code to achieve this:
    function explorerLoad(explorer){
        explorer.get_grid().add_rowClick(function(sender, args){
            var clickedCell = args.get_domEvent().target;

    The explorerLoad is the handler of the RadFileExplorer's ClientLoad event.

    I hope this helps.

    Kind regards,
    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.
Back to Top