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

Can't find fireCommand

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RvdGrint
Top achievements
Rank 1
RvdGrint asked on 30 May 2011, 12:26 PM
Hello,

I'm using an GridAttachmentColumn in my RadGrid according example: http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/gridattachmentcolumn/defaultcs.aspx

When click on the AttachmentColumn the error 'Can't find fireCommand' is raised on the following Javascript:
function onclick(event)
{
if(!$find('').fireCommand('DownloadAttachment','{"FileID":5,"ColumnUniqueName":"FileName","FileName":"Hydrangeas.jpg"}')) return false;
}

The problem is caused by $find('') I expect but how do I force that the right object is passend so it will perform like '$find('RadGrid')' ??

Anyone?

1 Answer, 1 is accepted

Sort by
0
RvdGrint
Top achievements
Rank 1
answered on 30 May 2011, 12:46 PM
The problem was caused by property ClientIDMode="static" on the RadGrid.
Tags
Grid
Asked by
RvdGrint
Top achievements
Rank 1
Answers by
RvdGrint
Top achievements
Rank 1
Share this question
or