Hello!
After downloading a file from a grid, my page keeps loading in loop, never stoppin. In order to be abble to do the download,
Along the way, i found out that the following function to disable AJAX was necessary to allow postback, so i believe the issue comes from here.
function onRequestStart(sender, args) {
try {
if (args.get_eventTarget().indexOf("lnkDownload") >= 0) {
args.set_enableAjax(false);
return true;
}
}
catch (ex) {
alert("Error pushing postback: " + ex.message);
}
}I also tried a similar function,, seting timeout in order to try to reestablish the normal behavour of the page, with any success.
function gridCommand(sender, args) {
if (args.get_commandName() == "download_file") { // "DownloadAttachment"
manager.set_enableAJAX(false);
setTimeout(function () {
manager.set_enableAJAX(true);
}, 0);
}
} Any ideas on the solution for this problem?
Hi,
I am using a RadPdfViewer control and i have a PDF with forms fiels but, when render the pdf file, Form fields don't appear.

who do i find the jquery version Telerik is using?
Telerik asp.net ajax version 2021.616.45

Hello,
I want to apply widths to certain columns, that are defined by a user. Since the columns themselves don't provide a Width-property, I tried to use the column settings of the MasterTableView.
I create the ColumnSettings like this:
string[] columnWidths = {"125", "164", "64", "125"};
foreach (string columnWidth in columnWidths)
{
Grid.MasterTableView.ColumnSettings.Add(new GridTableView.PersistableColumnSetting
{
Width = columnWidth
});
}
But I can't find any method to apply these settings to a grid column.
Do I miss something or is there an easier way to set the width of a column?
I am trying to get .xlsx export to not give this warning shown below.
I am using a RadGrid that AutoGenerates columns. The RadGrid's culture is en-US. Need Data source gets a DataTable with one column and one row, with the value of -4.50. On ColumnCreated it makes the GridNumericColumn Currency type. The Grid displays the format properly. It also puts the value into excel as though it looks correct.
**The problem I currently see is that it is putting a line break after the value in excel. Not sure why this is happening with the export?
Example of code:
(.aspx file)
<div class="form-row mt-4">
<div class="col-md">
<div class="form-inline float-md-right">
<telerik:radajaxpanel runat="server" postbackcontrols="btnExportTest">
<asp:Button ID="btnExportTest" OnClick="btnExportTest_Click" runat="server" Text="Export" />
</telerik:radajaxpanel>
</div>
</div>
</div>
<div class="form-row mt-4">
<div class="col-md">
<telerik:RadGrid ID="Grid1" RenderMode="Lightweight" Skin="Bootstrap" runat="server" OnNeedDataSource="Grid1_NeedDataSource"
AllowFilteringByColumn="false" AllowPaging="false" AutoGenerateColumns="true" OnColumnCreated="Grid1_ColumnCreated">
</telerik:RadGrid>
</div>
</div>(.cs)
protected void Grid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
DataTable table = new DataTable();
table.Columns.Add("currency", typeof(double));
table.Rows.Add("-4.50");
Grid1.DataSource = table;
}
protected void btnExportTest_Click(object sender, EventArgs e)
{
Grid1.ExportSettings.IgnorePaging = true;
Grid1.ExportSettings.FileName = "test";
Grid1.ExportSettings.ExportOnlyData = true;
Grid1.ExportSettings.OpenInNewWindow = true;
Grid1.ExportSettings.Excel.Format = GridExcelExportFormat.Xlsx;
Grid1.MasterTableView.ExportToExcel();
}
protected void Grid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
if (e.Column is GridNumericColumn)
{
((GridNumericColumn)e.Column).NumericType = NumericType.Currency;
}
}I verified my windows settings are set up to show negative Currency with ($0.00).
This seems like it is just a problem with exporting from Telerik? Is there something that can make negative currencies export?
Currently using Q2 2021 Telerik version

Hi,
I can't get the scrollbars to show up. Below is the html of the whole page but it loads a page base too. Screenshot with a large image and no scrollbars is also attached.
Could something be suppressing them? If so, how can I identify or override?
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="DigitalAssetEdit.aspx.vb" Inherits="IronPoint.CM.WebUI.Admin.DigitalAssetEdit" %>

