RadListView does not re-create items after postback

2 posts, 0 answers
  1. Martino
    Martino avatar
    4 posts
    Member since:
    Sep 2013

    Posted 07 Jan 2015 Link to this post


    I have a custom control which works as a pager: it's a RadListView in which each element is sort of a button which postbacks

    This ascx is used in 2 projects; in the first one everything works like a charm: when a button is clicked, the event is raised and handled by the ascx
    In the second one, however, something went wrong: clicking on the button does the postback, but does not fire because, I've discovered, the target isn't there no more

    In practice, in project 1 the RadListView re-create its items (as stated here), while in the second one items are not created after the button's postback
    Since the button isn't there, __EVENTTARGET is null and the event fails

    Both projects are quite knotty, since have a main page, the pager ascx and the button (which is an hyperlink child class object), and I can't post'em publicly.. but a smaller project would of course work, such the project 1 does, so I can just wonder what went wrong without reproducing it

    I think there's little I could broke since the ItemCreated should occur before the page_load, but clearly something is different and I don't know what could it be.. any ideas?

  2. Konstantin Dikov
    Konstantin Dikov avatar
    2409 posts

    Posted 12 Jan 2015 Link to this post

    Hello Martino,

    From the provided information only it would be impossible for us to determine what exactly is causing the issue on your end, especially when you have this working correctly in one project.

    I could suggest that you open a regular support ticket and provide a very simplified version of your scenario, which replicates the issue, so we can test it locally and isolate the root of the problem.

    Best Regards,
    Konstantin Dikov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top