Monday, August 3, 2020

Take off from Entebbe Airport, Uganda to Dubai International Airport by ...

Monday, February 25, 2019

How to send confidential email in gmail

Monday, January 28, 2019

How to get lots of FOLLOWERS on Pinterest

Tuesday, January 1, 2019

How to create a playlist on youtube channel

Friday, November 2, 2012

Display Gridpanel cell tooltip in Ext.Net



You often want to display tooltip using cell data when data length overflows column width in your gridpanel. You will get an example to show tooltip with gridpanel cell data here: http://examples1.ext.net/#/Miscellaneous/ToolTips/GridPanel_Cell_Tooltip/
But this is not working properly when it is included in some project especially if you have master page based design. I have tried this in my project and it worked properly with little bit changes. Here I want to share the codes with you guys:
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Style/examples.css" rel="stylesheet" type="text/css" />
    <ext:XScript ID="XScript1" runat="server">
        <script type="text/javascript">
            var showTip = function () {
                var rowIndex = #{gpList}.view.findRowIndex(this.triggerElement),
                cellIndex = #{gpList}.view.findCellIndex(this.triggerElement),
                record = #{gpListStore}.getAt(rowIndex),
                fieldName = #{gpList}.getColumnModel().getDataIndex(cellIndex),
               
                data = record.get(fieldName);
                if (data ==null){
                this.body.dom.innerHTML = "";
                }
                else{
                this.body.dom.innerHTML = data;
                };
            };
        </script>
    </ext:XScript>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ext:ResourceManager ID="rcm" runat="server">
    </ext:ResourceManager>
    <ext:Hidden ID="hfPK" runat="server">
    </ext:Hidden>
    <ext:TabPanel ID="tPnlMain" runat="server" ActiveTabIndex="0" AnchorHorizontal="100%"
        Height="500" Plain="true" Visible="true" Width="1024">
        <Items>
<ext:Panel ID="Tab2" runat="server" Title="Employee Search" Padding="1" AutoScroll="true">
                <Items>
                    <ext:RowLayout runat="server">
                        <Rows>
                            <ext:LayoutRow RowHeight=".25">
                                <ext:Panel ID="Panel1" runat="server" Header="false" Padding="1" AutoScroll="true">
                                    <Items>
                                    </Items>
                                </ext:Panel>
                            </ext:LayoutRow>
                            <ext:LayoutRow RowHeight=".75">
                                <ext:Panel ID="Panel3" runat="server" Title="Employee List" Padding="1" AutoScroll="true">
                                    <Items>
                                        <ext:GridPanel ID="gpList" runat="server" StripeRows="true" AutoExpandColumn="EmployeeName"
                                            Collapsible="true" AnchorHorizontal="100%" Height="322" TrackMouseOver="true">
                                            <Store>
                                                <ext:Store ID="gpListStore" runat="server">
                                                    <Reader>
                                                        <ext:JsonReader IDProperty="EmployeeId">
                                                            <Fields>
                                                                <ext:RecordField Name="EmployeeId" />
                                                                <ext:RecordField Name="EmployeeName" />
                                                                <ext:RecordField Name="EnrollId" />
                                                                <ext:RecordField Name="FirstName" />
                                                                <ext:RecordField Name="MiddleName" />
                                                                <ext:RecordField Name="LastName" />
                                                                <ext:RecordField Name="AddressLine1" />
                                                                <ext:RecordField Name="DepartmentId" />
                                                                <ext:RecordField Name="DesignationId" />
                                                                <ext:RecordField Name="PolicyId" />
                                                                <ext:RecordField Name="CardNumber" />
                                                                <ext:RecordField Name="DesignationName" />
                                                                <ext:RecordField Name="DeptName" />
                                                                <ext:RecordField Name="SbuName" />
                                                            </Fields>
                                                        </ext:JsonReader>
                                                    </Reader>
                                                </ext:Store>
                                            </Store>
                                            <ColumnModel ID="ColumnModel1" runat="server">
                                                <Columns>
                                                    <ext:RowNumbererColumn />
                                                    <ext:CommandColumn Header="Action" Width="65">
                                                        <Commands>
                                                            <ext:GridCommand Icon="ApplicationEdit" CommandName="Edit">
                                                                <ToolTip Text="Edit" />
                                                            </ext:GridCommand>
                                                        </Commands>
                                                    </ext:CommandColumn>
                                                    <ext:Column ColumnID="cEnrollId" Header="Enroll Id" DataIndex="EnrollId" Width="50" />
                                                    <ext:Column ColumnID="cStaffCode" Header="Employee Code" DataIndex="StaffCode" Width="70" />
                                                    <ext:Column ColumnID="cEmployeeName" Header="EmployeeName" DataIndex="EmployeeName"
                                                        Width="130" />
                                                    <ext:Column ColumnID="cDesignationName" Header="Designation" DataIndex="DesignationName"
                                                        Width="150" />
                                                    <ext:Column ColumnID="cDepartmentName" Header="Department" DataIndex="DeptName" Width="100" />
                                                    <ext:Column ColumnID="cSbuId" Header="Branch" DataIndex="SbuName" />
                                                    <ext:Column ColumnID="cAddressLine1" Header="Address" DataIndex="AddressLine1" Width="180" />
                                                </Columns>
                                            </ColumnModel>
                                            <SelectionModel>
                                                <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true" />
                                            </SelectionModel>
                                            <BottomBar>
                                                <ext:PagingToolbar ID="gpListPager" runat="server" PageSize="20" />
                                            </BottomBar>
                                            <Listeners>
                                                <Command Handler="Ext.net.DirectMethods.ExecuteActionCommand(command, record.data.EmployeeId, record.data.EnrollId);" />
                                            </Listeners>
                                            <ToolTips>
                                                <ext:ToolTip ID="RowTip" runat="server" Target="#{gpList}.getView().mainBody" Delegate=".x-grid3-cell" ShowDelay="0"
                                                    TrackMouse="true">
                                                    <Listeners>
                                                        <Show Fn="showTip" />
                                                    </Listeners>
                                                </ext:ToolTip>
                                            </ToolTips>
                                        </ext:GridPanel>
                                    </Items>
                                </ext:Panel>
                            </ext:LayoutRow>
                        </Rows>
                    </ext:RowLayout>
                </Items>
            </ext:Panel>
        </Items>
    </ext:TabPanel>
