
Hi,
we are using CDN to get Telerik scripts and styles. All is set in web.config:
<add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />
<add key="Telerik.ScriptManager.TelerikCdn.CombinedResource" value="Enabled" />
<add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" />
<add key="Telerik.StyleSheetManager.TelerikCdn.CombinedResource" value="Enabled" />
Now I found that some controls are broken. I tried to identify problem, so deactivated CDN. All works fine. Controls are ok.
So I disabled CombinedResources and found, that all CSS files are for lightweight rendering.
https://d35islomi5rx1v.cloudfront.net/ajaxz/2017.2.711/CombinedBaseSkinClassic.css
But we are using custom skins in Classic render mode. I tried to set it to web.config too, but it doesn't work:
<add key="Telerik.Web.UI.RenderMode" value="classic" />
So when CDN started to provide lightweight styles and how to get classic ones?
Regards
René
I have a radgrid with these propertie
AutoGenerateColumns="false" AllowAutomaticDeletes="true" AllowSorting="True" AllowPaging="true" AllowFilteringByColumn="true" OnInsertCommand="rgData_InsertCommand" OnUpdateCommand="rgData_UpdateCommand" OnItemDataBound="rgData_ItemDataBound" OnDeleteCommand="rgData_DeleteCommand" EnableViewState="true" OnItemCommand="rgData_ItemCommand" ShowStatusBar="true" OnInit="RgHomicideData_Init" OnNeedDataSource="rgData_NeedDataSource" CommandItemStyle-HorizontalAlign="Left">
The radgrid works as expected. I use this code in my needdatasource
string strYear = DateTime.Now.Year.ToString(); DateTime StartDate = Convert.ToDateTime("1/1/" + strYear); DateTime EndDate = Convert.ToDateTime("12/31/" + strYear); rgData.DataSource = DbContext.tblData .Where(d => d.deleted == false).ToList();
sort and paging is working properly
Now I want to filter the data by a date range so I use this code
Boolean DateChk1 = dpStartDate.SelectedDate.HasValue; Boolean DateChk2 = dpStartDate.SelectedDate.HasValue; string comboSearch = cboxSearch.Text; int intComboSearch = comboSearch.Length; if (comboSearch.Length > 0 && DateChk1 == true && DateChk2 == true) { DateTime Date1 = dpStartDate.SelectedDate.Value; DateTime Date2 = dpEndDate.SelectedDate.Value; rgData.DataSource = DbContext.AAADataSearchByDateRange(comboSearch, Date1, Date2).ToList();The data refreshes and shows the filtered data. Now if I click the column header to sort or I chnage to another page the radgrid looses all data and all I see is a line on the screen. Can someone please explain the problem and how to fix it
Thanks
I have a RadComboBox that shows two columns in the drop down, I have a header for them as well. I want the 2 columns to show once the item is selected. I'm new to Telerik, so I'm not sure if I'm saying this correctly, but I essentially would like a DataTextField ='ID + Name".
Is there a way to make 2 datatextfields show up in the selected value of a RadComboBox, either in ASP.Net, or VB/C#?
Thank you,
J
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
I want to use a "GridDropDownColumn" column as shown in the example:
<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> <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" AllowPaging="True" DataSourceID="LinqDataSource1" AutoGenerateColumns="False" ShowGroupPanel="True" EnableHeaderContextMenu="True"> <pagerstyle mode="NextPrevAndNumeric" /> <ClientSettings AllowDragToGroup="True"/> <mastertableview commanditemdisplay="Top" datakeynames="ProductID" datasourceid="LinqDataSource1" editmode="InPlace"> <Columns> <telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName" UniqueName="ProductName"/> <telerik:GridDropDownColumn DataField="CategoryID" DataType="System.Int32" HeaderText="Category" UniqueName="CategoryID" DataSourceID="LinqDataSource2" ListValueField="CategoryID" ListTextField="CategoryName" SortExpression="Categories.CategoryName" GroupByExpression="Categories.CategoryName [Category] Group By Categories.CategoryName"/> <telerik:GridBoundColumn DataField="UnitPrice" HeaderText="UnitPrice" SortExpression="UnitPrice" UniqueName="UnitPrice"/> <telerik:GridBoundColumn DataField="UnitsInStock" HeaderText="UnitsInStock" SortExpression="UnitsInStock" UniqueName="UnitsInStock"/> <telerik:GridCheckBoxColumn DataField="Discontinued" HeaderText="Discontinued" SortExpression="Discontinued" UniqueName="Discontinued"/> </Columns> </mastertableview> </telerik:RadGrid> <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="TelerikWebSample.DataClasses1DataContext" EntityTypeName="" TableName="Products"/> <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="TelerikWebSample.DataClasses1DataContext" EntityTypeName="" TableName="Categories" Select="new (CategoryID, CategoryName)"/></form>When grouped by that column I get the following error:
"Field Categories.CategoryName not found in the source table. Please check the expression syntax."
However, when you add a new column that is not visible with the "Categories.CategoryName" field, everything works perfectly.
<telerik:GridBoundColumn DataField="Categories.CategoryName" UniqueName="CategoryName" Visible="False"/>What is this about?.
Is there a solution to avoid unnecessarily using this non-visible column?
Thanks for the help.
Delvis

When I try to export data to Excel from RadGrid in localhost it works fine, but if I publish my page in the server it stops working.
I have the next code:
protected void btnExportToExcel_Click(object sender, EventArgs e)
{
radGridAlerts.ExportSettings.Excel.Format = GridExcelExportFormat.Xlsx;
radGridAlerts.ExportSettings.FileName = "Alerts Data";
radGridAlerts.ExportSettings.IgnorePaging = true;
radGridAlerts.MasterTableView.ExportToExcel();
}
Do you know why happens?
