Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
88 views
I have a RadScheduler set up, but when I switch to Month View (which is the default view), I cannot see all-day events. These events show up as a thin (maybe 2px wide) line, with the proper height. I cannot see any details unless I hover directly over the event. Is there any way to change this so that all-day events appear just like the other events in month view?
Marc Fearby
Top achievements
Rank 1
 answered on 10 Aug 2011
7 answers
346 views
Hi,

this one is a bit urgent, I need to implement it asap.
In my application I have several update panels and everything is loaded dynamically (parent controls load child controls etc).
I'm having an issue loading a control that has ImageEditor inside, I get:

Object reference not set to an instance of an object. at System.Web.UI.AsyncPostBackTrigger.HasTriggered() at System.Web.UI.UpdatePanelTriggerCollection.HasTriggered() at System.Web.UI.PageRequestManager.ProcessUpdatePanels() at System.Web.UI.PageRequestManager.RenderPageCallback(HtmlTextWriter writer, Control pageControl) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Please create a new VS 2010 Rad controls project (.NET 4.0). Next create 2 user controls: MainContainer and PageImageEditor

MainContainer is:
<asp:UpdatePanel ID="up" runat="server" UpdateMode="Conditional">
       <ContentTemplate>
           <asp:PlaceHolder ID="ph" runat="server"></asp:PlaceHolder>
           <asp:Button ID="btn_TestLoad" runat="server" Text="Test load" onclick="btn_TestLoad_Click" />
 
       </ContentTemplate>
   </asp:UpdatePanel>
and cs file:

private void LoadOwnControl()
        {
            Control ctrl = LoadControl(CurrentLoadedControlName);
            ph.Controls.Clear();
            ph.Controls.Add(ctrl);
        }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
 
            if (Session["CurrentLoadedControlName"] != null)
                LoadOwnControl();
        }
 
        protected void Page_Load(object sender, EventArgs e)
        {
             
        }
 
        private string CurrentLoadedControlName
        {
            get
            {
                if (Session["CurrentLoadedControlName"] == null)
                    Session["CurrentLoadedControlName"] = "~/DummyControl.ascx";
 
                return Session["CurrentLoadedControlName"] as string;
            }
            set { Session["CurrentLoadedControlName"] = value; }
        }
 
        protected void btn_TestLoad_Click(object sender, EventArgs e)
        {
            CurrentLoadedControlName = "~/PageImageEditor.ascx";
            LoadOwnControl();
        }

PageImageEditor is just:
<telerik:RadImageEditor ID="RadImageEditor1" runat="server">
</telerik:RadImageEditor>

Drop MainContainer user control in Designer to Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
 
<%@ Register src="PageImageEditor.ascx" tagname="PageImageEditor" tagprefix="uc1" %>
 
<%@ Register src="MainContainer.ascx" tagname="MainContainer" tagprefix="uc2" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <%--<telerik:RadStyleSheetManager ID="RadStyleSheetManager2" runat="server">
        <StyleSheets>
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.ImageEditor.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Default.ImageEditor.Default.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.ToolBar.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Default.ToolBar.Default.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Dock.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Default.Dock.Default.css" Assembly="Telerik.Web.UI" />
        </StyleSheets>
    </telerik:RadStyleSheetManager> --%>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <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>
 
        <uc2:MainContainer ID="MainContainer1" runat="server" />
 
    </div>
    </form>
</body>
</html>

start the project, click the button and you will instantly get error:
Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

also give a try and comment out UpdatePanel code (not placeholder and button) in MainContainer, you will not get this error, but dialogs of ImageEditor won't load anything except their title (not sure if this is the only thing that doesn't work, didn't check, cause it didn't make sense to proceed further).

So question is basically how to make this work in scenario described when control in inside UpdatePanel.

Thank you!

P.S.: in current project similar technique is applied to several other Telerik controls, no similar (major) problems faced so far.
Shukhrat Nekbaev
Top achievements
Rank 1
 answered on 10 Aug 2011
1 answer
73 views
Hello, I have a couple of somewhat related questions:
  1. I loaded the Webservice example in VS2010. I also tested the Xml datasource example. I notice when I use the Webservice data provider AppointmentDataBound does not fire. If I switch to the Xml datasource then the event fires. Why is this not firing under Webservices? Do I add another WebMethod for this event into my Webservice? Basically I am tring to set various resource values like color, so would I do this in the LoadResource routine of the custom provider?
  2. I am looking for an example that will bind RadScheduler directly to my SqlSchedulerProvider without needing Webservices, is this possible.

