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

problem with radgrids and xmlhttppanel

3 Answers 85 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
Łukasz Kuryło
Top achievements
Rank 1
Łukasz Kuryło asked on 16 Apr 2010, 09:43 AM
Hi.
I have a user control with two radgrids populated from js code.
Now I want to paste content of this control in the aspx page using xmlhttppanel by webservice (this aspx page is rendered in the update panel in the main page if it's important).
I can do that, I see the radgrids on the page but both aren't populated with data. When I click to sort on one column, I have an error $find(xyz) is null, where xyz it is a id of the grid. In the ascx file I have ScriptManager.RegisterClientScriptBlock with the grids ClientIDs.
I checked, I have a proper ClientID, e.g. placeholder_8ebfe42f_8b80_49a0_92e9_b41ccd6cf21c_ctl03_MyListRadGrids. When I click the sort buttton the  placeholder_8ebfe42f_8b80_49a0_92e9_b41ccd6cf21c_ctl03_MyListRadGrids_ctl00 is null. Please tell me why?

3 Answers, 1 is accepted

Sort by
0
Łukasz Kuryło
Top achievements
Rank 1
answered on 16 Apr 2010, 09:52 AM
Ok I've got it. I spent last two hours looking for that, after I asked here I found that EnableClientScriptEvaluation="true".
With it everything works ok.
0
Deivid McGuire
Top achievements
Rank 1
answered on 20 Apr 2010, 09:50 AM
Hello,

Last week, I began a new page with 2 RadGrids and a XmlHttpPanel. One of grid is in xmlhttppanel...
All ran perfectly. Since yesterday, the second grid don't execute and don't load any data....
I've change all and don't know what to do.

I need to update data on second grid when a row of first grid is selected.
If RegisterWithScriptManager second grid property is true, the explorer throw an error (control isn't registered...)
but if the property is false, automatically in the design view, in the second grid appear:
System.NullReferenceException: Object reference not set to an instance of an object...) and data don't load.
In iexplorer I can view in second grid "No records to display".

I've tryed with EnableClientScriptEvaluation="true" in XmlHttpPanel too...

Please, I need help.
Thank you and sorry my english.
0
Deivid McGuire
Top achievements
Rank 1
answered on 21 Apr 2010, 09:05 AM
That's right!

I did't have <Columns></Columns> in the second grid.
When I add this attributes with <GridBoundColumn>.... all is ok.
The second grid in design mode appear like "System.NullReferenceException: Object reference not set to an instance of an object..." yet, but work perfectly.

Thanks.
Tags
XmlHttpPanel
Asked by
Łukasz Kuryło
Top achievements
Rank 1
Answers by
Łukasz Kuryło
Top achievements
Rank 1
Deivid McGuire
Top achievements
Rank 1
Share this question
or