Connect webparts with Ajax

4 posts, 0 answers
  1. Jan
    Jan avatar
    9 posts
    Member since:
    Nov 2010

    Posted 04 Nov 2010 Link to this post

    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
  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 08 Nov 2010 Link to this post

    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
  3. Jan
    Jan avatar
    9 posts
    Member since:
    Nov 2010

    Posted 08 Nov 2010 Link to this post

    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
  4. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 11 Nov 2010 Link to this post

    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
Back to Top