Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by tion P on Oct 07, 2008 22:07
open dhtmlx forum
Re: How can i set the bold status ingrid combobox when it was changed

Addition Question :


Thanks for your answer.

The bold status means  text Bold.

According to  follows my test source codes, select2 column does not change text Bold immediately like select1


select2 will change when I click another place...but I want to change immediatly when I choice "y" or "n"  like select1 column

 

Please Let me know how to do..

 

If you don't understand my means , ask me again..... 

 

Thanks for your advise....



test.xml

<?xml version="1.0" encoding="UTF-8" ?>
  <rows>
  <head>
      <column id='select1' width='100' type='co'>select1
          <option value='Y'>Y</option>
          <option value='N'>N</option>
      </column>
      <column id='select2' width='100' type='combo' source='select_yn.xml' editable='true'>select2
      </column>
  </head>
  <row>
    <cell>Y</cell>
    <cell>N</cell>
  </row>
  </rows>

select_yn.xml

<?xml version="1.0" encoding="UTF-8" ?>
  <complete>
          <option value='Y'>Y</option>
          <option value='N'>N</option>
  </complete>



Answer by Support
:

Which bold status did you mean ?

In case of DataProcessor and "combo"  excell it is a correct behaviour.  Editing stops  when "enter" or  "tab"  key is  pressed. So,  the value is set and sent to the server only  in this case.



Question by tion P :

I'm testing the combobox in grid.

When I change the value in grid combobox, if i don't move focus from grid to another component(place), row does not changes the bold status.
Now i'm set grid values from column's source option.
If I set grid values through select & option, it was normally working.

let me know how can i solve the problem.
thanks in advance.



Answer posted by Support on Oct 08, 2008 03:48
The "select1" and "select2" uses different editors, with different logic. 

"co" editor closed when item selected from the list of options
"combo" editor not closed when item selected from the list of options, it closed only when focus moved to different cell ( tab, enter, key click outside )

For both editors, row marked as bold only after editor closed ( until editor not closed, change is not applied yet )

P.S. - Full version of KB http://dhtmlx.com/docs/products/kb/index.php , provides ability to reply on existing post.