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

RadListView does not re-create items after postback

1 Answer 73 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Martino
Top achievements
Rank 1
Martino asked on 07 Jan 2015, 03:54 PM
Hi,

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?

Thanks

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 12 Jan 2015, 09:26 AM
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
Telerik
 

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.

 
Tags
ListView
Asked by
Martino
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or