telerik

Sitefinity 11 Can't get dropdown selected value on postback in Frontend Widget Control

岁酱吖の 提交于 2019-12-11 14:23:54
问题 I am using Sitefinity 11. I have created a Custom Widget for News Module, having Drop down for all available Categories, where I need to filter the News for Selected Category. The Control postback's but it's SelectedIndex is always ZERO. I have checked the checkbox for "Enable View State for this page" and Page is using custom Layout Template. The code in my .aspx file is given below: <%@ Control Language="C#" %> <%@ Import Namespace="Telerik.Sitefinity.Modules.News" %> <%@ Import Namespace=

KeyPress event for RadNumeric Textbox in Radgrid for exchanging coloumn values

半腔热情 提交于 2019-12-11 14:04:34
问题 I am developing a website in C# using a RadGrid in one of my forms. Below is my ASPX code for the RadGrid: <telerik:RadGrid ID="GridViewAllocation" runat="server" Height="200px" Width="100%" AutoGenerateColumns="False" GridLines="None" OnItemDataBound="GridViewAllocation_ItemDataBound" OnItemCommand="GridViewAllocation_ItemCommand"> <MasterTableView> <Columns> <telerik:GridBoundColumn HeaderText="Amount O/S" UniqueName="AMT" DataField="AMT"> </telerik:GridBoundColumn> <telerik

FindControl return null for RadEditor

99封情书 提交于 2019-12-11 13:19:54
问题 I have the following RadGrid below. I am trying to access the RadEditor when I edit and set visible to false the following way but getting an error that it is null: protected void ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "Edit") { var gridItem = e.Item as GridEditableItem; if ("ActionItems".Equals(e.Item.OwnerTableView.Name)) { GridEditableItem editItem = e.Item as GridEditableItem; RadEditor radEditor = editItem.FindControl("LimitEdit") as RadEditor;

Why are my KendoGrid “update” parameters always null in the controller?

坚强是说给别人听的谎言 提交于 2019-12-11 13:01:50
问题 I have the following code in my Index.cshtml file: var dataSource = new kendo.data.DataSource({ type: "json", transport: { read: { url: '@Url.Action("ReadTeachers", "EducationPortal")', dataType: "json" }, update: { url: '@Url.Action("UpdateTeachers", "EducationPortal")', type: "POST" }, parameterMap: function (data, operation) { if (operation != "read"){ var result = {}; for (var i = 0; i < data.models.length; i++) { var teacher = data.models[i]; for (var member in teacher) { result["teacher

Telerik RadGrid: Formatting Footer cell in OnExportCellFormatting

ⅰ亾dé卋堺 提交于 2019-12-11 12:57:57
问题 Posted 1 day ago Hi, I have a currency value column in a radgrid, and exporting to excel using this function for formatting the currency cells protected void RadGrid_OnExportCellFormatting(object sender, ExportCellFormattingEventArgs e) { if (e.FormattedColumn.DataType == typeof (long)) { e.Cell.Style["mso-number-format"] = "Currency"; } } Works very well, but it doesn't format the footer item which is an aggregated sum value. How do I format the footer to be currency as well? 回答1: In the

Telerik MVC DatePicker - Disable all future dates

蹲街弑〆低调 提交于 2019-12-11 12:55:12
问题 I have a Telerik MVC DatePicker : <%: Html.Telerik().DatePickerFor(model => model.Date) .TodayButton() .Max(DateTime.Now) .HtmlAttributes(new { @onkeypress = "return allowNumbersWithDot(event);", @onpaste = "return false;" }) %> By setting Max property, I get dates only till current date and all future dates are hidden. What I what is, enable all dates till current date and disable all future dates. i.e. user can see all dates but can select only till the current date. 回答1: The Max property

telerik RadComboBox find Returns null - why?

主宰稳场 提交于 2019-12-11 12:41:49
问题 why the below javascript code always returns null (mean alert) ? <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication3.WebForm1" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <!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 id="Head1" runat="server"> <title></title> </head> <body

Access child RadGrid footer in NestedViewTemplate

牧云@^-^@ 提交于 2019-12-11 11:27:30
问题 I have a RadGrid with expandable rows, where each expanded NestedViewTemplate contains a RadGrid. The child RadGrids have a visible footer and a few columns (I've included one, "DtlTransAmount"): <NestedViewTemplate> <asp:Panel ID="pnDetailItems" runat="server" > <telerik:RadGrid ID="rgDetailItems" runat="server" ShowFooter="true" Width="1675px" AutoGenerateColumns="false" AllowPaging="false" OnItemDataBound="rgDetailItems_ItemDataBound" ... > <MasterTableView> <Columns> <telerik

Telerik RadChart labeling and positioning

一笑奈何 提交于 2019-12-11 10:45:53
问题 I'm new to Telerik Chart controls and I have some minor problems: (1) I want to set the (1, 2, 3, 4) in the horizontal axis into ("a", "b", "c", "d") (2) The legend stays at the top of the chart Please tell me how to do it. 回答1: (1) I want to set the (1, 2, 3, 4) in the horizontal axis into ("a", "b", "c", "d") (2) Use the Legend section under the chart wizard to adjust the location of your legend: 回答2: <Legend><Appearance Dimensions-Margins="17.6%, 3%, 1px, 1px" Dimensions-Paddings="2px, 8px

Can't click button when soft-keyboard is visible

北战南征 提交于 2019-12-11 09:50:15
问题 When an text input element has focus (and the soft keyboard is visible), I can't click the submit button (which is clearly visible) directly. I have to first dismiss the keyboard (by clicking elsewhere or on "Done" on the keyboard), and then click the submit button. This is confusing behaviour. I have considered removing the log-in button altogether when the keyboard is visible, but that would be too confusing (for users wouldn't know that they could click "Go", or will be annoyed that the