|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
GridView EnableSortingAndPagingCallbacks2.0 GridView Control. Whenever I set EnableSortingAndPagingCallbacks to true, I cannot get sorting to work. Paging works, but not sorting. >From viewing the trace log, I can see that the page fires each time you click on a sorting link or paging link.The GridView sorting and paging events do not seem to fire when EnableSortingAndPagingCallbacks is set to true. Somehow the GridView is smart enough to switch the paging during the callback, but not switch the sorting. In the trace, I can even see the __CALLBACKID and __CALLBACKPARAM form variables. Unfortunately, I couldn't decipher how to read the __CALLBACKPARAM variable. What am I missing, here? <asp:GridView ID="grdCustomers" runat="server" AllowSorting="True" AutoGenerateColumns="False" AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" EnableSortingAndPagingCallbacks="True" EnableViewState="True" AllowPaging="true"> <PagerSettings NextPageText="next" PreviousPageText="back" /> <Columns> <asp:BoundField DataField="CustomerName" HeaderText="Customer Name" SortExpression="CustomerName" /> <asp:BoundField DataField="AccountNum" HeaderText="Axapta ID" SortExpression="AccountNum" /> </Columns> </asp:GridView> Hi, Same issue. Anyone any solution or input.
Thanks. Show quoteHide quote "swesor***@gmail.com" wrote: > I'm trying to figure out the Sorting and PagingCallbacks in the asp.Net > 2.0 GridView Control. Whenever I set EnableSortingAndPagingCallbacks > to true, I cannot get sorting to work. Paging works, but not sorting. > >From viewing the trace log, I can see that the page fires each time you > click on a sorting link or paging link. > > The GridView sorting and paging events do not seem to fire when > EnableSortingAndPagingCallbacks is set to true. Somehow the GridView > is smart enough to switch the paging during the callback, but not > switch the sorting. In the trace, I can even see the __CALLBACKID and > __CALLBACKPARAM form variables. Unfortunately, I couldn't decipher how > to read the __CALLBACKPARAM variable. What am I missing, here? > > <asp:GridView ID="grdCustomers" runat="server" AllowSorting="True" > AutoGenerateColumns="False" AutoGenerateDeleteButton="True" > > AutoGenerateEditButton="True" > EnableSortingAndPagingCallbacks="True" > EnableViewState="True" AllowPaging="true"> > <PagerSettings NextPageText="next" PreviousPageText="back" /> > <Columns> > <asp:BoundField DataField="CustomerName" > HeaderText="Customer Name" SortExpression="CustomerName" /> > <asp:BoundField DataField="AccountNum" HeaderText="Axapta > ID" SortExpression="AccountNum" /> > </Columns> > </asp:GridView> > >
How to Address Other Controls' IDs?
Custom dropdownlist that displays a listbox Using DataList - table and headers DataItem in DataListItem is null. .NET 2 Custom Control question Output the HTML contents of a dynamically created control Picture on a button DHTML MENU problem in IE Anybody using Table control? How Do I Use a CheckBox to Update a Bit Type Data Field in a DataGrid |
|||||||||||||||||||||||