Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jul 2007
    Location
    ha noi
    Posts
    11

    change the color of fields and display images(up,down)

    hi all
    in the example demo(Microsoft ASP.NET AJAX Integration) i have to make what for the color of the fields change when the value fields change and add images(up,down).(the example demo HTML is good ).
    thanks.

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi, there are many things you could do to customize your application.

    In example starting from the ASP.NET AJAX demo you could add cell highlighting simply appending to the formatOT method these lines:


    Please check the demo sources for others examples of customization and get back if you have any doubt.

  3. #3
    Member
    Join Date
    Jul 2007
    Location
    ha noi
    Posts
    11
    thanks Mone.
    i can change the color fo fields as the example demo, but i dont know to add images(Up,Down) in to field when the value another field change.
    as sources demo(HTML) :<span source="lightstreamer" table="1" item="'+i+'" field="16"><img src="images/spacer_4px.gif" width="20" height="8" border="0"></span>
    i tried to make in ReorderList of the example demo asp.Net Ajax but it had error?
    how do i format the field image?

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    What you've done is to add a cell to your table, but any cell you add should have a correspondant field.

    field="16"
    In the case of the HTML demo the field number 16 is a field added in a callback and contains the html of the img (eg: <img src="arrow.gif" />).




    item="'+i+'"
    Moreover in that demo the html of the cells is made with a for statement so the i is used to set at any cycle a different item number. The ASP.NET demo does not have such logic.



    I advice you to read the "Web Client Dev.pdf" and "Web Client Tutorial.pdf" files located in the distribution under LS_HOME/DOCS-SDKs/sdk_client_web/doc/ and this post: http://www.lightstreamer.com/vb/showthread.php?t=49

    Hope that helps.

  5. #5
    Member
    Join Date
    Jul 2007
    Location
    ha noi
    Posts
    11
    thanks Mone.
    I could add images(up,down). because i dont remember some of the code lines :
    lsTable.setPushedHtmlEnabled(true) so images didnt appear(url is false).
    thanks you for detail info.

  6. #6
    Member
    Join Date
    Feb 2009
    Location
    Johannesburg
    Posts
    2

    Is Pushing of the image field necessary?

    I dont understand the code fully.

    For the images to work properly, does the field need to be pushed from the server?

  7. #7
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    no, it is not necessary that the image field is pushed by the server:

    all you need to do is to prepare a cell for your extra field (ie a cell with a field name/index that differs from fields sent by the server; note the # in the name of the field, it can be useful if you create you table "fetching" the schema from the html fields, see table constructors for details, eg OverwriteTable)



    set your table to push html values through the setPushedHtmlEnabled method (please read carefully the documentation of such method)



    and finally put the html for your image in the table



    this is just a basic example, you could obviously use other approaches to show your image

  8. #8
    Member
    Join Date
    Mar 2010
    Location
    Usa
    Posts
    1
    Being a student of Computer Sciences, this forum has been really helpful for me. Let's see what i'll get. Keep up the good work.

  9. #9
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    Thanks Billy!

    Cheers,

    Alessandro

 

 

Similar Threads

  1. Replies: 2
    Last Post: June 7th, 2012, 02:49 PM
  2. Replies: 1
    Last Post: May 25th, 2012, 10:03 AM
  3. Will session id change when connection mode change?
    By LS_Developer in forum Client APIs
    Replies: 3
    Last Post: March 6th, 2012, 09:58 AM
  4. Replies: 1
    Last Post: November 2nd, 2009, 05:55 PM
  5. Replies: 4
    Last Post: March 19th, 2008, 11:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 04:16 PM.