Thank you!

Jeff
Top achievements
Rank 1
 answered on 09 Aug 2011
3 answers
125 views
HI!
I need somes changes in RadFilter:

- change the radfilter desing such as the atttach image. Is possible this? the client need the filter like this.
- Change the options AND/OR/ANDNot /ORNot by:
                  - delete Andnor and OrNot
                  - Change And ad OR text by other such as: Matching All and Matching any.
- remove "add group" button.


Thanks!!

July
Top achievements
Rank 2
 answered on 09 Aug 2011
1 answer
149 views
Hi all,

I've read a lot of posts concerning this issue so I've tried a lot of different things already.  The grid doesn't even launch the gridCreated.  The grid is within an Asp form.  I've got two other grids in a master/detail scenario setup as web service data sources with the same svc code and they work fine.  I've got linq data source and checked that the source is okay as well.

I've got the latest tools version.

Here's my aspx , wcf file and jscript:
function pageLoad() {
             // create references to list of controls from the form
             // bind cse notes based on filter
             rdCSENotes = $find('<%= rlMOView.FindControl("rdGridCSENotes").ClientID %>');
             var tableViewCse = rdCSENotes.get_masterTableView();

function GridCreated(sender, eventArgs) {
              alert("Grid with ClientID: " + sender.get_id() + " was created");
          }
 function rdGridNotes_DataBinding(sender, args) {
              // bind notes based on id to determine security group
              // for identifying filter needs to be applied other than
              // mfgorder id
              // get form key to filter the notes through
              var hdnMfgKey = document.getElementById('ctl00_MainContent_hdnMfgKey');
              // reference the grid by id
              var rdNotes_id = sender.get_id();
              var arrNotesGridControls = new Array(6);
              arrNotesGridControls[0] = "rdGridCSENotes^14";
              arrNotesGridControls[1] = "rdGridCSTNotes^15";
              arrNotesGridControls[2] = "rdGridBSNotes^16";
              arrNotesGridControls[3] = "rdGridQANotes^26";
              arrNotesGridControls[4] = "rdGridPurchasingNotes^17";
              arrNotesGridControls[5] = "rdGridLogisticsNotes^52";
              arrNotesGridControls[6] = "rdGridCustomerSpecNotes^30";
              // pull the group id
              for (var i = 0; i < arrNotesControls.length; i++) {
                  var arrSplit = arrNotesControls[i].split("^");
                  if (rdNotes_id.search(arrSplit[0]) != -1) {
                      // note identified attach the group to the end of the field name
                      // and fire filter event
                      var secGrp = arrSplit[1];
                      var filtKey = "MfgOrderID^" + secGrp + "^";
                      // apply filter to the grid data source include the security group id to handle in the service method
                      rdCSE = $find('<%= rlMOView.FindControl("rdGridCSENotes").ClientID %>');
                      tableView = rdCSE.get_masterTableView();
                      tableView.filter(filtKey, hdnMfgKey.value, "EqualTo");
                      break;
                  }
              }
          }
<telerik:RadGrid ID="rdGridCSENotes" GridLines="None" EnableEmbeddedSkins="False"
                                                    Skin="ddiWebBlue" runat="server" Height="48px" Width="875px"  EnableViewState="false"
                                                    AutoGenerateColumns="False" CellSpacing="0" AllowAutomaticUpdates="false" AllowAutomaticDeletes="False"
                                                    AllowAutomaticInserts="false" ShowHeader="False" AllowPaging="false">
                                                    <MasterTableView ShowFooter="false" AllowNaturalSort="false" CommandItemDisplay="Top" ClientDataKeyNames="MfgOrderID"
                                                        ItemStyle-CssClass="comments" NoMasterRecordsText=" <div style='font-size: 10px; font-family: 'segoe ui',arial,sans-serif;'>No CSE notes currently entered.</div>"
                                                        TableLayout="Fixed" GridLines="Horizontal" ShowHeadersWhenNoRecords="False">
                                                        <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" />
                                                        <CommandItemStyle CssClass="commViewCommand" />
                                                        <ItemStyle CssClass="comments" />
                                                        <AlternatingItemStyle CssClass="comments" />
                                                        <Columns>
                                                             <telerik:GridDateTimeColumn DataField="StatusDateTime" DataType="System.DateTime"
                                                                ItemStyle-Width="85px" DataFormatString="{0:MM/dd/yy hh:mm tt}">
                                                            </telerik:GridDateTimeColumn>
                                                            <telerik:GridBoundColumn DataField="LogonID" DataType="System.String" HeaderText="DisplayName"
                                                                UniqueName="DisplayName" ItemStyle-Width="70px">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="StatusComment" DataType="System.String" HeaderText="StatusComment"
                                                                UniqueName="StatusComment" ItemStyle-Wrap="false" ItemStyle-Width="653px">
                                                            </telerik:GridBoundColumn>
                                                        </Columns>
                                                    </MasterTableView>
                                                <ClientSettings>
                                            <DataBinding Location="GridMasterDetailsService.svc" FilterParameterType="Linq" SelectMethod="GetNotesDataAndCount"
                                                SortParameterType="Linq">
                                            </DataBinding>
                                            <ClientEvents OnDataBinding="rdGridNotes_DataBinding" OnGridCreated="GridCreated" OnCommand="function(){}" />
                                            <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="True">
                                            </Scrolling>
                                                   </ClientSettings>
                                                    <HeaderContextMenu EnableEmbeddedSkins="False" CssClass="GridContextMenu GridContextMenu_ddiWebBlue">
                                                    </HeaderContextMenu>
                                                </telerik:RadGrid>
using System;
using System.Linq;
using System.Runtime.Serialization;
using System.Web.Services;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Collections.Generic;
using System.Collections;
using System.Reflection;
  
namespace DataContracts
{
    [DataContract]
    public class MO_POHdr
    {
         [DataMember]
        public int MfgAssocDocID { get; set; }
         [DataMember]
         public int? MfgOrderID { get; set; }
        [DataMember]
        public string ponumber { get; set; }
        [DataMember]
        public string vendname { get; set; }
        [DataMember]
        public string vendorid { get; set; }
        [DataMember]
        public string country { get; set; }
        [DataMember]
        public string vndclsid { get; set; }
        [DataMember]
        public DateTime? docdate { get; set; }
        [DataMember]
        public string hold { get; set; }
        [DataMember]
        public string shipmthd { get; set; }
    }
  
    [DataContract]
    public class MOCommentDisplay
    {
        [DataMember]
        public int MfgOrderLogID { get; set; }
        [DataMember]
        public int MfgOrderID { get; set; }
        [DataMember]
        public int? AccountID { get; set; }
        [DataMember]
        public int? CommentGroupAccessID { get; set; }
        [DataMember]
        public string LogonID { get; set; }
        [DataMember]
        public DateTime? StatusDateTime { get; set; }
        [DataMember]
        public int? PeriodKey { get; set; }
        [DataMember]
        public string StatusComment { get; set; }
        [DataMember]
        public string Code { get; set; }
    }
  
    [DataContract]
    public class PODet
    {
        [DataMember]
        public string ponumber { get; set; }
        [DataMember]
        public string itemnmbr { get; set; }
        [DataMember]
        public decimal? qtyorder { get; set; }
        [DataMember]
        public string itemdesc { get; set; }
        [DataMember]
        public string postatus { get; set; }
        [DataMember]
        public string shipmthd { get; set; }
        [DataMember]
        public DateTime? released_date { get; set; }
        [DataMember]
        public DateTime? prmdate { get; set; }
        [DataMember]
        public DateTime? reqdate { get; set; }
    }
}
  
public class MyData
{
    public int Count { get; set; }
    public IList Data { get; set; }
}
  
[ServiceContract]
[ServiceKnownType("GetKnownTypes")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class GridMasterDetailsService
{
    public static IEnumerable<Type> GetKnownTypes(ICustomAttributeProvider provider)
    {
        List<Type> knownTypes = new List<System.Type>();
  
        knownTypes.Add(typeof(DataContracts.MO_POHdr));
        knownTypes.Add(typeof(DataContracts.PODet));
        knownTypes.Add(typeof(DataContracts.MOCommentDisplay));
        return knownTypes;
    }
  
    [OperationContract]
    public MyData GetMOPOHdrDataAndCount(int startRowIndex, int maximumRows, string sortExpression, string filterExpression)
    {
        maximumRows = 20;
        if (filterExpression != "")
        {
            filterExpression = filterExpression.Replace("\"", string.Empty);
        }
        GridBindingData data = RadGrid.GetBindingData("AppDataClassesDataContext", "MOAssocDocuments", startRowIndex, maximumRows, sortExpression, filterExpression);
        MyData result = new MyData();
        result.Data = data.Data.OfType<MOAssocDocument>().Select(c => new DataContracts.MO_POHdr()
        {
            MfgAssocDocID = c.MfgAssocDocID,
            MfgOrderID = c.MfgOrderID,
            ponumber = c.POHdr.ponumber,
            vendname = c.POHdr.vendname,
            vendorid = c.POHdr.vendorid,
            country = c.POHdr.country,
            vndclsid = c.POHdr.vndclsid,
            docdate = c.POHdr.docdate,
            hold = c.POHdr.hold,
            shipmthd = c.POHdr.shipmthd
        }).ToList();
        result.Count = data.Count;
        return result;
    }
  
    [OperationContract]
    public MyData GetPODetDataAndCount(int startRowIndex, int maximumRows, string sortExpression, string filterExpression)
    {
       // maximumRows = 50;
        GridBindingData data = RadGrid.GetBindingData("AppDataClassesDataContext", "PODets", startRowIndex, maximumRows, sortExpression, filterExpression);
        MyData result = new MyData();
        result.Data = data.Data.OfType<PODet>().Select(o => new DataContracts.PODet()
        {
            ponumber = o.ponumber,
            itemnmbr = o.itemnmbr,
            qtyorder = o.qtyorder,
            itemdesc = o.itemdesc,
            postatus = o.postatus,
            shipmthd = o.shipmthd,
            released_date = o.released_date,
            prmdate = o.prmdate,
            reqdate=o.reqdate
        }).ToList();
        result.Count = data.Count;
        return result;
    }
  
    [OperationContract]
    public MyData GetNotesDataAndCount(int startRowIndex, int maximumRows, string sortExpression, string filterExpression)
    {
        sortExpression = "StatusDateTime descending";
        var sSecGrp = filterExpression.Split('^');
        filterExpression = "CommentGroupAccessID EqualTo " + sSecGrp[1] + " And MfgOrderID = " + sSecGrp[2];
  
        GridBindingData data = RadGrid.GetBindingData("AppDataClassesDataContext", "MOCommentDisplays", startRowIndex, maximumRows, sortExpression, filterExpression);
        MyData result = new MyData();
        result.Data = data.Data.OfType<MOCommentDisplay>().Select(p => new DataContracts.MOCommentDisplay()
        {
            MfgOrderLogID = p.MfgOrderLogID,
            MfgOrderID = p.MfgOrderLogID,
            AccountID = p.AccountID,
            CommentGroupAccessID = p.CommentGroupAccessID,
            LogonID = p.Account.LogonID,
            StatusDateTime = p.StatusDateTime,
            PeriodKey = p.PeriodKey,
            StatusComment = p.StatusComment,
            Code = p.CLib.Code
        }).ToList();
        result.Count = data.Count;
        return result;
    }
}


Thanks,
-- Jim

Jim
Top achievements
Rank 1
 answered on 09 Aug 2011
5 answers
122 views
I currently have to listbox that both use the same template.  Instead of using a list of values like the demo code, I am pre-populating both boxes with some initial data.  When I transfer an item from one box to the other, the values are not updated.

When using the item list in the html, the item bind on the '_Transferred' method appeared to update these values using the same templates.

The problem is when I switched it to use the list from the database instead of the HTML list.

How can I get the data to show (bind) when transferring in this manner.

Thanks.
Frank Flood
Top achievements
Rank 1
 answered on 09 Aug 2011
14 answers
446 views
t
Andrew Bort
Top achievements
Rank 1
 answered on 09 Aug 2011
5 answers
168 views
Hello all,
           I am having a problem in radpanelbar particularly in IE9, The problem is whenever I made an Ajax Request using RadAjaxManager from client script. my RadPanelbar Items moves one step down automatically. Please find me the solution because I already spend LOT in this.

Here is my aspx page
................................................................................................................................................................................................................

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadPanelBarTester._Default" %>

<%@ 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>
    <style type="text/css">
        .Tools
        {
            width: 120px;
            height: 20px;
            border: solid 1px blue;
            border-top:none;
            padding: 2px;
            margin: 4px;
            color: Black;
            font: normal 11.5px "Segoe UI", Arial, sans-serif;
            text-align: center;
            cursor: move;
            display:block;
            overflow:hidden;
            background-image:url('RootItemBg.png');
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            onajaxrequest="RadAjaxManager1_AjaxRequest">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadPanelBar1"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadPanelBar ID="RadPanelBar1" ExpandMode="SingleExpandedItem" Skin="Outlook"
            runat="server">
        </telerik:RadPanelBar>
        <asp:HiddenField ID="myHiddenField" runat="server" />
        <br />
        <input id="Button1" type="button" onclick="callsvr()" value="Test" />
    </div>
    </form>
    <script type="text/javascript">
        function callsvr() {
            $find("RadAjaxManager1").ajaxRequest("test");
        }
    </script>

</body>
</html>


My server side code
.....................................................................................................................................................................................................
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using System.Web.UI.HtmlControls;

namespace RadPanelBarTester
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                InitialzeToolBox();
            }
        }

        private void InitialzeToolBox()
        {
            for (int i = 0; i < 5; i++)
            {
                RadPanelItem radItem = new RadPanelItem("TAB TEST" + i);
                var motherDiv = new HtmlGenericControl("div");
                motherDiv.Attributes.Add("align", "center");
                for (int j = 0; j < 5; j++)
                {
                    HtmlGenericControl childDiv = new HtmlGenericControl("div");
                    childDiv.Attributes.Add("class", "Tools");
                    childDiv.Style.Add(HtmlTextWriterStyle.ZIndex, "2");
                    childDiv.InnerText = "TAB TEST" + i + "Tool" + j;
                    childDiv.ID = "TAB TEST" + i + "Tool" + j;
                    motherDiv.Controls.Add(childDiv);
                }
                RadPanelItem itemTemplate = new RadPanelItem();
                TemplateItem template = new TemplateItem(motherDiv);
                itemTemplate.ItemTemplate = template;
                radItem.Items.Add(itemTemplate);
                RadPanelBar1.Items.Add(radItem);
            }
            RadPanelBar1.Items.FindItemByText("TAB TEST0").Expanded = true;
        }

        protected override void OnLoad(EventArgs e)
        {
            for (int i = 0; i < RadPanelBar1.Items.Count; i++)
            {
                var motherDiv = new HtmlGenericControl("div");
                motherDiv.Attributes.Add("align", "center");
                for (int j = 0; j < 5; j++)
                {
                    HtmlGenericControl childDiv = new HtmlGenericControl("div");
                    childDiv.Attributes.Add("class", "Tools");
                    childDiv.InnerText = "TAB TEST" + i + "Tool" + j;
                    childDiv.ID = "TAB TEST" + i + "Tool" + j;
                    motherDiv.Controls.Add(childDiv);
                }
                RadPanelItem itemTemplate = new RadPanelItem();
                TemplateItem template = new TemplateItem(motherDiv);
                itemTemplate.ItemTemplate = template;
                RadPanelBar1.Items[i].Items.Add(itemTemplate);
            }
            base.OnLoad(e);
        }

        protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
        }
    }
}


