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

Control goed into edit mode after second click

1 Answer 39 Views
ListView
This is a migrated thread and some comments may be shown as answers.
marc
Top achievements
Rank 1
marc asked on 27 Oct 2010, 10:21 AM
Hi,
In my ListView control I have created a couple of buttons to edit/insert items. To go into edit mode or insert mode I have to click the button twice. The events are fired correctly however only with the second click resp the EditItemTemplate or the InsertItemTemplate is loaded.

What could be reason for this behavior?

Found a similar post: click control twice. This is similar to my issue. I do not use a datasource on the page however I set the datasource at page load.

Thanks,
Marc.

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 28 Oct 2010, 12:18 PM
Hi,

Please note that as the ListView control uses templates the structure needs to be created in the PageInit event handler. Please try setting it in PageInit instead of PageLoad and verifying if this makes any difference.


Sincerely yours,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ListView
Asked by
marc
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or