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

Ajax call only one time. Why?

3 Answers 57 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
alsi
Top achievements
Rank 1
alsi asked on 21 Oct 2008, 10:25 AM
Dear All!
I have the following code snippet:
<telerik:RadAjaxPanel runat="server" ID="ajaxpnlCosts">
    <table>
        <tr>
            <td>
                <asp:RadioButtonList runat="server" AutoPostBack="true" ID="radiolstCosts">
                    <asp:ListItem Enabled="true" Selected="False" Value="0" Text="FREE" />
                    <asp:ListItem Enabled="true" Selected="True" Value="1" Text="NOMINAL" />
                    <asp:ListItem Enabled="true" Selected="False" Value="2" Text="HIGH" />
                </asp:RadioButtonList>
            </td>
        </tr>
    </table>
</telerik:RadAjaxPanel>

I use this code in a Content(Placeholder) control (Master page based layout).
The following problem happen: When I choose a new radiobutton at first Ajax call works fine.
At the second new radiobutton choose it's do a complete normal postback instead of Ajax postback.
With RadAjaxManager during the "postback" the whole table disappear!?!

Can U tell me why?

thx,
Gábor

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 21 Oct 2008, 10:56 AM
Hi alsi,

I tested your scenario but was not able to replicate the described issue. Please find attached a sample project which works as expected on my side. Please test it locally and let me know what the difference in your case is.

Regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
alsi
Top achievements
Rank 1
answered on 21 Oct 2008, 11:47 AM
Hello Maria!

- Thanks for the sample page. Your sample works fine for me.
based on it's ajax "settings" I've tried to put the ScriptManager not onto the Master page, but the side effect the same
- Sometimes the EnableEventValidation (Page property) throw an error..
- I describe a bit my code: I am using a Master page with header and main ContentPlaceHolders. I want to use the ajax controls (ajaxpanel or ajaxmanager) in the Main Content. In the main content I use a table with 1 tr and 2 td. Left side is the menu (LinkButtons) and in the right TD the panels. I have 10 menus and 10 panels. At the same time only 1 panel show. Panels contains controls like checkboxlist, radiobuttonlist, dropdowns, etc. Some of them filled at code side some of them design time (like the code above). What I originally sent it's one of the whole panel controls in design time.
- I've tried an AjaxPanel outside of the big table (between <Content></Content>) but in this case absolute no Ajax Postback..

thx
0
Accepted
Maria Ilieva
Telerik team
answered on 21 Oct 2008, 02:52 PM
Hello alsi,

If it is convenient for you could you please send us sample runnable project which replicates the issue, in a regular support ticket? We will test it locally and advise you further on the problems you are facing.
Thank you for the cooperation.


Greetings,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
alsi
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
alsi
Top achievements
Rank 1
Share this question
or