or
How do I attaqch the source code - seems like this form will only accept image files? 1. I have what amounts to a simple demo online 'excel spreadsheet' 2. table with fixed 7 cols, 7 rows 3. 2 cols are editable, and as a result of editing them, a calculation is performed on 2 other colums I've set up the 'updater' fields and the 'updatEE' fields propertly I believe. 1. It's not even firing for one of the colums. 2. For the column that's firing, it's firing MULTIPLE RANDOM events, including it's own, and including for the colun that won't fire. 3. If I've set up my 'updater' and 'updatee' controls correctly, then why is the ENTIRE table flashing each TextChange? This is a very very simple application. I'm intersted in what I"m doing wrong because I think I've Followed all the fules. I don't want to post all the code, would rather include a zip - but how do I do that? It seems to only accept images?
<telerik:RadChart ID="ComplianceScoreChart" runat="server" ChartImageFormat="Jpeg" SeriesOrientation="Horizontal"
Height="100px" Width="200px" UseSession="false">
<
add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
Hi,
I would like to know how to put the grid in the edit mode once the record is inserted.
I am using telerik radgrid with editmode="Editforms" and EditFormType="Template"
Insert action is handled in the code behind.
Once record is inserted, I would like the grid to go into edit mode.
I would appreciate help with this.
Thanks,
Manisha
protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) { if (e.Item is GridEditableItem && e.Item.IsInEditMode) { GridEditableItem item = e.Item as GridEditableItem; GridEditManager manager = item.EditManager; GridTextBoxColumnEditor editor = manager.GetColumnEditor("EventID") as GridTextBoxColumnEditor; GridTextBoxColumnEditor editor2 = manager.GetColumnEditor("DateCreated") as GridTextBoxColumnEditor; if (!(e.Item is GridEditFormInsertItem)) //edit record { editor.TextBoxControl.Enabled = false; editor2.TextBoxControl.Enabled = false; } else //add record { editor.TextBoxControl.Visible = false; editor2.TextBoxControl.Visible = false; } } }<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeriesClickedIndependant.aspx.cs" Inherits="SeriesClicked.SeriesClickedIndependant" %><%@ 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 runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest" runat="server"> </telerik:RadAjaxManager> <telerik:RadHtmlChart ID="RadHtmlChart1" OnClientSeriesClicked="OnClientSeriesClicked" runat="server"> </telerik:RadHtmlChart> <script type="text/javascript"> function OnClientSeriesClicked(sender, eventArgs) { //alert("You clicked on a series item with value '" + eventArgs.get_value() + "' from category '" + eventArgs.get_category() + " and Series:" + eventArgs.get_seriesName() + '.'); $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(eventArgs.get_seriesName()); } </script> </div> </form></body></html>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Reports.ReportPresenter;using Telerik.Web.UI;namespace SeriesClicked{ public partial class SeriesClickedIndependant : System.Web.UI.Page { private ReportsDataSource _radDataSource; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { PreFetch(); FetchData(ReportsStoredProcedures.StoredProcedures.Company, new ReportsParameters(1356, "01/01/2011", "05/30/2011")); PostFetch(); } } public void FetchData(ReportsStoredProcedures.StoredProcedures storedProcedure, ReportsParameters parameters) { //Populates the DataSource that will be used by the RADHTMLChart _radDataSource = new ReportsPresenter().GetReportsDataSource(storedProcedure, parameters); } public void PostFetch() { foreach (LineSeries lS in _radDataSource.ReportsRadHtmlSource.SeriesCollection) { RadHtmlChart1.PlotArea.Series.Add(lS); } foreach (string s in _radDataSource.ReportsRadHtmlSource.LabelsArray) { RadHtmlChart1.PlotArea.XAxis.Items.Add(s); } } public void PreFetch() { RadHtmlChart1.PlotArea.Series.Clear(); } protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) { PreFetch(); FetchData(ReportsStoredProcedures.StoredProcedures.Region, new ReportsParameters(1356, 1356, 0, Reports.DataAccess.Facility.FacilityType.Regional, "01/01/2011", "05/30/2011")); PostFetch(); } public void FetchData() { } }}