Display combine fields in gridpanel

  1. #1

    Display combine fields in gridpanel

    hi,

    In the database table I have 3 fields Firstname, Middlename, Lastname.
    How can I combined this three fields as Full name and display in gridpanel column(Fullname)?



    Vaishali Khatri
    Kintu Design PVT LTD.
  2. #2

    Re

    I advise you to concatenate fields on the database. This would depend upon the DBMS you are using

    Server Side Solution (On Database Server)

    SQL Server
    SELECT FirstName + ' ' + MiddleName + ' ' + LastName AS FullName FROM ...
    Oracle/PostgreSQL
    SELECT FirstName || ' ' + MiddleName || ' ' + LastName AS FullName FROM ...

    MySQL
    SELECT CONCAT(FirstName, ' ', MiddleName, ' ', LastName) AS FullName FROM ...
    Client Side Solution (On GridPanel)
    Could you please post the markup you are currently using so that a solution could be proposed?
  3. #3
    Hi,

    Please see the following sample (FullName grid's column)
    https://examples1.ext.net/#/GridPane...ectDataSource/
  4. #4
    Thanks
    It works now

Similar Threads

  1. Replies: 0
    Last Post: Oct 27, 2011, 10:02 PM
  2. [CLOSED] Combine script files
    By aabramov in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 05, 2011, 5:31 PM
  3. Display problem with disabled fields
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 27, 2010, 6:14 PM
  4. Replies: 0
    Last Post: Aug 16, 2010, 10:28 PM

Posting Permissions