This is a migrated thread and some comments may be shown as answers.

[Solved] PLZ achive this structure with sorting paging [ajax way] and TOTAL CALCULATION

0 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sanjeev
Top achievements
Rank 1
sanjeev asked on 17 Apr 2008, 04:52 AM

//<!-- <td width="100%" colspan="2">

// <div id="Div1" runat="server" width="100%" style="height:100%;">

// <table cellpadding="0" cellspacing="0" style="margin: 0 0 0 0;" align="center">

// <rad:RadGrid GridLines="both" AllowPaging="true" PageSize="5" EnableViewState="false" runat="server" BorderStyle="None"

// MasterTableView-ShowHeader="false" ID="rdgSample" Skin="" OnItemDataBound="radItemDataBound" CssClass="" AutoGenerateColumns="false"

// MasterTableView-ShowFooter="true" AllowSorting="true">

// <MasterTableView BorderWidth="0" CssClass="" CellPadding="0" CellSpacing="0" ItemStyle-BorderWidth="0"

// BorderStyle="None" HeaderStyle-BorderWidth="0">

// <PagerStyle PageButtonCount="4" BackColor="Aquamarine" />

// <Columns>

// <rad:GridTemplateColumn HeaderStyle-BackColor="Red" ConvertEmptyStringToNull="true"

// ItemStyle-BorderWidth="0" ShowSortIcon="true" ItemStyle-CssClass="paddingclass"

// UniqueName="TemplateColumn" SortExpression="">

// <HeaderTemplate>

// <tr style="background-color: CadetBlue; margin: 0 0 0 0;">

// <td colspan="3" align="left" style="padding-left: 5px; border-left: solid 1px black;

// border-bottom: solid 1px black; border-top: solid 1px black; margin: 0 0 0 0;"

// nowrap="nowrap">

// <asp:Label ID="lblAllFigures" runat="server" Font-Size="Medium" Font-Bold="true">All Figures in MUSD</asp:Label>

// </td>

// <td colspan="3" rowspan="2" align="center" style="border-left: solid 1px black; border-bottom: solid 1px black;

// border-top: solid 1px black; margin: 0 0 0 0;" nowrap="nowrap">

// <a href="RptOrdersByCountry.aspx">

// <asp:Label ID="lblCountryCode" runat="server" Font-Size="Medium" Font-Bold="true">Country</asp:Label></a>

// </td>

// <td colspan="3" align="center" style="border-left: solid 1px black; border-bottom: solid 1px black;

// border-top: solid 1px black; margin: 0 0 0 0;">

// <asp:Label ID="lblDirectOrders" runat="server" Font-Size="Medium" Font-Bold="true">Direct Orders</asp:Label>

// </td>

// <td colspan="3" align="center" style="border-right: solid 1px black; border-left: solid 1px black;

// border-bottom: solid 1px black; border-top: solid 1px black; margin: 0 0 0 0;">

// <asp:Label ID="Label1" runat="server" Font-Size="Medium" Font-Bold="true">Indirect Orders</asp:Label>

// </td>

// <td colspan="3" align="center" style="border-right: solid 1px black; border-bottom: solid 1px black;

// border-top: solid 1px black; margin: 0 0 0 0;">

// <asp:Label ID="Label17" runat="server" Font-Size="Medium" Font-Bold="true">Account Totals</asp:Label>

// </td>

// </tr>

// <tr style="background-color: CadetBlue; margin: 0 0 0 0; border: solid 1px black;">

// <td align="left" colspan="3" style="padding-left: 5px; margin: 0 0 0 0; border-bottom: solid 1px black;

// border-left: solid 1px black">

// <asp:Label ID="lblSubReportingPeriod" runat="server" Font-Size="Medium" Font-Bold="true"></asp:Label>

// </td>

// <%--<This is a blank column the first row column has row span ==2>--%>

// <td align="center" style="border-bottom: solid 1px black; border-right: solid 1px black;

// border-left: solid 1px black;">

// <asp:Label Font-Size="Medium" Font-Bold="true" ID="lblDirectPreviousYear" runat="server">2006</asp:Label>

// </td>

// <td align="center" style="border-bottom: solid 1px black; border-right: solid 1px black;">

// <asp:Label ID="lblDirectCurrentYear" runat="server" Font-Size="Medium" Font-Bold="true"> 2007</asp:Label>

// </td>

// <td align="center" style="margin: 0 0 0 0; border-bottom: solid 1px black;">

// <asp:Label ID="lblDirectGrowth" runat="server" Font-Size="Medium" Font-Bold="true">Growth</asp:Label>

// </td>

// <td align="center" style="border-bottom: solid 1px black; border-right: solid 1px black;

// border-left: solid 1px black;">

// <asp:Label Font-Size="Medium" Font-Bold="true" ID="lblInDirectPreviousYear" runat="server">2006</asp:Label>

