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

The "EnablePageHeadUpdate" property of RadAjaxManager not work

1 Answer 271 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Tracy
Top achievements
Rank 1
Tracy asked on 01 Jul 2015, 07:32 AM

Here is my test page:

 

<head runat="server">
<title>Now</title>
<script runat=server type="text/C#">
public void Submit_Click(object sender,System.EventArgs eventArgs)
{
    this.Title = System.DateTime.Now.ToString();
}
</script>
</head>
<body>
<form runat="server">
<Telerik:RadScriptManager runat=server />
<Telerik:RadAjaxManager runat=server EnablePageHeadUpdate=false>
    <AjaxSettings>
        <Telerik:AjaxSetting AjaxControlID=Submit>
            <UpdatedControls>
                <Telerik:AjaxUpdatedControl ControlID=Submit />
            </UpdatedControls>
        </Telerik:AjaxSetting>
    </AjaxSettings>
</Telerik:RadAjaxManager>
<asp:Button runat=server ID=Submit OnClick=Submit_Click />
</form>
</body>
</html>

 

Even if the "EnablePageHeadUpdate" is set to false, the title of the page still change after clicking the button.

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 06 Jul 2015, 08:36 AM
Hi ,

Note that in this scenario it is expected to have the client script executed on each button click event, as it is attached to the client click event of the button which executes on each click, no matter if the Ajax is enabled or not. The mentioned property will prevent updating the head on each request when independent Ajax request is executed.

Regards,
Maria Ilieva
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Ajax
Asked by
Tracy
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or