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

[Solved] Enquiring Minds need to know

2 Answers 121 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 17 Apr 2008, 02:36 PM
Why does the RadAjaxPanel support both an attribute called "ClientEvents-OnRequestStart" and a child element <ClientEvents> that, in turn, has an attribute "OnRequestStart"?

I ask in the spirit of enquiry.

Is there one we should favour over the other?

--
Stuart

2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 17 Apr 2008, 03:12 PM
Hello Stuart

This is default behavior of the serializer. You can observe the same with any standard control such as GridView:

 <asp:GridView ID="GridView1" runat="server" AlternatingRowStyle-BackColor="Red">
 <AlternatingRowStyle BackColor="Red" />
 </asp:GridView>

Both do exactly the same thing, so there is no cons and pros. I guess the separate element presents a cleaner and tidier markup.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dan
Top achievements
Rank 1
answered on 17 Apr 2008, 03:15 PM
So now I know.

Cheers Steve.

--
Stuart
Tags
Ajax
Asked by
Dan
Top achievements
Rank 1
Answers by
Steve
Telerik team
Dan
Top achievements
Rank 1
Share this question
or