Im having a hard time getting the paging to work. I tried this the easy way and just databound membership.getallusers and it seemed to work fine only paging didn't work. Then I followed these instructions. Still does not work. I know the instructions work because I just bound to an asp:gridview autogenerated the columns turned on paging and it worked fine. When I try the same with the radgrid i have data but no paging. Im sure I'm doing something wrong I just don't know what....
Please pardon the messy code as its a work in progress and I've been exploring the grid a bit
| <asp:ObjectDataSource ID="objdsUsers" runat="server" selectmethod="CustomGetAllUsers" typename="MyNameSpace.Data.GetAllUsers"></asp:ObjectDataSource> |
| <asp:gridview id="gvUsers" allowpaging="true" runat="server" autogeneratecolumns="true" pagesize="2" pagersettings-mode="Numeric" |
| datasourceid="objdsUsers" /> |
| <telerik:radgrid id="rgUsers" pagesize="2" runat="server" allowfilteringbycolumn="True" |
| allowpaging="True" allowcustompaging="true" allowsorting="True" autogeneratecolumns="False" |
| datasourceid="objdsUsers" |
| gridlines="None" onupdatecommand="rgUsers_Update" skin="Gray" |
| > |
| <headercontextmenu enabletheming="True"> |
| <collapseanimation duration="200" type="OutQuint" /> |
| </headercontextmenu> |
| <mastertableview editformsettings-editformtype="Template" editmode="EditForms"> |
| <headerstyle font-size="X-Small" /> |
| <columns> |
| <telerik:grideditcommandcolumn canceltext="Cancel" edittext="Edit" |
| updatetext="Save" /> |
| <telerik:gridboundcolumn datafield="UserName" headertext="Username" /> |
| <telerik:gridboundcolumn datafield="Email" headertext="E-mail" /> |
| <telerik:gridcheckboxcolumn datafield="IsApproved" headertext="Is Approved" |
| readonly="true" /> |
| <telerik:gridcheckboxcolumn datafield="IsLockedOut" headertext="Locked Out" /> |
| <telerik:gridboundcolumn datafield="CreationDate" headertext="Registered" /> |
| <telerik:gridboundcolumn datafield="LastLoginDate" headertext="Last Login" /> |
| </columns> |
| <editformsettings editformtype="Template"> |
| <editcolumn uniquename="rdCommondColumnEdit" /> |
| <formtemplate> |
| <div class="formarea useredit"> |
| <h1 class="title"> |
| Edit <strong><%# DataBinder.Eval(Container,"DataItem.UserName") %></strong></h1> |
| <fieldset> |
| <ul> |
| <li> |
| <label>Username:</label> |
| <telerik:radtextbox focusedstyle-cssclass="textbox focused" runat="server" text='<%# DataBinder.Eval(Container,"DataItem.UserName") %>' /> |
| <asp:textbox id="txtUsername" runat="server" text='<%# DataBinder.Eval(Container,"DataItem.UserName") %>' /> |
| </li> |
| </ul> |
| </fieldset> |
| </div> |
| </formtemplate> |
| </editformsettings> |
| <rowindicatorcolumn> |
| <headerstyle width="20px" /> |
| </rowindicatorcolumn> |
| <expandcollapsecolumn> |
| <headerstyle width="20px" /> |
| </expandcollapsecolumn> |
| </mastertableview> |
| <pagerstyle mode="Slider" alwaysvisible="true" /> |
| <filtermenu enabletheming="True"> |
| <collapseanimation duration="200" type="OutQuint" /> |
| </filtermenu> |
| </telerik:radgrid> |
Please pardon the messy code as its a work in progress and I've been exploring the grid a bit