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

to Implement Ajax in the Custom control

3 Answers 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ragupathi
Top achievements
Rank 1
Ragupathi asked on 16 Sep 2008, 05:24 AM
Hi ,

I have created a custom control rendered with HTML. I want to implement ajax to my custom control.iwant to make them ajax enabled. please find the render code  below.

 



writer.RenderBeginTag(

HtmlTextWriterTag.Table);
writer.RenderBeginTag(HtmlTextWriterTag.Tr);
writer.RenderBeginTag(
HtmlTextWriterTag.Td);
 lblGroup.RenderControl(writer);
writer.RenderEndTag();
// td
writer.RenderBeginTag(HtmlTextWriterTag.Td);
ddGroup.RenderControl(writer);
writer.RenderEndTag();
// td
writer.RenderEndTag(); // tr
//--------Second Row--------
writer.RenderBeginTag(HtmlTextWriterTag.Tr);
writer.RenderBeginTag(
HtmlTextWriterTag.Td);
lblUser.RenderControl(writer);
writer.RenderEndTag();
// td
writer.RenderBeginTag(HtmlTextWriterTag.Td);
ddUser.RenderControl(writer);
writer.RenderEndTag();
// td
writer.RenderEndTag(); // tr
writer.RenderEndTag(); // table

please  help me in this venture.....

Thnks

3 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 17 Sep 2008, 02:24 PM
Hi,

I was not able to understand completely the issue you are asking about. You have posted it in a forum thread about RadDock for ASP.NET AJAX. Could you please provide more details what is the connection of the custom control you are creating with the Telerik's RadDock control? Please, give us more information about your issue so that we can get a better idea of what you are trying to achieve.

Best regards,
Sophy
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ragupathi
Top achievements
Rank 1
answered on 19 Sep 2008, 06:06 AM
Hi,
I  have created a custom control with two labels and two Radcomboboxes. The custom control  gets postback. I want to avoid the postback  for the whole control.
so i tried using the Rad ajax panel. I am not sure how to render the Rad Ajax Panel to the custom control. please help me in this process.....

Dock controol concept will not help me......

Thx....
0
Sebastian
Telerik team
answered on 19 Sep 2008, 07:17 AM
Hello Ragupathi,

Basically, if you create RadAjaxPanel instance, add the comboboxes to it and then add the ajax panel to the Controls collection of your custom control, you should be done. Thus the dropdowns should trigger ajax requests instead of plain postback when you change the selected item.

Best,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Ragupathi
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Ragupathi
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or