Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Ultragrid doesn't fire ItemCommand
posted

Hi

I have a ultragrid with some column created dinamically.

In particular, I have a column with ImageButton.

If I create ImageButton from aspx then the ItemCommand fires correctly, while when I create a ImageButton from code  cs

the event  ItemCommand doesn't fires.

Anyone can you help me?

Thanks

Luca

Parents
No Data
Reply
  • 28464
    posted

    Hello Luca,

    Most probably this is a page lifecycle issue -- the columns you create dynamically needs to be created prior trigerring the event -- my guess here is that you may need to move the column creating code as earlier in the lifecycle as possible -- OnInit is best.

    For more information on ASP.NET page lifecylce please follow this link

    http://msdn.microsoft.com/en-us/library/ms178472.aspx

Children