RadAjaxPanel and UserControl

4 posts, 0 answers
  1. L
    L avatar
    298 posts
    Member since:
    Apr 2008

    Posted 24 Apr 2008 Link to this post

    hi

    I have a master page that has a content placehoder. In the content placeholder, I place a RADAjaxPanel width 100%.

    I also created a userControl that has a RADMenu items from A to Z.

    I also created a Default.aspx that uses the master page. In the Default.aspx I place the userComtrol and also a RADGrid. 

    Now the thing is that when i  click for example C on the menu, it refreshes the page and show me all products name that starts with C. But when I do a sort in the grid, it ajax seems to apply. How do I make sure that when I click on any item from the menu, it does not refreshes? Thanks
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 25 Apr 2008 Link to this post

    Hello Lui Nai Wah,

    If I understood you correctly you are not sure if an ajax request is made when you click on a menu item or a full postback.
    You can check that by observing the IsAjaxRequest property of the RadAjaxPanel:

    RadAjaxPanel1.IsAjaxRequest

    If it is true - the request is an ajax request, otherwise a postback.

    I hope this helps.

    Best wishes,
    Veskoni
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. L
    L avatar
    298 posts
    Member since:
    Apr 2008

    Posted 25 Apr 2008 Link to this post

    hi

    It is actually a Postback. But i want an ajax effect. It seems that it does not apply to userControl. Thanks
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 25 Apr 2008 Link to this post

    Hello Lui,

    Please, see this help topic: RadAjax and WebUserControls.


    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top