Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by 2Fast4UeXtrem on Jan 19, 2010 03:00
open dhtmlx forum
Combo: How to set the tabindex?

Hello over There!

I have got a little question, using the Combobox within a form:
How can i attach atabindex to the combo field?

At the Moment when i tab through the fields it is left out :-(


Wish you all the best and thanks fo ran answer,
2Fast
Answer posted by Alex (support) on Jan 19, 2010 07:13

Hello

combo doesn't provide a public method to set tabindex. But you can try to use the following approach:

combo.DOMelem_input.tabIndex = ...; 

Where combo is combo object

Answer posted by 2Fast4UeXtrem on Jan 19, 2010 07:20
I am using it like

<script>
                var y=new dhtmlXCombo("combo_zone_angebotstext","angebotstext",310);
                y.setComboText("<?=$angebotstext;?>");
                y.setComboValue("<?=$angebotstext;?>");
                y.loadXML("Angebotstext.xml");
                y.enableFilteringMode(true)
</script>


<div id="combo_zone_angebotstext" style="width: 310px;"></div>


So where should i took this stuff?
Answer posted by Alex (support) on Jan 19, 2010 07:45

var y=new dhtmlXCombo("combo_zone_angebotstext","angebotstext",310);

y.DOMelem_input.tabIndex = tab_index_here; 

Answer posted by 2Fast4UeXtrem on Jan 19, 2010 08:17
This works!

Thank you guy.
It is an important feature, isn't it?
Perhaps you should involve it to the API.
Answer posted by Alex (support) on Jan 19, 2010 09:31
Thank you for the idea. We'll think it over.