This is a migrated thread and some comments may be shown as answers.

Grid / Editing with External Form

0 Answers 50 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Bohemi
Top achievements
Rank 1
Bohemi asked on 02 Jan 2013, 12:40 AM
I've seen a similar post for this back in 2009, but it was not solved.

I'm receiving an error on the Grid / Editing with External Form demo when I created locally.

Object reference not set to an instance of an object


Line 88:         protected void Page_Load(object sender, System.EventArgs e)
Line 89:         {
Line 90:             RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadGrid1, RadGrid1, PlaceHolder.FindControl("RadAjaxLoadingPanel1") as RadAjaxLoadingPanel);
Line 91:             //store the clientID of the grid to reference it later on the client
Line 92:             RadAjaxManager.GetCurrent(Page).ResponseScripts.Add(string.Format("window['gridId'] = '{0}';", RadGrid1.ClientID));

When I debug, I notice that placeHolder is still returning a NULL value:

 private Control placeHolder;
        private Control PlaceHolder
        {
            get
            {
                if (placeHolder == null)
                {
                    placeHolder = this.Page.Master.FindControl("ContentPlaceHolder1");
                }
                return placeHolder;
            }

Any ideas?

Thanks, Trisha

No answers yet. Maybe you can help?

Tags
Ajax
Asked by
Bohemi
Top achievements
Rank 1
Share this question
or