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

Exclude control from ajax

1 Answer 12 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
vairam
Top achievements
Rank 1
vairam asked on 22 Jun 2009, 09:49 AM
Hi

I need to exclude the button control from Ajax


If i add the control design time its working fine, but if i add the controls dynamatically its not working(button not exclude from the ajax)

This is my code.

 

RadAjaxPanel panel = new RadAjaxPanel();

 

 

this.Form.Controls.Add(panel);

 

 

Button btn = new Button();

 

btn.Text =

"Click";

 

btn.Click +=

new EventHandler(btn_Click);

 

 

//btn.Attributes.Add("onclick", String.Format("realPostBack(this, ''); return false;"));

 

RadScriptManager1.RegisterPostBackControl(btn);

panel.Controls.Add(btn);


What i needs to do?

Regards
Vairam

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 22 Jun 2009, 01:37 PM
Hello Vairam,

For your convenience I created a sample website which demonstrates a possible approach. Please test it locally and let me know if you have any questions.

Kind regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
vairam
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or