problem with radgrids and xmlhttppanel

4 posts, 0 answers
  1. Łukasz Kuryło
    Łukasz Kuryło avatar
    24 posts
    Member since:
    Jan 2010

    Posted 16 Apr 2010 Link to this post

    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?
  2. Łukasz Kuryło
    Łukasz Kuryło avatar
    24 posts
    Member since:
    Jan 2010

    Posted 16 Apr 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Deivid McGuire
    Deivid McGuire avatar
    2 posts
    Member since:
    Apr 2010

    Posted 20 Apr 2010 Link to this post

    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.
  5. Deivid McGuire
    Deivid McGuire avatar
    2 posts
    Member since:
    Apr 2010

    Posted 21 Apr 2010 Link to this post

    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.
Back to Top