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

RadAjaxPanel and UserControl

3 Answers 235 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
L
Top achievements
Rank 1
L asked on 24 Apr 2008, 10:04 AM
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

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 25 Apr 2008, 02:06 PM
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
0
L
Top achievements
Rank 1
answered on 25 Apr 2008, 04:00 PM
hi

It is actually a Postback. But i want an ajax effect. It seems that it does not apply to userControl. Thanks
0
Peter
Telerik team
answered on 25 Apr 2008, 04:16 PM
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
Tags
PanelBar
Asked by
L
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
L
Top achievements
Rank 1
Peter
Telerik team
Share this question
or