Adding the ClientEvents OnCommand property to the RadGrid appears to break the Grid's paging functionality.
I have:
<script type="text/javascript">
function TestFunction() {
}
</script>
<telerik:RadGrid ID="RadGrid1" runat="server"
OnNeedDataSource="RadGrid1_NeedDataSource"
AllowSorting="true"
AutoGenerateColumns="false"
AllowPaging="true"
PageSize="100"
EnableEmbeddedSkins="false"
Skin="Web20">
<PagerStyle Mode="NextPrevAndNumeric" PrevPageImageUrl="PagingPrev.gif" NextPageImageUrl="PagingNext.gif" FirstPageImageUrl="PagingFirst.gif" LastPageImageUrl="PagingLast.gif"></PagerStyle>
<ClientSettings>
<ClientEvents OnCommand="TestFunction" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="300px" />
</ClientSettings> ...
When <ClientEvents OnCommand="TestFunction" /> is declared, the paging controls in the grid look and act weird: For instance, in paging controls "Displaying page X of X, items X to X of X" all of the Xs become grayed out. Also, the "Change page: < 1, 2, 3 >" controls don't change appearance to indicate the page you are on. However, the paging functionality still works.
When I remove the <ClientEvents OnCommand="TestFunction" /> declaration, the grid's paging goes back to normal.
Is this a bug?
I have:
<script type="text/javascript">
function TestFunction() {
}
</script>
<telerik:RadGrid ID="RadGrid1" runat="server"
OnNeedDataSource="RadGrid1_NeedDataSource"
AllowSorting="true"
AutoGenerateColumns="false"
AllowPaging="true"
PageSize="100"
EnableEmbeddedSkins="false"
Skin="Web20">
<PagerStyle Mode="NextPrevAndNumeric" PrevPageImageUrl="PagingPrev.gif" NextPageImageUrl="PagingNext.gif" FirstPageImageUrl="PagingFirst.gif" LastPageImageUrl="PagingLast.gif"></PagerStyle>
<ClientSettings>
<ClientEvents OnCommand="TestFunction" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="300px" />
</ClientSettings> ...
When <ClientEvents OnCommand="TestFunction" /> is declared, the paging controls in the grid look and act weird: For instance, in paging controls "Displaying page X of X, items X to X of X" all of the Xs become grayed out. Also, the "Change page: < 1, 2, 3 >" controls don't change appearance to indicate the page you are on. However, the paging functionality still works.
When I remove the <ClientEvents OnCommand="TestFunction" /> declaration, the grid's paging goes back to normal.
Is this a bug?