Javascript error with ScriptResource.axd

14 posts, 0 answers
  1. Nguyen
    Nguyen avatar
    2 posts
    Member since:
    Oct 2010

    Posted 05 Oct 2010 Link to this post

    Hi all

    I have issue with Radgrid 2010 version 3.5 with SharePoint 2010. When Radgrid show filter , this page show error page.
    Please see attachment file and help me.

    Thanks
    Nguyen
  2. Nguyen
    Nguyen avatar
    2 posts
    Member since:
    Oct 2010

    Posted 05 Oct 2010 Link to this post

    Hi all
    It is very urgent, please help me !

    Thanks all
    Nguyen

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 07 Oct 2010 Link to this post

    Hello Nguyen,

    Could you please let me know whether the issue appears if the application is isolated from the SharePoint. Also please make sure that you have correctly bound the RadGrid control. Refer to the following help topic for more information on this matter:
    http://www.telerik.com/help/aspnet-ajax/grddatabindingbasics.html

    Greetings,
    Maria Ilieva
    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
  5. Aniketh
    Aniketh avatar
    1 posts
    Member since:
    Dec 2010

    Posted 23 Dec 2010 Link to this post

    Hi All,

      I am facing issue with rad ajax panel used along with Sharepoint 2010 web part giving ScriptResource.axd error as Sys.ArgumentUndefined Exception
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 23 Dec 2010 Link to this post

    Hello Nguyen,

    Could you please test the application by using regular asp UpdatePanel instead of RadAjaxPanel and verify if this makes any difference.

    Regards,

    Maria Ilieva
    the Telerik team

     

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  7. Adiga
    Adiga avatar
    6 posts
    Member since:
    Oct 2012

    Posted 19 Feb 2015 in reply to Maria Ilieva Link to this post

    Hello,

    Im facing the similar issue with Radgrid with Sharepoint 2010. I'm not able to use Radgrid filter as im getting the same error.

    please check the error
  8. Adiga
    Adiga avatar
    6 posts
    Member since:
    Oct 2012

    Posted 19 Feb 2015 Link to this post

    Can you please help me on this...this is very urgent.
  9. Jaya
    Jaya avatar
    81 posts
    Member since:
    Mar 2011

    Posted 19 Feb 2015 in reply to Adiga Link to this post

    hi
    Try to change Browser
  10. Adiga
    Adiga avatar
    6 posts
    Member since:
    Oct 2012

    Posted 19 Feb 2015 Link to this post

    Hello,

    I tried with all browsers, still issue persists.
  11. Adiga
    Adiga avatar
    6 posts
    Member since:
    Oct 2012

    Posted 19 Feb 2015 Link to this post

    Hello,

    Please check the attached file for error message when i used chrome browser.

    Please let me know what is the workaround for this?
  12. Jaya
    Jaya avatar
    81 posts
    Member since:
    Mar 2011

    Posted 19 Feb 2015 in reply to Adiga Link to this post

    hi
    Share your Code here.
  13. Adiga
    Adiga avatar
    6 posts
    Member since:
    Oct 2012

    Posted 20 Feb 2015 Link to this post

    Code behind gridbind method

     private void BindDataToGrid(RadGrid grid, object source, List<String> columnNames, List<String> columnTypes, List<String> headerNames, string title, bool bind, bool clearFilters)
            {
                grid.Columns.Clear();
                foreach (GridColumn gc in grid.Columns) { grid.Columns.Remove(gc); }
                for (int index = 0; index < columnNames.Count; index++)
                {
                    switch (columnTypes[index])
                    {
                        case "Bound":
                            GridBoundColumn boundColumn;
                            boundColumn = new GridBoundColumn();
                            grid.MasterTableView.Columns.Add(boundColumn);
                            boundColumn.DataField = columnNames[index];
                            boundColumn.HeaderText = headerNames[index];
                            boundColumn.AllowFiltering = true;
                            boundColumn.ShowFilterIcon = false;
                            boundColumn.FilterDelay = 4000;
                            boundColumn.AutoPostBackOnFilter = true;
                            boundColumn.UniqueName = columnNames[index];
                             boundColumn.CurrentFilterFunction = GridKnownFunction.Contains;
                            if (clearFilters) { boundColumn.CurrentFilterValue = String.Empty; }
                            break;
                        case "Date":
                            GridDateTimeColumn dateColumn;
                            dateColumn = new GridDateTimeColumn();
                            grid.MasterTableView.Columns.Add(dateColumn);
                            dateColumn.DataField = columnNames[index];
                            dateColumn.HeaderText = headerNames[index];
                            dateColumn.DataFormatString = "{0:MM/dd/yyyy}";
                            dateColumn.FilterDelay = 4000;
                            
                            dateColumn.AllowFiltering = true;
                            dateColumn.AutoPostBackOnFilter = true;
                            dateColumn.ShowFilterIcon = false;
                            dateColumn.UniqueName = columnNames[index];
                            dateColumn.CurrentFilterFunction = GridKnownFunction.Contains;
                            if (clearFilters) dateColumn.CurrentFilterValue = String.Empty;
                            break;
                    }
                }
                if (clearFilters) { grid.MasterTableView.FilterExpression = String.Empty; grid.MasterTableView.SortExpressions.Clear(); }
                grid.ExportSettings.FileName = title;
                grid.DataSource = source;
                grid.DataBind();

                grid.Visible = true;
                rgAssignedToInfo.Visible = false;
            }


    .ascx file

       <telerik:radcodeblock id="codeBlock" runat="server">

              <script type="text/javascript">

                  function OnClientSeriesClicked(sender, args) {

                      //if (args.get_seriesName() != "Months")
                      $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(args.get_category());

                  }

                  function mngRequestStarted(ajaxManager, eventArgs) {
                      if (eventArgs.get_eventTarget().indexOf("mngBtn") != -1)
                          eventArgs.set_enableAjax(false);

                      if (eventArgs.get_eventTarget().indexOf("ExportToExcelButton") >= 0)
                          eventArgs.set_enableAjax(false);
                  }
                  function pnlRequestStarted(ajaxPanel, eventArgs) {
                      if (eventArgs.get_eventTarget().indexOf("pnlBtn") != -1)
                          eventArgs.set_enableAjax(false);
                  }
              </script>

         </telerik:radcodeblock>
        <telerik:radajaxmanager id="RadAjaxManager1" runat="server" onajaxrequest="RadAjaxManager1_AjaxRequest">      
          <ajaxsettings>
              
                  <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                       <UpdatedControls>
                            
                           <telerik:AjaxUpdatedControl ControlID="rgDetails"> </telerik:AjaxUpdatedControl>    
             
                                              
                        </UpdatedControls>
                   </telerik:AjaxSetting>
           
               <telerik:AjaxSetting AjaxControlID="rgDetails">
                        <UpdatedControls>
                              <%--<telerik:AjaxUpdatedControl ControlID="RadHtmlChart2" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>--%>
                          
                           <telerik:AjaxUpdatedControl ControlID="rgDetails"> </telerik:AjaxUpdatedControl>
                     

                        </UpdatedControls>
                   </telerik:AjaxSetting>
                     
              </ajaxsettings>
           <ClientEvents OnRequestStart="mngRequestStarted" />
        </telerik:radajaxmanager>
         
        <table>
            <tr>
                <td style="width: 100%">
                    <h2 style="font-size: 22px">Workflow&nbsp;Dashboard</h2>

                </td>
                
                <td>

                    <asp:Button ID="btnRefresh" runat="server" Text="Goto Main Chart" Visible="false" CssClass="button blue slim left"
                        Style="margin-right: 18px; padding-left: 13px; padding-right: 13px" OnClick="btnRefresh_Click" /></td>
            </tr>
        </table>
    <div class="warning message" id="dvMessage" runat=server style="display: none" ><Span><span id="lblError" runat="server"></span><a href="#" class="close"></a></Span></div>

     
                            <table style="width: 100%; margin-top: 5px; margin-left: 5px; margin-right: 5px; margin-bottom: 10px;">
                               
                                     
               <tr>

                <td style="border: 1px solid  #009ee2">


                    <table cellpadding="0px" cellspacing="0px">
                        <tr>
                            <td class="headerTD">
                                <asp:Label ID="lblChartHeader" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                              
                              
                                 <telerik:radgrid id="rgDetails" runat="server" AllowSorting="True" AllowPaging="false"  AllowFilteringByColumn="True" visible="false" gridlines="None" width="750px"
                                 OnNeedDataSource="rgDetails_NeedDataSource" alternatingitemstyle-height="30" itemstyle-height="30" autogeneratecolumns="false" headerstyle-font-bold="true" >
                                       <GroupingSettings CaseSensitive="false" /> 
                                    <mastertableview AllowFilteringByColumn="True" style="width: 100%"   CommandItemDisplay="Top">
                                        <CommandItemSettings ShowExportToExcelButton="true" ShowRefreshButton="false" ShowAddNewRecordButton="false"></CommandItemSettings>
                                  </mastertableview>
                                  <ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="true"  >   
                                     <Excel Format="Html" /> 
                                  </ExportSettings> 
                                </telerik:radgrid>
                                
                            </td>
                        </tr>
                    </table>


                </td>
            </tr>
        </table>


        <telerik:radajaxloadingpanel id="LoadingPanel1" height="77px" width="113px" runat="server">
               LOADING PLEASE WAIT...
         </telerik:radajaxloadingpanel>
  14. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 23 Feb 2015 Link to this post

    Hi Adiga,

    Ajaxifying the Telerik controls that are positioned within a user controls works somewhat differently from the scenario when they are loaded directly on a web form. In you case, you need to move the RadAjaxManager control to the web part class, create it there and add it to the Controls collection of the web part .
    See the forum post below for more information on this matter:
    http://www.telerik.com/forums/telerik-ajax-issue-with-sharepoint-2010

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  15. Adiga
    Adiga avatar
    6 posts
    Member since:
    Oct 2012

    Posted 24 Feb 2015 in reply to Maria Ilieva Link to this post

    Hi Maria,

    Thanks for your reply.

    I updated the SharePoint 2010 with service pack 2, Interestingly post that the radgrid filter started working. :)


    Thankyou,

    Adiga
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017