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

Error with Grid and Sample From Knowledge Base

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lkeel
Top achievements
Rank 1
lkeel asked on 08 Oct 2008, 03:04 PM
Hello all,

I have been working on this for a day or so now and can't seem to resolve the problem.  So I am coming to the experts. :)  I have just recently purchased the Rad controls and I am loving them.  But as I was trying to use the RadGrid from the ASP.NET, I have run into a snag.  I wanted to use the Client-Side select to update another grid from the server side.  So I did what I thought was right and used some javascript and did a __doPostBack(), but kept getting an error.  So I searched and searched and finally found a knowledge base article that explains how to do it (see PostBackFromClientEventsCS.zip at bottom of http://www.telerik.com/support/kb/article/b454K-kGj-b454T-cfD.aspx).  I had to massage this a little to work with the 3.5 frame work and the new namespaces, but the everything else should be the same.  Anyway, when I run this, I get the same error as I do on my website:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Configuration:
VS2008
telerik.web.ui.dll version 2008.2.826.35
.NET 3.5

I will gladly fwd an updated version of the sample website if someone could please look into this.

Thanks in advance,
Lee

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 09 Oct 2008, 07:21 AM
Hello Lee,

Please try to move javascript code block into the <body> tag instead of <head>.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
lkeel
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or