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

'OnRequestStart' undefined

5 Answers 266 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gokul Gokul
Top achievements
Rank 2
Gokul Gokul asked on 17 May 2010, 08:08 AM
Hi Everyone
                  I am using Radgrid in my application. In that i use Show csv export button to acheive it in client side, i just add OnRequestStart() script. it gives me the error onrequeststart is undefined.

5 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 17 May 2010, 08:41 AM
Hi Gokul,

The information that you provided is not enough for us to identify the reason for the problem that you experience. Could you please post the RadGrid's declaration, the ajax settings and the javascript functions. Once we have a better view over your exact setup we will do our best to help.

Additionally you could check out the following online examples:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/pdfexport/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx

All the best,
Radoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Gokul Gokul
Top achievements
Rank 2
answered on 17 May 2010, 09:18 AM
Hi,
    this is my RadGrid
   

<telerik:RadGrid ID="gridTest" AllowMultiRowSelection="true" AllowSorting="true"

AutoGenerateColumns="false" AllowPaging="true" runat="server" Skin="Outlook"

PageSize="5" AllowFilteringByColumn="true"

onneeddatasource="gridTest_NeedDataSource"

onpageindexchanged="gridTest_PageIndexChanged"

onprerender="gridTest_PreRender">

<PagerStyle Mode="NextPrev" />

<MasterTableView CommandItemDisplay="Top">

<Columns>

<telerik:GridImageColumn AllowFiltering="false" ImageUrl="images/user.png">

<ItemStyle Width="20px" Height="10px" HorizontalAlign="Center" />

</telerik:GridImageColumn>

<telerik:GridClientSelectColumn>

<HeaderStyle Width="20px" Height="10px" HorizontalAlign="Center" />

<ItemStyle Width="20px" Height="10px" HorizontalAlign="Center" />

</telerik:GridClientSelectColumn>

<telerik:GridBoundColumn HeaderText="Name" AllowFiltering="true" DataField="Name"

AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" FilterImageUrl="../images/view.png"

UniqueName="Name">

<HeaderStyle Width="125px" Height="10px" HorizontalAlign="Center" />

<ItemStyle Width="125px" Height="10px" HorizontalAlign="Center" />

</telerik:GridBoundColumn>

</Columns>

<CommandItemSettings ShowExportToCsvButton="true" ShowAddNewRecordButton="false" />

</MasterTableView>

<ExportSettings ExportOnlyData="true" FileName="gridTest" IgnorePaging="true"

OpenInNewWindow="true">

</ExportSettings>

<ClientSettings>

<Selecting AllowRowSelect="true" />

<ClientEvents OnGridCreated="GridCreated" OnRowSelected="RowSelected" OnRowDeselected="RowDeselected" ></ClientEvents>

</ClientSettings>

<FooterStyle Height="30px" />

<AlternatingItemStyle BackColor="LightSteelBlue" />

<FilterItemStyle HorizontalAlign="Center" Height="10px" />

</telerik:RadGrid>

and this is my AjaxManager content in the page

<telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">

<ClientEvents OnRequestStart="onRequestStart" />

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="gridTest">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="gridTest" LoadingPanelID="LoadPanel" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">

and this is my script OnRequestStart

function onRequestStart(sender, args)

{

if (args.get_eventTarget().indexOf("ExportToCsvButton") >= 0)

{

args.set_enableAjax(false);

}

}

Thanks in advance



0
Radoslav
Telerik team
answered on 17 May 2010, 12:48 PM
Hi Gokul,

I try to reproduce the described issue with the code snippets which you post, but to no avail. I am sending you a simple example. Please check it out and let me know what differs in your case.

Kind regards,
Radoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Gokul Gokul
Top achievements
Rank 2
answered on 17 May 2010, 02:21 PM
Hi Radoslav,
            The difference between the example code and my code is, I am using some update panels in the page.
Actually I am trying to convert my web controls to Rad controls. this is my issue.  I am not using Rad script manger just a normal script manager  but it's not the problem I think . The web.config files had a lot of difference because my code is basically a Asp.net web application not a Telerik web application. 
0
Radoslav
Telerik team
answered on 18 May 2010, 02:33 PM
Hi Gokul,

Please check out the below articles and try troubleshooting the error:
http://www.telerik.com/help/aspnet-ajax/troubleshooting.html
http://www.telerik.com/help/aspnet-ajax/web-resources-troubleshooting.html

If the issue still persists could you please send us a small runnable project which demonstrates the issue. You could open a formal support ticket from your Telerik account and attach a ZIP file there.Thus we will be able to debug the project and provide you with more to-the-point answer.

Sincerely yours,
Radoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Gokul Gokul
Top achievements
Rank 2
Answers by
Radoslav
Telerik team
Gokul Gokul
Top achievements
Rank 2
Share this question
or