The problem is that we can’t set the Page Size greater than the Items Count.
We want to be able to set the page size 10 even if there is 4 items in the source list.
Steps to reproduce: bind to the grid the source with 4 items, try to enter 10 to the Page Size texbox, press Change button.
Actual result: the value of the textbox is turned back to previous value.
Expected result: the page size is changed to 10
The aspx code :
<telerik:RadGrid ID="dgdTransList" runat="server" AutoGenerateColumns="True"
GridLines="None" EnableAJAX="true" PageSize="5" ShowFooter="true"
AllowPaging="true"
>
<PagerStyle
Visible="true"
Mode="NextPrevNumericAndAdvanced"
AlwaysVisible="true"
/>
</telerik:RadGrid>
The cs code :
void dgdTransList_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
ArrayList list = new ArrayList(new object[] { "one", "two", "three", "four" });
dgdTransList.DataSource = list;
}
Can you please tell us is there any workaround?
| <telerik:GridAttachmentColumn UniqueName ="colTPdf" FileNameTextField="ORT.OTCLIE" AttachmentKeyFields="ORT.OTNUOR" Text="Scarica ordine" ImageUrl="~/images/icoGear.png" > |
| </telerik:GridAttachmentColumn> |
| function AddNode(parentNode) { |
| var tree = $find("<%= tvCategory.ClientID %>"); |
| tree.trackChanges(); |
| var node = new Telerik.Web.UI.RadTreeNode(); |
| node.set_text("New Node"); |
| node.set_imageUrl("<%= NodeImageURL %>"); |
| if (parentNode == null) { |
| tree.get_nodes().add(node); |
| } |
| else { |
| parentNode.get_nodes().add(node); |
| parentNode.expand(); |
| } |
| tree.commitChanges(); |
| node.BeginEdit(); |
| } |
Dim
sortExpr As New GridSortExpression
sortExpr.FieldName =
PresentationConstants.DATE_LBL
sortExpr.SortOrder =
GridSortOrder.Descending
radgrdPatChronology.MasterTableView.DetailTables(0).SortExpressions.AddSortExpression(sortExpr)
In Design for Date Time column i have set the DatetimeFormat property.
DataFormatString="{0:MM/dd/yyyy}"
Where am I going wrong?
Please help me in sorting the Date Time column in hierarchy grid.