// </td>

// <td align="center" style="border-bottom: solid 1px black; border-right: solid 1px black;">

// <asp:Label ID="lblInDirectCurrentYear" runat="server" Font-Size="Medium" Font-Bold="true"> 2007</asp:Label>

// </td>

// <td align="center" style="margin: 0 0 0 0; border-bottom: solid 1px black; border-right: solid 1px black;">

// <asp:Label ID="lblInDirectGrowth" runat="server" Font-Size="Medium" Font-Bold="true">Growth</asp:Label>

// </td>

// <td align="center" style="border-bottom: solid 1px black; border-right: solid 1px black;">

// <asp:Label Font-Size="Medium" Font-Bold="true" ID="lblAccountToalPreviousYear" runat="server">2006</asp:Label>

// </td>

// <td align="center" style="border-bottom: solid 1px black; border-right: solid 1px black;">

// <asp:Label ID="lblAccountToalCurrentYear" runat="server" Font-Size="Medium" Font-Bold="true"> 2007</asp:Label>

// </td>

// <td align="center" style="margin: 0 0 0 0; border-bottom: solid 1px black; border-right: solid 1px black;">

// <asp:Label ID="lblAccountTotalGrowth" runat="server" Font-Size="Medium" Font-Bold="true">Growth</asp:Label>

// </td>

// </tr>

// </HeaderTemplate>

// <ItemTemplate>

// <tr>

// <td align="left" colspan="3" style="margin: 0 0 0 0; padding: 0 2 0 5; border-bottom: solid 1px black;

// border-left: solid 1px black;">

// <asp:Label ID="lblCustomerName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CustomerName") %>'>'></asp:Label>

// </td>

// <%--' first Section End Here '--%>

// <td align="center" colspan="3" style="margin: 0 0 0 0; padding: 0 2 0 5; border-bottom: solid 1px black;

// border-left: solid 1px black;">

// <asp:Label ID="lblCountryCodeValue" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Country")%>' />

// </td>

// <td align="center" style="padding: 0 0 0 0; margin: 0 0 0 0; border-bottom: solid 1px black;

// border-right: solid 1px black; border-left: solid 1px black;">

// <asp:Label ID="lblDirectPreviousYearValue" Text='<%#(Convert.ToString(DataBinder.Eval(Container.DataItem,"PYDirectOrders"))!="" )?Int32.Parse(Convert.ToString(DataBinder.Eval(Container.DataItem,"PYDirectOrders"))).ToString("###,###,###.00"):"0"%>'

// runat="server"></asp:Label>

// </td>

// <td align="center" style="margin: 0 0 0 0; padding: 0 0 0 0; border-right: solid 1px black;

// border-bottom: solid 1px black;">

// <asp:Label ID="lblDirectCurrentYearValue" runat="server" Text='<%#Convert.ToString(DataBinder.Eval(Container.DataItem,"CYDirectOrders"))!=""?Int32.Parse(Convert.ToString(DataBinder.Eval(Container.DataItem,"CYDirectOrders"))).ToString("###,###,###.00"):"0"%>'></asp:Label>

// </td>

// <td align="center" style="margin: 0 0 0 0; padding: 0 2 0 5; border-bottom: solid 1px black;">

// <asp:Label ID="lblDirectTotalValue" runat="server" ></asp:Label>

// </td>

// <%--' first Section End Here '--%>

// <td align="center" style="padding: 0 0 0 0; margin: 0 0 0 0; border-bottom: solid 1px black;

// border-right: solid 1px black; border-left: solid 1px black;">

// <asp:Label ID="lblInDirectPreviousYearValue" runat="server" Text='<%#Convert.ToString(DataBinder.Eval(Container.DataItem,"PYIndirectOrders"))!=""?Int32.Parse(Convert.ToString(DataBinder.Eval(Container.DataItem,"PYIndirectOrders"))).ToString("###,###,###.00"):"0"%>'></asp:Label>

// </td>

// <td align="center" style="margin: 0 0 0 0; padding: 0 0 0 0; border-right: solid 1px black;

// border-bottom: solid 1px black;">

// <asp:Label ID="lblInDirectCurrentYearValue" runat="server" Text='<%#Convert.ToString(DataBinder.Eval(Container.DataItem,"CYIndirectOrders"))!=""?Int32.Parse(Convert.ToString(DataBinder.Eval(Container.DataItem,"CYIndirectOrders"))).ToString("###,###,###.00"):"0"%>'></asp:Label>

// </td>

// <td align="center" style="margin: 0 0 0 0; padding: 0 2 0 5; border-bottom: solid 1px black;

// border-right: solid 1px black;">

// <asp:Label ID="lblInDirectTotalValue" runat="server"></asp:Label>

// </td>