</asp:Content>

Hope this will help my friends.







Sunday, October 24, 2010

Gridview RowEditing or RowDeleting event fires twice problem

Problem:
When working with ASP.Net Gridview control's RowEditing or RowDeleting events, it fires twice if image is used in Edit or Delete CommandField. Many ASP.Net developers face this problem while working with Gridview controls. There is many post in different forum on this problem.

Solution:
To solve this problem convert CommandField to TemplateField and add an ImageButton to show your Edit or Delete image.

Example Code:


<asp:TemplateField HeaderText="Edit">
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Edit" ImageUrl="~/Image/admin/edit.gif" Text="Edit" />
ItemTemplate>
asp:TemplateField>

Thanks.

Tuesday, September 7, 2010

Introduction to Balanced Scorecard(BSC)


The balanced scorecard (BSC) is a strategic planning and performance management tool. It was originated by Drs. Robert Kaplan (Harvard Business School) and David Norton as a performance measurement framework. This added strategic non-financial performance measures to traditional financial metrics to give managers and executives a more 'balanced' view of organizational performance.
The balanced scorecard has evolved from its early use as a simple performance measurement framework to a full strategic planning and management system. It provides a framework that not only provides performance measurements, but helps planners identify what should be done and measured. It enables executives to truly execute their strategies.
 It is extensively used in business and industry, government, and nonprofit organizations worldwide to align business activities. It improves internal and external communications, and monitor organization performance against strategic goals.
It is perhaps the best known of several such frameworks.  It was widely adopted in English speaking western countries and Scandinavia in the early 1990s.
Perspectives
The four "perspectives" proposed were:
Financial: encourages the identification of a few relevant high-level financial measures. Timely and accurate funding data will always be a priority, and managers will do whatever necessary to provide it. In fact, often there is more than enough handling and processing of financial data. With the implementation of a corporate database, it is hoped that more of the processing can be centralized and automated.
Customer: Recent management philosophy has shown an increasing realization of the importance of customer focus and customer satisfaction in any business. These are leading indicators: if customers are not satisfied, they will eventually find other suppliers that will meet their needs.
Internal Business Processes: This perspective refers to internal business processes. Metrics based on this perspective allow the managers to know how well their business is running, and whether its products and services conform to customer requirements (the mission).
Learning and Growth: This perspective includes employee training and corporate cultural attitudes related to both individual and corporate self-improvement. In a knowledge-worker organization, people -- the only repository of knowledge -- are the main resource. In the current climate of rapid technological change, it is becoming necessary for knowledge workers to be in a continuous learning mode.
Balance Scorecard