Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 05, 2007 10:40
open dhtmlx forum
Is there a way to set the row style for a single row? I tried setRowTextStyle() but nothing happened. What I...

Is there a way to set the row style for a single row? I tried setRowTextStyle() but nothing happened. What I'd like is if the last line of the table is a totals row to be able to draw a line above and below or for the first row to have a line at the top to differentiate from the header row.
Answer posted on Mar 05, 2007 10:41

You can specify additional css settings from init. xml

            <row  style="border:1px solid red"

or

            <row  class="a_class"

            where a_class - is a css class name

 

setRowTextStyle must work as well, but it need to be called after XML loaded

            mygrid3.setOnLoadingEnd(function(){

                                   mygrid.setRowTextStyle(2,"color:red;border:1px solid gray;")

                                   });

            mygrid3.loadXML("../grid.xml");
Answer posted by Stanislav (Support) on Dec 01, 2014 00:10

Not much can be said in addition to the reply above, but you also can check autocomplete with ajax and javascript ajax upload file and find out what we have probably missed in our explanation.