// <%--' first Section End Here '--%>

// <td align="center" style="padding: 0 0 0 0; margin: 0 0 0 0; border-bottom: solid 1px black;

// border-right: solid 1px black;">

// <asp:Label ID="lblAccountPreviousYearValue" runat="server" Text='<%#Convert.ToString(DataBinder.Eval(Container.DataItem,"PYAllOrders"))!=""?Int32.Parse(Convert.ToString(DataBinder.Eval(Container.DataItem,"PYAllOrders"))).ToString("###,###,###.00"):"0"%>'></asp:Label>

// </td>

// <td align="center" style="margin: 0 0 0 0; padding: 0 0 0 0; border-right: solid 1px black;

// border-bottom: solid 1px black;">

// <asp:Label ID="lblAccountCurrentYearValue" runat="server" Text='<%#Convert.ToString(DataBinder.Eval(Container.DataItem,"CYAllOrders"))!=""?Int32.Parse(Convert.ToString(DataBinder.Eval(Container.DataItem,"CYAllOrders"))).ToString("###,###,###.00"):"0"%>'></asp:Label>

// </td>

// <td align="center" style="margin: 0 0 0 0; padding: 0 2 0 5; border-bottom: solid 1px black;

// border-right: solid 1px black;">

// <asp:Label ID="lblAccountTotalValue" runat="server"></asp:Label>

// </td>

// <%--' first Section End Here '--%>

// </tr>

// </ItemTemplate>

// <FooterTemplate>

// <tr style="background-color: DarkGray;">

// <td colspan="6" align="left" style="border-left: solid 1px black; border-bottom: solid 1px black;

// margin: 0 0 0 0; padding-left: 5px;" nowrap="nowrap">

// <asp:Label ID="lblTotalsHeading" runat="server" Font-Bold="true" Font-Size="Small">Totals:</asp:Label>

// </td>

// <td align="center" style="border-left: solid 1px black; border-right: solid 1px black;

// border-bottom: solid 1px black; margin: 0 0 0 0;">

// <asp:Label ID="lblDirectOrdersPreviousYearTotal" Font-Bold="true" Font-Size="Small"

// runat="server"></asp:Label>

// </td>

// <td align="center" style="border-right: solid 1px black; border-bottom: solid 1px black;

// margin: 0 0 0 0;">

// <asp:Label ID="lblDirectOrdersCurrentYearTotal" Font-Bold="true" Font-Size="Small"

// runat="server"></asp:Label>

// </td>

// <td align="center" style="border-bottom: solid 1px black; margin: 0 0 0 0;">

// <asp:Label ID="lblDirectOrdersGrowthTotal" Font-Bold="true" Font-Size="Small" runat="server"></asp:Label>

// </td>

// <td align="center" style="border-left: solid 1px black; border-bottom: solid 1px black;

// margin: 0 0 0 0; border-right: solid 1px black;">

// <asp:Label ID="lblInDirectOrdersPreviousYearTotal" Font-Bold="true" Font-Size="Small"

// runat="server"></asp:Label>

// </td>

// <td align="center" style="border-right: solid 1px black; border-bottom: solid 1px black;

// margin: 0 0 0 0;">

// <asp:Label ID="lblInDirectOrdersCurrentYearTotal" Font-Bold="true" Font-Size="Small"

// runat="server"></asp:Label>

// </td>

// <td align="center" style="border-right: solid 1px black; border-bottom: solid 1px black;

// margin: 0 0 0 0;">

// <asp:Label ID="lblInDirectOrdersGrowthTotal" Font-Bold="true" Font-Size="Small" runat="server"></asp:Label>

// </td>

// <td align="center" style="border-right: solid 1px black; border-bottom: solid 1px black;

// margin: 0 0 0 0;">

// <asp:Label ID="lblAccountPreviousYearTotal" Font-Bold="true" Font-Size="Small" runat="server"></asp:Label>

// </td>

// <td align="center" style="border-right: solid 1px black; border-bottom: solid 1px black;

// margin: 0 0 0 0;">

// <asp:Label ID="lblAccountCurrentYearTotal" Font-Bold="true" Font-Size="Small" runat="server"></asp:Label>

// </td>

// <td align="center" style="border-right: solid 1px black; border-bottom: solid 1px black;

// margin: 0 0 0 0;">

// <asp:Label ID="lblAccountGrowthTotal" Font-Bold="true" Font-Size="Small" runat="server"></asp:Label>

// </td>

// </tr>

// </tr>

// </FooterTemplate>

// </rad:GridTemplateColumn>

// </Columns>

// </MasterTableView>

// </rad:RadGrid>

// </table>

// </div>

// </td> --|>

No answers yet. Maybe you can help?

Tags
Grid
Asked by
sanjeev
Top achievements
Rank 1
Share this question
or