radgrid

Telerik RadGrid - How do I default to edit mode?

早过忘川 提交于 2019-12-12 08:50:12
问题 I want to make the items of my RadGrid be editable on page load. I've tried both methods here http://www.telerik.com/help/aspnet/grid/grddefaulteditmodeforgriditemsoninitialload.html but neither have any effect. The 2nd method for example, shown below where the Edit property is set on the ItemCreated event, causes the Edit mode to be set true (verified by debugger) but it has no effect on the results when the page is displayed. Anyone have any ideas what I'm doing wrong? protected void

RadGrid make field invisible on Edit

时光怂恿深爱的人放手 提交于 2019-12-12 04:48:43
问题 <telerik:RadGrid runat="server" ID="rdReport" AutoGenerateColumns="false" AllowPaging="true" Skin="Metro" OnItemCommand="ItemCommand" OnItemDataBound="rdReport_ItemDataBound" OnPreRender="rdReport_PreRender" DataSourceID="FountainSource" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true"> <MasterTableView DataKeyNames="ID" CommandItemDisplay="None"> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" /> <telerik:GridBoundColumn DataField="LocName" HeaderText="Location"

Check all CheckBoxes in Telerik nested Grid in C#

 ̄綄美尐妖づ 提交于 2019-12-12 02:36:19
问题 Below is my code for nested grid of telerik: <telerik:RadGrid runat="server" ID="OrdersGrid" ShowFooter="True" AllowSorting="True" EnableLinqExpressions="false" GridLines="None" OnInsertCommand="OrdersGrid_InsertCommand" OnItemCommand="OrdersGrid_ItemCommand" OnItemDataBound="OrdersGrid_ItemDataBound" Width="100%" HeaderStyle-CssClass="gridHeader" OnItemCreated="OrdersGrid_ItemCreated"> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> </ClientSettings>

Make RadEditor invisible in RadGrid

你说的曾经没有我的故事 提交于 2019-12-12 02:13:30
问题 I have a Radgrid call Grid1. Inside the RadGrid I like to make a field RadEditor invisible programatically <telerik:GridTemplateColumn DataField="Description" FilterControlAltText="Filter Description column" HeaderText="Description" SortExpression="Description" UniqueName="Description"> <EditItemTemplate> <telerik:RadEditor StripFormattingOnPaste="MSWord" ID="LimitEdit" runat="server" Content='<%# Bind("Description") %>' Skin="Windows7"> </telerik:RadEditor> </EditItemTemplate> I tried the

Add new record to Telerik RadGrid

喜夏-厌秋 提交于 2019-12-11 19:54:10
问题 I have the following Telerik RadGrid, which I'm using in C#: <MasterTableView Width="100%" EditMode= "InPlace" ClientDataKeyNames="menuID" CommandItemDisplay= "Top"> <Columns> <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" UniqueName="Name"></telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName="Type" HeaderText="Type"> <ItemTemplate> <asp:TextBox ID="Type" Text='<%# DataBinder.Eval(Container.DataItem, "Type") %>' runat="server"></asp:TextBox> <

How do you read the chosen value from a RadComboBox?

烈酒焚心 提交于 2019-12-11 14:48:43
问题 Inside a RadGrid, I have a drop RadComboBox that is populated by a web service. I am using an EditItemTemplate nested inside a GridTemplateColumn to hold it, as shown: On the server side, how can I access the value chosen by the user from the RadComboBox? <telerik:GridTemplateColumn UniqueName="UserCol" HeaderText="proto user" DataField="UserID"> <EditItemTemplate> <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="false" CausesValidation="true" Width="240" MaxHeight="200px"

Sitefinity A potentially dangerous Request.Path value was detected from the client (?)

半城伤御伤魂 提交于 2019-12-11 14:12:29
问题 I am using Sitefinity 5.1 and RadGrid in this example. I have been troubleshooting one of our pages on development server this morning and I have confirmed that it behaves differently on the page with the styling (template) than on the barebones page (no styling, no scripts etc): The page does not work in Chrome but does work in IE and Firefox The page on a bare-bones page (no template, header, or anything else) works in IE, Firefox and Chrome Code used: Response.Redirect(String.Format("~

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;

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