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

Radgrid refresh

4 Answers 204 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jelte
Top achievements
Rank 1
Jelte asked on 19 Mar 2009, 03:59 PM
Hello,

I'm trying to refresh a radgrid which is placed in a RadPageVieuw from javascript.
I use this code.
$find("<%= RadGrid1.ClientID %>").get_masterTableView().rebind();

When i try this i get an error:

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





How do i refresh the gridview from JavaScript then?

Thanks
Jelte

4 Answers, 1 is accepted

Sort by
0
Jelte
Top achievements
Rank 1
answered on 19 Mar 2009, 04:16 PM
Ok, so it seems i cannot use place the code within the RadPageView.
If i place it outside the pageview it gives me another error:

Here is a part of the error:
Common causes for this error are when the response is modified by calls to Response.Write(), repsonse filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'Radgrid1"));
});
|'.

Anyone a clue?

Jelte

0
Jelte
Top achievements
Rank 1
answered on 20 Mar 2009, 08:12 AM
Nobody has an idea?

Jelte
0
Accepted
Iana Tsolova
Telerik team
answered on 20 Mar 2009, 11:08 AM
Hello Jelte,

Please try wrapping your client code into a RadCodeBlock/RadScriptBlock as described here.

Regards,
Iana
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.
0
Accepted
Muralidharan Ramakrishnan
Top achievements
Rank 1
answered on 23 Mar 2009, 03:14 AM
h jelte,

try putting your javascript codes in the body part of the page rather than in the head..
should help...
Tags
Grid
Asked by
Jelte
Top achievements
Rank 1
Answers by
Jelte
Top achievements
Rank 1
Iana Tsolova
Telerik team
Muralidharan Ramakrishnan
Top achievements
Rank 1
Share this question
or