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

Compilation error in code given in sample application

1 Answer 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
giridhar
Top achievements
Rank 1
giridhar asked on 13 Mar 2009, 08:05 AM
Hi,
  I was refering to some example of hierarchical grid at "http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx".

One of the code line is as shown below bolded.

    protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridNestedViewItem)
            {
                e.Item.FindControl("InnerContainer").Visible = ((GridNestedViewItem)e.Item).ParentItem.Expanded;
            }
        }

When have this particular piece of code in my application it's throwing compilation error.

I am using "2008.2 1001" version of telerik dlls.

Do let me know the work around

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 16 Mar 2009, 03:27 PM
Hello giridhar,

You will need to migrate to the latest official release 2009.1.311 of RadControls for ASP.NET AJAX to avoid the error in question. Referencing the nested view template's parent item from within the ItemCreated event of RadGrid is not supported in previous versions of the product.

Upgrade instructions can be found here. You may also be interested in reviewing the general Changes and backwards compatibility help topic.

Kind regards,
Sebastian
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
giridhar
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or