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

Inject Eqatec Tracking Javascript in Grid...

1 Answer 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wired_Nerve
Top achievements
Rank 2
Wired_Nerve asked on 16 Jan 2015, 07:18 PM
I am wanting to track the time it takes a user to begin the edit process when they click on a edit button (ImageButtonEdit)  in a editCommandColumn,
This is the eqatec code I want to inject on the server side via register script when the button is clicked... 

// Tracking timing
g._eqatecmonitor.trackFeatureStart("SomeLongOperation");


When they click on the save command.. I want to insert the stop monitoring code..

someLongOperation();
g._eqatecmonitor.trackFeatureStop("SomeLongOperation");


Has anyone done this?  I am using the eqatec javascript side of this to track client behavior, not the server side options.





01.<Columns>
02.    <telerik:GridTemplateColumn UniqueName="EditCommandColumn" AllowFiltering="false">
03.        <ItemTemplate>
04.            <div style="width: 50px">
05.                <asp:ImageButton ID="ImageButtonEdit" runat="server" CommandName="Edit" ImageUrl='<%# string.Format("~/App_Themes/{0}/Grid/Edit.gif", Page.Theme) %>'
06.                    AlternateText="Edit" ToolTip="Edit" />
07.                  
08.                <asp:ImageButton ID="ImageButtonDuplicate" runat="server" CommandName="Duplicate"
09.                    ImageUrl='<%# string.Format("~/App_Themes/{0}/Images/Copy_16.gif", Page.Theme) %>'
10.                    AlternateText="Duplicate" ToolTip="Duplicate" />
11.            </div>
12.        </ItemTemplate>
13.        <ItemStyle HorizontalAlign="Center" />
14.    </telerik:GridTemplateColumn>

1 Answer, 1 is accepted

Sort by
0
Richard Flamsholt
Telerik team
answered on 21 Jan 2015, 02:44 PM
Hi Warren,

Yes, this is surely possible. I think the problem here too is the use of "g" instead of "window". This piece of javascript has probably printed out errors to the console.

Regards,
Richard Flamsholt
Telerik
 
EQATEC Application Analytics is now Telerik Analytics. For more information on the new name, plus what's new in Telerik Analytics, please, check out the Analytics Service Announcement.
 
Tags
Grid
Asked by
Wired_Nerve
Top achievements
Rank 2
Answers by
Richard Flamsholt
Telerik team
Share this question
or