'OnRequestStart' undefined

6 posts, 0 answers
  1. Gokul Gokul
    Gokul Gokul avatar
    17 posts
    Member since:
    May 2010

    Posted 17 May 2010 Link to this post

    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.
  2. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 17 May 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Gokul Gokul
    Gokul Gokul avatar
    17 posts
    Member since:
    May 2010

    Posted 17 May 2010 Link to this post

    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



  5. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 17 May 2010 Link to this post

    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.
  6. Gokul Gokul
    Gokul Gokul avatar
    17 posts
    Member since:
    May 2010

    Posted 17 May 2010 Link to this post

    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. 
  7. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 18 May 2010 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017