Template item class
............................................................................................................................................................................................

public class TemplateItem:ITemplate
    {
        Control control;
        #region ITemplate Members

        public void InstantiateIn(Control container)
        {
            container.Controls.Add(control);
        }

        #endregion

        public TemplateItem(Control ctrl)
        {
            control = ctrl;
        }
    }
Kate
Telerik team
 answered on 09 Aug 2011
3 answers
162 views

hi,

My name is Francisco, I update 2010 Q2 to 2011 Q2 ASP NET and my grid don't work, before update working fine.

When i click edit button of a row, show me a error in the status bar of Internet Explorer version 8.

The error message is:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Can you help me please.

Regards....
Pavlina
Telerik team
 answered on 09 Aug 2011
3 answers
696 views
In the markup below you'll notice I've set everything to 0pt padding, yet still I get padding and cannot get a border line to go all the way across (see screenshot.) What do i need to do to remove all padding in RG custom header?

<telerik:GridTemplateColumn UniqueName="colCustomerName">
                    <HeaderStyle BorderWidth="0pt" BorderStyle="Solid" Width="30%" ></HeaderStyle>
                    <HeaderTemplate>
                        <table align="center" cellpadding="0pt" >
                            <tr id="blank" style="padding:0pt 0pt 0pt 0pt">
                                <td style="padding:0pt 0pt 0pt 0pt">
                                      
                                </td>
                            </tr>
                            <tr align="center" style="padding:0pt 0pt 0pt 0pt" >
                                <td style="width:365pt; border-top:solid thin black;background-color:#d3dfd3; padding:0pt 0pt 0pt 0pt">
                                    Customer
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
Pavlina
Telerik team
 answered on 09 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?