Hello telerik community!
I'm currently working within a user form which contains a grid. I want to load the Update and Insert operations, and respective forms in another user control. I'm using 3 layer architecture. What am i missing?
<%@ Register Src="~/Views/Projectos/Equipa/ViewEmissaoTimeSheetEdit.ascx" TagPrefix="uc1" TagName="ViewEmissaoTimeSheetEdit" %> //Child reference in parent UC <%@ Reference Control="~/Views/Projectos/Equipa/ViewEmissaoTimeSheetEdit.ascx" %>
ClassName="EditCommandColumn" //Reference in child User Control
<Telerik:RadGrid AllowAutomaticInserts="true" AllowAutomaticUpdates="true" On>
<Columns>
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
</telerik:GridEditCommandColumn>
...
</Columns>
<EditFormSettings UserControlName="ViewEmissaoTimeSheetEdit.acsx" EditFormType="WebUserControl" >
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
</MasterTableView>
Hello
I have problem i have one wsdl that is connected with Visual Studio. And i need add result of one get methode to table. My question is how, it is possible? I have any svc file, any asmx only wsdl https://www.um.poznan.pl/web-service/news?wsdl
I tried it
<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="AskingTheWB._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<script type="text/javascript">
//Put your JavaScript code here.
</script>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<div>
<h3>RadGrid bound to Web Service</h3>
<telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RadGrid2" AllowPaging="true" AllowSorting="true"
AllowFilteringByColumn="true" PageSize="1">
<MasterTableView DataKeyNames="ProductID" ClientDataKeyNames="ProductID">
<PagerStyle Mode="NumericPages" />
<Columns>
<telerik:GridBoundColumn DataField="News" HeaderText="News" DataType="System.String">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings>
<DataBinding SelectMethod="getNews" Location="https://www.um.poznan.pl/web-service/news" SortParameterType="Linq"
FilterParameterType="Linq">
</DataBinding>
</ClientSettings>
</telerik:RadGrid>
</div>
</form>
</body>
</html>
but my table is empty.
I have a page with a popup RadWindow. In the RadWindow, users fill out a simple form and click on an OK button. The processing takes several seconds and sometimes users click on the OK button again. I am trying to find a way of disabling the OK button in javascript while the process runs, if the button is not in a RadAjaxPanel or one of the controls in a RadAjaxManager, the button does not change when it is disabled. When the button is n a RadAjaxPanel or one of the controls in a RadAjaxManager, I can't close the RadWindow.
I would think this is a pretty frequent issue. Anyone have any ideas? If you know of sample code that solves this I would really appreciate it!
Thanks
Hi,
I have the following snippet in my ASP.NET
<TELERIK:RADMULTICOLUMNCOMBOBOX ID="RadMultiColumnComboBoxSearch" runat="server" Filter="startsWith" FilterFields="DrawingName, Description"
Height="800" AllowPaging="true" EnableServerFiltering="true" MinLength="3" PageSize="60" DataTextField="DrawingName" DataValueField="DrawingID">
<COLUMNSCOLLECTION>
<TELERIK:MULTICOLUMNCOMBOBOXCOLUMN Field="DrawingID" Title="ID" />
<TELERIK:MULTICOLUMNCOMBOBOXCOLUMN Field="DrawingName" Title="Name" />
<TELERIK:MULTICOLUMNCOMBOBOXCOLUMN Field="Description" Title="Description" />
</COLUMNSCOLLECTION>
<WEBSERVICESETTINGS ServiceType="XML" Select-DataType="JSON" Select-Url="Default.aspx/GetDrawingsSuggestion" Select-RequestType="Post" />
</TELERIK:RADMULTICOLUMNCOMBOBOX>
[WebMethod()]
public static string GetDrawingsSuggestion(string filter)
{
string filterText = HttpUtility.UrlDecode(filter);
using (HEN_INTRANET_ProductionEntities dc = new HEN_INTRANET_ProductionEntities())
{
var q = from d in dc.tbl_ENECR_Drawings
where (d.DrawingFlag == 1 | d.DrawingFlag == 2) && d.DrawingTypeID == 1
select new
{
DrawingID = d.DrawingID,
DrawingName = d.DrawingName,
Description = d.Description,
};
var drawingsList = q.ToList();
return Newtonsoft.Json.JsonConvert.SerializeObject(drawingsList);
}
}
Can I use a page method service to get the data I need from the server?
Looking in Fiddler the call to the GetDrawingsSuggestion method occurs, but it returns the page contents. It does not execute the method. It just returns the rendered page.