13 Answers, 1 is accepted
0
Nguyen
Top achievements
Rank 1
answered on 05 Oct 2010, 11:14 AM
Hi all
It is very urgent, please help me !
Thanks all
Nguyen
0
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
0
Aniketh
Top achievements
Rank 1
answered on 23 Dec 2010, 12:27 PM
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
I am facing issue with rad ajax panel used along with Sharepoint 2010 web part giving ScriptResource.axd error as Sys.ArgumentUndefined Exception
0
Hello Nguyen,
the Telerik team
Could you please test the application by using regular asp UpdatePanel instead of RadAjaxPanel and verify if this makes any difference.
Regards,
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.
0
Adiga
Top achievements
Rank 2
answered on 19 Feb 2015, 10:03 AM
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
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
0
Adiga
Top achievements
Rank 2
answered on 19 Feb 2015, 10:04 AM
Can you please help me on this...this is very urgent.
0
Jaya
Top achievements
Rank 1
answered on 19 Feb 2015, 10:13 AM
hi
Try to change Browser
Try to change Browser
0
Adiga
Top achievements
Rank 2
answered on 19 Feb 2015, 11:49 AM
Hello,
I tried with all browsers, still issue persists.
I tried with all browsers, still issue persists.
0
Adiga
Top achievements
Rank 2
answered on 19 Feb 2015, 12:05 PM
Hello,
Please check the attached file for error message when i used chrome browser.
Please let me know what is the workaround for this?
Please check the attached file for error message when i used chrome browser.
Please let me know what is the workaround for this?
0
Jaya
Top achievements
Rank 1
answered on 20 Feb 2015, 03:17 AM
hi
Share your Code here.
Share your Code here.
0
Adiga
Top achievements
Rank 2
answered on 20 Feb 2015, 06:50 AM
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 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>
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 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>
0
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
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.
0
Adiga
Top achievements
Rank 2
answered on 24 Feb 2015, 08:21 AM
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
Thanks for your reply.
I updated the SharePoint 2010 with service pack 2, Interestingly post that the radgrid filter started working. :)
Thankyou,
Adiga