listGrid.ClientSettings.ClientEvents.OnCommand =
"RaiseCommand";
HTML:
function RaiseCommand(sender, eventArgs) {
var result = eventArgs.get_commandName();
switch (result) {
case "Page":
{
ShowCancelBtn();
break;
}
case "PageSize":
{
ShowCancelBtn();
break;
}
}
But I found that when I change the pagesize with the dropdownlist , the pager numbers changes immediately before the grid data loading start!
For Example: when I use the pagesize "10" , the page number is "1,2,3" and total record count is 30 .when I change to pagesize"20", the page number changes immediately to "1,2" before the grid data began load.
In other word , the page numer is been calculate first and been shown, and then the grid data began load. I don't want it works like that. I thnk there must be something wrong with the "ClientSettings.ClientEvents.OnCommand", It causes the wrong order bettween page number shown and dataload. I need your help, team.
<
script type="text/javascript" language="javascript">
function showToolTip(element, displayText, radClientID) {
var tooltipManager = $find("<%= RadToolTipManager1.ClientID %>");
//if hoverover before page is loaded, return nothing
if (!tooltipManager) return;
//Find the tooltip for this element if it has been created
var tooltip = tooltipManager.getToolTipByElement(element);
//Create a tooltip if it doesn't exist
if (!tooltip) {
tooltip = tooltipManager.createToolTip(element);
tooltip.set_text(displayText);
}
//Let the tooltip's own show mechanism take over from here - execute the onmouseover just once
element.onmouseover =
null;
//show the tooltip
tooltip.show();
}
</
script>
<
telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" RelativeTo="Element"
Position="BottomCenter" HideEvent="LeaveToolTip" AutoTooltipify="true" ContentScrolling="Default" BorderWidth="2" EnableShadow="true">
</telerik:RadToolTipManager>
Hi,
I derived from RadTreeList and in my dev environment everything works fine. In production however, the buttons that expand/collapse a node have the wrong css class assigned. In dev the RadTreeList base control correctly assigns the "rtlExpand" or "rtlCollapse" class, so the button renders with class="rtlExpand" / "rtlCollapse". In prod, it always only renders class="button".
To make sure that nothing intercepts the rendering, I debugged the OnPreRender method of the control and checked the attributes of the controls. The css classes are already assigned right there. I am not messing with the node css class in the derived control, so I have absolutely no idea where class="button" is coming from.
The Telerik dll versions are equal in both environments. The main difference between the dev and prod environments is that the page that hosts the tree is not derived from System.Web.UI.Page, but from a custom page class which does all kinds of stuff that I don't know about. However, in both environments the control tree above the RadTreeList is the same. So that page class must somehow interfere with the Telerik control. When I just make System.Web.UI.Page the base class in the prod environment, then the control renders fine.
I just don't know what the page class could do to alter the rendering of the RadTreeList and I am thankful for any hint.
Thanks,
Tim
|

<telerik:RadGrid ID="radGridProject" runat="server" AutoGenerateColumns="False" CommandItemDisplay="Top" GridLines="None" AllowFilteringByColumn="True" AllowSorting="true" Width="100%" AllowPaging="true" PageSize="15" OnNeedDataSource="RadGridProject_NeedDataSource" OnItemDataBound="RadGridProject_OnItemDataBound" OnItemCommand="RadGridProject_OnItemCommand" AllowMultiRowSelection="false" ClientSettings-Resizing-AllowColumnResize="true" Skin="Default"> <MasterTableView AutoGenerateColumns="false" GridLines="None" CommandItemDisplay="Top" EditMode="EditForms" DataKeyNames="ProjectID" AllowFilteringByColumn="True" TableLayout="Auto" Width="100%" > <RowIndicatorColumn> <HeaderStyle Width="20px" /> </RowIndicatorColumn> <ExpandCollapseColumn > <HeaderStyle Width="20px" /> </ExpandCollapseColumn> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="20px" UniqueName="ProjectsEditButton"> <ItemStyle Width="5%" /> </telerik:GridEditCommandColumn> <telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="25px" UniqueName="ProjectsDeleteButton"> <ItemStyle Width="5%" /> <ItemTemplate> <asp:ImageButton ID="btnDelete" runat="server" CommandName="Delete" ImageUrl="~/Images/delete.gif" OnClientClick="javascript:return confirm('Are you sure you want to delete this record?')" /> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="ProjectName" HeaderText=" Project Name" SortExpression="Status" UniqueName="ProjectNameColumn" AllowFiltering="true"> <ItemTemplate> <asp:Label ID="labelProjectName" runat="server" Text='<%# Bind("ProjectName") %>'></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="textboxProjectName" runat="server" Text='<%# Bind("ProjectName") %>'></asp:TextBox> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="Status" HeaderText=" Status" SortExpression="Status" UniqueName="StatusColumn" AllowFiltering="true"> <ItemTemplate> <asp:Label ID="labelStatus" runat="server" Text='<%# Bind("Status") %>'></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="textboxStatus" runat="server" Text='<%# Bind("Status") %>'></asp:TextBox> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="ProjectType" HeaderText=" Project Type" SortExpression="ProjectType" UniqueName="ProjectTypeColumn" AllowFiltering="true" Visible="false"> <ItemTemplate> <asp:Label ID="labelProjectType" runat="server" Text='<%# Bind("ProjectType") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="City" HeaderText=" City" SortExpression="City" UniqueName="CityColumn" AllowFiltering="true"> <ItemTemplate> <asp:Label ID="labelCity" runat="server" Text='<%# Bind("City") %>'></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="textboxCity" runat="server" Text='<%# Bind("City") %>'></asp:TextBox> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80%" DataField="ProjectDescription" HeaderText=" Project Description" SortExpression="ProjectDescription" UniqueName="ProjectDescriptionColumn" AllowFiltering="true"> <ItemTemplate> <asp:Label ID="labelProjectDescription" runat="server" Text='<%# Bind("ProjectDescription") %>'></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="textboxProjectDescription" runat="server" Text='<%# Bind("ProjectDescription") %>'></asp:TextBox> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="StNumber" HeaderText=" St. Number" SortExpression="StNumber" UniqueName="StNumberColumn" AllowFiltering="true" Visible="false"> <ItemTemplate> <asp:Label ID="labelStNumber" runat="server" Text='<%# Bind("StNumber") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="StPre" HeaderText=" StPre" SortExpression="StPre" UniqueName="StPreColumn" AllowFiltering="true" Visible="false"> <ItemTemplate> <asp:Label ID="labelStPre" runat="server" Text='<%# Bind("StPre") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="StName" HeaderText=" StName" SortExpression="StName" UniqueName="StNameColumn" AllowFiltering="true" Visible="false"> <ItemTemplate> <asp:Label ID="labelStName" runat="server" Text='<%# Bind("StName") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="StType" HeaderText=" StType" SortExpression="StType" UniqueName="StTypeColumn" AllowFiltering="true" Visible="false"> <ItemTemplate> <asp:Label ID="labelStType" runat="server" Text='<%# Bind("StType") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="StSuffix" HeaderText=" StSuffix" SortExpression="StSuffix" UniqueName="StSuffixColumn" AllowFiltering="true" Visible="false"> <ItemTemplate> <asp:Label ID="labelStSuffix" runat="server" Text='<%# Bind("StSuffix") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="Zip" HeaderText=" Zip" SortExpression="Zip" UniqueName="ZipColumn" AllowFiltering="true"> <ItemTemplate> <asp:Label ID="labelZip" runat="server" Text='<%# Bind("Zip") %>'></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="textboxZip" runat="server" Text='<%# Bind("Zip") %>'></asp:TextBox> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn Visible="false" FilterControlWidth="80px" DataField="ClientID" HeaderText=" ClientID" SortExpression="ClientID" UniqueName="ClientIDColumn" AllowFiltering="true"> <ItemTemplate> <asp:Label ID="labelClientID" runat="server" Text='<%# Bind("ClientID") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn Visible="false" FilterControlWidth="80px" DataField="ClientName" HeaderText=" Client Name" SortExpression="ClientName" UniqueName="ClientNameColumn" AllowFiltering="true"> <ItemTemplate> <asp:Label ID="labelClientName" runat="server" Text='<%# Bind("ClientName") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn Visible="false" FilterControlWidth="80px" DataField="MSTProjectID" HeaderText=" MSTProjectID" SortExpression="MSTProjectID" UniqueName="MSTProjectIDColumn" AllowFiltering="true"> <ItemTemplate> <asp:Label ID="labelMSTProjectID" runat="server" Text='<%# Bind("MSTProjectID") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn Visible="false" FilterControlWidth="80px" DataField="ProjectID" HeaderText=" Project ID" SortExpression="ProjectID" UniqueName="ProjectIDColumn" AllowFiltering="true"> <ItemTemplate> <asp:Label ID="labelProjectID" runat="server" Text='<%# Bind("ProjectID") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="LatMin" HeaderText=" LatMin" SortExpression="LatMin" UniqueName="LatMinColumn" AllowFiltering="true" Visible="false"> <ItemTemplate> <asp:Label ID="labelLatMin" runat="server" Text='<%# Bind("LatMin") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="LatMax" HeaderText=" LatMax" SortExpression="LatMax" UniqueName="LatMaxColumn" AllowFiltering="true" Visible="false"> <ItemTemplate> <asp:Label ID="labelLatMax" runat="server" Text='<%# Bind("LatMax") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="LongMin" HeaderText=" LongMin" SortExpression="LongMin" UniqueName="LongMinColumn" AllowFiltering="true" Visible="false"> <ItemTemplate> <asp:Label ID="labelLongMin" runat="server" Text='<%# Bind("LongMin") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="LongMax" HeaderText=" LongMax" SortExpression="LongMax" UniqueName="LongMaxColumn" AllowFiltering="true" Visible="false"> <ItemTemplate> <asp:Label ID="labelLongMax" runat="server" Text='<%# Bind("LongMax") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn FilterControlWidth="80px" DataField="ProjectNotes" HeaderText=" Project Notes" SortExpression="ProjectNotes" UniqueName="ProjectNotesColumn" AllowFiltering="true" Visible="false"> <ItemTemplate> <asp:Label ID="labelProjectNotes" runat="server" Text='<%# Bind("ProjectNotes") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> <EditFormSettings editformtype="Template"> <FormTemplate> <table> <tr> <td align="left"> <mst:ProjectInfo ID="uctrlProjectInfo" runat="server" /> </td> </tr> <tr> <td> <asp:Button ID="btnUpdate" runat="server" CommandName="Update" Text="Submit" /> <asp:Button ID="btnCancel" runat="server" CommandName="Cancel" Text="Cancel" CausesValidation="false" /> </td> </tr> </table> </FormTemplate> </EditFormSettings> <NestedViewTemplate> <table> <tr> <td align="left"> <mst:ProjectInfo ID="uctrlProjectInfo" runat="server" /> </td> </tr> </table> </NestedViewTemplate> </MasterTableView> <ClientSettings AllowDragToGroup="True"> <Scrolling AllowScroll="false" UseStaticHeaders="True" /> <Selecting AllowRowSelect="true" /> <Resizing AllowColumnResize="True" /> </ClientSettings> <FilterMenu EnableTheming="True" Skin="Default2006"> <CollapseAnimation Duration="200" Type="OutQuint" /> </FilterMenu> <GroupingSettings CaseSensitive="false" /> <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle> <HeaderStyle HorizontalAlign="Left" /> <ValidationSettings CommandsToValidate="PerformInsert,Update" EnableValidation="true" /> </telerik:RadGrid>protected void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e) { string fileName = ""; List<ProjectBO> listProjectBO = ProjectDAP.GetAllProjects(); if (listProjectBO.Count > 0) { // Exported excel file name contains of ClientName,ProjectName,ArrivalDate fileName = "ProjectData"; } radGridProject.DataSource = ProjectDAP.GetAllProjects(); radGridProject.Rebind(); //radGridProject.AutoGenerateColumns = true; radGridProject.ExportSettings.FileName = fileName; radGridProject.MasterTableView.Columns.FindByUniqueName("ProjectIDColumn").Visible = true; radGridProject.MasterTableView.ExpandCollapseColumn.Visible = false; radGridProject.MasterTableView.RowIndicatorColumn.Visible = false; radGridProject.MasterTableView.Columns.FindByUniqueName("ProjectsEditButton").Visible = false; radGridProject.MasterTableView.Columns.FindByUniqueName("ProjectsDeleteButton").Visible = false; radGridProject.MasterTableView.Columns.FindByUniqueName("MSTProjectIDColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("ProjectTypeColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("ProjectDescriptionColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("ClientIDColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("ClientNameColumn").Visible = false; radGridProject.MasterTableView.Columns.FindByUniqueName("StNumberColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("StPreColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("StNameColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("StTypeColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("StSuffixColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("LatMinColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("LatMaxColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("LongMinColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("LongMaxColumn").Visible = true; radGridProject.MasterTableView.Columns.FindByUniqueName("ProjectNotesColumn").Visible = true; this.radGridProject.GridLines = GridLines.Both; radGridProject.ExportSettings.Excel.Format = GridExcelExportFormat.Html; this.radGridProject.ExportSettings.ExportOnlyData = true; this.radGridProject.ExportSettings.IgnorePaging = true; foreach (GridItem commandItem in this.radGridProject.MasterTableView.GetItems(GridItemType.CommandItem)) { commandItem.Visible = false; } radGridProject.MasterTableView.ExportToExcel(); }void lnkOpenVoucher_Command(object sender, CommandEventArgs e) { LinkButton lnkOpenVoucher = (LinkButton)sender; GridGroupHeaderItem groupHeader = (GridGroupHeaderItem)lnkOpenVoucher.NamingContainer; string url = string.Empty; GridDataItem dItem = rgVoucherSearch.MasterTableView.GetItems(GridItemType.Item)[0] as GridDataItem; if (dItem["AccountJournalEventTypeID"].Text == GlobalConstants.ACCOUNTJOURNAL_EVENT_TYPE_ID_FOR_CASH_RECEIPT.ToString()) url = "ManageTransactionPrerview.aspx?LedgerReferenceKey=" + dItem["AccountJournalLedgerReferenceKey"].Text + "&EventTypeID=" + GlobalConstants.ACCOUNTJOURNAL_EVENT_TYPE_ID_FOR_CASH_RECEIPT; if (dItem["AccountJournalEventTypeID"].Text == GlobalConstants.ACCOUNTJOURNAL_EVENT_TYPE_ID_FOR_AR_INVOICE.ToString()) url = "ManageTransactionPrerview.aspx?LedgerReferenceKey=" + dItem["AccountJournalLedgerReferenceKey"].Text + "&EventTypeID=" + GlobalConstants.ACCOUNTJOURNAL_EVENT_TYPE_ID_FOR_AR_INVOICE;}Hello,
I am trying, without success, to get the scroll bars to appear properly on my page. Here's the scenario,
What I want is for the radpageview to occupy 100% of the main content area width and height and for the page loaded into it to scroll up and down within in this area. I've tried many different combinations of setting the heights of the different components on the different pages, but am unable to get the desired result. I get either multiple right scroll bars or the page doesn't resize properly when the browser is resized or content is off the bottom of the window and can't be scrolled to.
Can you suggest the best method of setting the heights and scroll bar properties of each element? What should be fixed, auto, on and off, etc.
Thank you,
John

<telerik:RadGrid ID="rgProjectBudget" OnNeedDataSource="rgProjectBudget_NeedDataSource" runat="server" GridLines="None" ShowGroupPanel="false" AllowMultiRowSelection="true" OnDeleteCommand="rgProjectBudget_DeleteCommand" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="false" ShowFooter="true"> <MasterTableView Width="100%" GroupsDefaultExpanded="false" ExpandCollapseColumn-Groupable="true" CommandItemSettings-ShowAddNewRecordButton="false" GroupLoadMode="Client" ShowGroupFooter="true"> <GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldAlias="ChartOfAccountSetDetailDescription" FieldName="ChartOfAccountSetDetailDescription" HeaderText="GL Account" HeaderValueSeparator=" : "></telerik:GridGroupByField> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="ChartOfAccountSetDetailDescription" SortOrder="Descending"></telerik:GridGroupByField> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> <Columns> <telerik:GridBoundColumn DataField="ChartOfAccountSetDetailValueCode" DataType="System.String" HeaderText="Project Heads" AllowFiltering="true" AutoPostBackOnFilter="true" FilterControlWidth="30%" CurrentFilterFunction="Contains" UniqueName="ChartOfAccountSetDetailValueCode"> <HeaderStyle HorizontalAlign="Left" /><ItemStyle HorizontalAlign="Left" Width="10%" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ChartOfAccountSetDetailDescription" DataType="System.String" HeaderText="Description" AllowFiltering="true" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" UniqueName="ChartOfAccountSetDetailDescription" FilterControlWidth="60%"> <HeaderStyle HorizontalAlign="Left" /><ItemStyle HorizontalAlign="Left" Width="10%" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PurchaseOrderNo" DataType="System.String" HeaderText="PO No" AllowFiltering="true" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" UniqueName="PurchaseOrderNo" FilterControlWidth="60%"> <HeaderStyle HorizontalAlign="Left" /><ItemStyle HorizontalAlign="Left" Width="10%" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="GR_Number" DataType="System.String" HeaderText="GR No" AllowFiltering="true" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" UniqueName="GR_Number" FilterControlWidth="60%"> <HeaderStyle HorizontalAlign="Left" /><ItemStyle HorizontalAlign="Left" Width="10%" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="QuotedValue" HeaderText="Quoted Amount" DataField="QuotedValue" CurrentFilterFunction="EqualTo" AllowFiltering="true" DataType="System.Double" DataFormatString="{0:N}" FilterControlWidth="30%" AutoPostBackOnFilter="true" Aggregate="Sum" FooterText="Quoted Value: "> <HeaderStyle HorizontalAlign="Left" /><ItemStyle HorizontalAlign="Right" Width="10%" /><FooterStyle HorizontalAlign="Right" /> <FooterStyle HorizontalAlign="Right" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="SecondaryEntityBudget" HeaderText="PV1" DataField="SecondaryEntityBudget" DataFormatString="{0:N}" CurrentFilterFunction="EqualTo" AllowFiltering="true" DataType="System.Double" Aggregate="Sum" FooterText="PV1: " FilterControlWidth="30%" AutoPostBackOnFilter="true"> <HeaderStyle HorizontalAlign="Left" /><ItemStyle HorizontalAlign="Right" Width="10%" /><FooterStyle HorizontalAlign="Right" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="SupplementaryBudget1" HeaderText="PV0" DataField="SupplementaryBudget1" DataFormatString="{0:N}" CurrentFilterFunction="EqualTo" AllowFiltering="true" DataType="System.Double" Aggregate="Sum" FooterText="PV0: " FilterControlWidth="30%" AutoPostBackOnFilter="true"> <HeaderStyle HorizontalAlign="Left" /><ItemStyle HorizontalAlign="Right" Width="10%" /><FooterStyle HorizontalAlign="Right" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="COARequisitionAmount" HeaderText="Commited" DataField="COARequisitionAmount" FooterText="Commited: " CurrentFilterFunction="Contains" AllowFiltering="true" DataFormatString="{0:N}" AutoPostBackOnFilter="true" Aggregate="Sum"> <HeaderStyle HorizontalAlign="Left" /><ItemStyle HorizontalAlign="Right" Width="10%" /><FooterStyle HorizontalAlign="Right" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="COAActualAmount" HeaderText="Actual Amount" Aggregate="Sum" FooterText="Actual Amount: " DataField="COAActualAmount" CurrentFilterFunction="EqualTo" AllowFiltering="true" DataFormatString="{0:N}" DataType="System.Double" FilterControlWidth="30%" AutoPostBackOnFilter="true"> <HeaderStyle HorizontalAlign="Left" /><ItemStyle HorizontalAlign="Right" Width="10%" /><FooterStyle HorizontalAlign="Right" /> </telerik:GridBoundColumn> <telerik:GridCalculatedColumn HeaderText="Balance" UniqueName="Balance" DataType="System.Double" DataFormatString="{0:N}" DataFields="SecondaryEntityBudget,COARequisitionAmount,COAActualAmount" Expression="{0}-({1}+{2})" FooterText="Balance: " Aggregate="Sum"> <HeaderStyle HorizontalAlign="Left" /><ItemStyle HorizontalAlign="Right" Width="10%" /><FooterStyle HorizontalAlign="Right" /> </telerik:GridCalculatedColumn> <telerik:GridBoundColumn DataField="StatusID" DataType="System.Int32" HeaderText="StatusID" UniqueName="StatusID" Display="false"></telerik:GridBoundColumn> <telerik:GridHyperLinkColumn DataTextField="StatusName" DataType="System.String" ItemStyle-HorizontalAlign="Center" HeaderText="Status" UniqueName="StatusName" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" DataNavigateUrlFields="COABudgetDetailID,SecondaryEntityBudget,SupplementaryBudget1,SupplementaryBudget2" DataNavigateUrlFormatString="javascript:CheckBudgetAmount({0},{1},{2},{3});" Visible="false"></telerik:GridHyperLinkColumn> <telerik:GridBoundColumn DataField="SecondaryEntityBudgetApproved" DataType="System.Double" Display="false" HeaderText="SecondaryEntityBudgetApproved" UniqueName="SecondaryEntityBudgetApproved"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SupplementaryBudget1Approved" DataType="System.Double" Display="false" HeaderText="SupplementaryBudget1Approved" UniqueName="SupplementaryBudget1Approved"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SupplementaryBudget2Approved" DataType="System.Double" Display="false" HeaderText="SupplementaryBudget2Approved" UniqueName="SupplementaryBudget2Approved"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn HeaderText="Not Applicable" UniqueName="IsBudgetNotApplicable" FilterControlWidth="20%" CurrentFilterFunction="Contains" AllowFiltering="true" AutoPostBackOnFilter="true" Display="false"> <ItemTemplate> <asp:CheckBox ID="chkApplicable" runat="server" Checked='<%# DataBinder.Eval(Container,"DataItem.IsBudgetNotApplicable") %>' Visible="false" /> </ItemTemplate> <HeaderStyle HorizontalAlign="Left" /><ItemStyle HorizontalAlign="Left" Width="10%" /> </telerik:GridTemplateColumn> <telerik:GridCheckBoxColumn DataField="IsParent" UniqueName="IsParent" HeaderText="IsParent" Display="false"></telerik:GridCheckBoxColumn> <telerik:GridBoundColumn DataField="IsParent" UniqueName="IsParent1" HeaderText="IsParent1" Display="false"></telerik:GridBoundColumn> <telerik:GridClientSelectColumn HeaderText="Select" UniqueName="Select" Display="false"></telerik:GridClientSelectColumn> <telerik:GridButtonColumn CommandName="Delete" HeaderText="Delete?" Text="Delete" Display="false" UniqueName="DeleteCommandColumn" ButtonType="ImageButton" ConfirmText="Are you sure you want to delete ?"> </telerik:GridButtonColumn> </Columns> </MasterTableView> <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="false" AllowColumnsReorder="True"> <Selecting AllowRowSelect="True"></Selecting> <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="False"></Resizing> </ClientSettings> <GroupingSettings ShowUnGroupButton="true" RetainGroupFootersVisibility="true" /> </telerik:RadGrid>