ASP:Repeater - Databind in DirectEvent Not Working - but works elsewhere?

  1. #1

    ASP:Repeater - Databind in DirectEvent Not Working - but works elsewhere?

    I have an asp:repeater and a gridpanel within - works great - if I bind the repeater say on page load - but the second I try from a directevent - nothing loads - but when I move the below back to page load our outside of a directevent - works as expected?

                rpt.DataSource = GetData();
    
                rpt.DataBind();
  2. #2
    If I place panel.UpdateContent in the end of the directevent - it wants to update - but I get multiple control IDs exist error - even with all controls in my repeater having IDMode="Ignore"

    this is my error:

    Server Error in '/edi/EDI_835_WebApp' Application.
    
    A Control with an ID of "rpt_gridDetails_0" has already been initialized. 
    Please ensure that all Controls have a unique id.
    
    The following Control 
    has the same ID as at least one other Control on the Page. All Controls must 
    have a unique ID.
    
    *************************
    Control 
    Details
    *************************
    
    ID: gridDetails.
    ClientID: 
    rpt_gridDetails_0
    Type: GridPanel
    
    *************************
    Parent 
    Control Details
    *************************
    
    ID: 
    ClientID: 
    rpt
    Type: RepeaterItem
    Description:
    An unhandled exception occurred during the execution of the current web
    request. Please review the stack trace for more information about the error and
    where it originated in the code.

    Exception Details:
    System.ArgumentException: A Control with an ID of "rpt_gridDetails_0" has
    already been initialized. Please ensure that all Controls have a unique
    id.

    The following Control has the same ID as at least one other Control
    on the Page. All Controls must have a unique
    ID.

    *************************
    Control 
    Details
    *************************
    
    ID: gridDetails.
    ClientID: 
    rpt_gridDetails_0
    Type: GridPanel
    
    *************************
    Parent 
    Control Details
    *************************
    
    ID: 
    ClientID: 
    rpt
    Type: RepeaterItem
    Source Error:

    Line 403:                //Ext.Net.Panel grid =  (Ext.Net.Panel)e.Item.FindControl("Panel8");Line 404:                //  grid.DataBind();Line 405:                 this.Panel8.UpdateContent();Line 406:            }Line 407:
    Last edited by geoffrey.mcgill; Feb 07, 2015 at 12:33 AM.

Similar Threads

  1. Replies: 24
    Last Post: Aug 06, 2012, 11:26 AM
  2. GridPanel Databind Not Working
    By tozza_d in forum 1.x Help
    Replies: 1
    Last Post: Aug 01, 2012, 10:58 AM
  3. [CLOSED] simple gridpanel databind not working in v2.1
    By CarpFisher in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 20, 2012, 3:53 PM
  4. [CLOSED] GridPanel paging after databind during DirectEvent
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jul 15, 2010, 10:04 AM
  5. store databind from server not working
    By Devworks in forum 1.x Help
    Replies: 11
    Last Post: Feb 06, 2009, 11:14 AM

Posting Permissions