Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
423
ultrawebgrid change row color onload depending on field contents - with javascript
posted

Hi,

At server-side I can change the color of a row  in the initializerow (Depending on a field called line color), how can I do this at Client-side with javascript?, I though the initializerowhandler event does the same but it is not working or being called (ultrawebgrid with ajax enabled).

my record is:  productcode, linecolour

if linecolor is green then the row color should be green.  ideally evereytime the ultrawebgrid refreshes it should populate the grid with those specific row colors.

Your help would be appreciated.

Fed. 

  • 423
    Suggested Answer
    posted

    Found it!!!

    the initialize_row of the server side will be called automaticall everytime I do my

    gridLPC.invokeXmlHttpRequest(gridLPC.eReqType.Refresh,

    null, "");

    despite de fact that I do oEvent = cancel; after the previous line.

    funny thing is then, where is the initializerowhandler event in javascript called (just for curiosity?