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

Connect webparts with Ajax

3 Answers 49 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 04 Nov 2010, 09:48 AM
Hi Guys,

simple question i though but google did not give me the answer :)

Is it possible to use the Telerik RadControls with connected webparts?
If it is possible it would be nice to show me some sample code.

best regards

Jan

3 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 08 Nov 2010, 04:26 PM
Hi Jan,

Attached is a small sample. Hope it helps.

Regards,
Tsvetoslav
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
0
Jan
Top achievements
Rank 1
answered on 08 Nov 2010, 05:08 PM
Thanks for your answser,

unfortunally i cannot open the project. I use VS 08, i think you used 2010.
But anyway a looked to the .cs files an a recognized, that you did not use an RadAjaxPanel oder an AjaxManager...

Jan
0
Tsvetoslav
Telerik team
answered on 11 Nov 2010, 05:02 PM
Hello Jan,

If you need to use RadAjaxPanel in your web part, just add it to the Controls collection of the web part and then add the grid to the Controls colleciton of the AjaxPanel.

If you need to use RadAjaxManager, then you should add it to the page items collection as follows:

RadAjaxManager ajaxmgr;
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     ajaxmgr = new RadAjaxManager();
     Page.Items.Add(typeof(RadAjaxManager), ajaxmgr);            
 }

and then in the CreateChildControls method of the Web Part add the appropriate ajax settings.

Regards,
Tsvetoslav
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
Ajax
Asked by
Jan
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Jan
Top achievements
Rank 1
Share this question
or