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

Events doesn't trigger in GridTemplateColumn filled with customized control

4 Answers 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Leonardo Amorim de Barros
Top achievements
Rank 1
Leonardo Amorim de Barros asked on 27 Aug 2008, 08:27 PM
Problem when trying to call a control method (code behind) inside GridTemplateColumn.

I created a class that implements ITemplate. Here I have a control that is instantiated inside the InstantiateIn() method. In that control I register a listener for the TextChanged event e set the AutoPostBack property of the control to TRUE.

In a radgrid, I created a GridTemplateColumn and set the ItemTemplate and the EditItemTemplate properties of the grid.

The grid shows properly, but when I change the text of the GridTemplateColumn control, a ajax call is done (the OnInit method of the page at server-side is called) but the TextChanged event at server-side isn't called.




4 Answers, 1 is accepted

Sort by
0
Leonardo Amorim de Barros
Top achievements
Rank 1
answered on 28 Aug 2008, 12:54 PM
Any help please?
0
Sebastian
Telerik team
answered on 28 Aug 2008, 01:04 PM
Hello Carlos,

Your implementation seems correct and unfortunately I am not able to determine the exact reason for the erratic behavior you are facing.

Can you please verify that you followed the conventions for dynamic template column creation outlined in the bottom section of this documentation topic? This will ensure the viewstate and the lifecycle of the controls residing in the programmatically created column will remain intact.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Leonardo Amorim de Barros
Top achievements
Rank 1
answered on 28 Aug 2008, 01:19 PM
I will see the link that you told me. But, if I don't solve the problem, I would like to send you a sample project. May I? How can I send to you?

Thank you.
0
Sebastian
Telerik team
answered on 28 Aug 2008, 01:25 PM
Hi Carlos,

It the problem persists, you can start a formal support ticket from
your Client.net account
and attach a test project to it. We will examine them in detail and will advice you further.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Leonardo Amorim de Barros
Top achievements
Rank 1
Answers by
Leonardo Amorim de Barros
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or