Categories | Question details Back To List | ||
How can i add text box on dhtmlxtoolbar? Hi, please can anyone tell me how can i add text box on the toolbar? i am using Dhtmlxtoolbar here. I need to Add a text box to type the text on the tool bar. please help me in solving this. Advanced Thanks uva Answer posted by Support on Aug 28, 2008 05:51 You can use LabelButton, it may contain any HTML inside it http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=4034&ssr=yes&s=toolbar%20label Answer posted by uvaraj24 on Aug 28, 2008 06:12 Hi thanks for your information, I got the text box and i tried to get the text box data using the following code xml code which i am using: <LabelButton id="0_search_text" width='150px' content="<input type='text'>" /> <ImageButton src="/tooljs/images/iconSearch.gif" height="25" width="25" id="0_search" tooltip="Search" disableImage="/tooljs/images/iconSearch_dis.gif"/> Javascript code to get the text box data: if(itemId=='0_search'){ alert('search'); alert(document.getElementById('0_search_text').value); } But i didnt get the textbox data, please can you help me. Thanks uva Answer posted by Support on Aug 28, 2008 06:22 In grid IDs are not real document IDs , you can change XML as <LabelButton id="0_search_text" width='150px' content="<input type='text' id='0_search_text' >" /> In such case your js code will work correctly Answer posted by uvaraj24 on Aug 28, 2008 06:37 Hi it's really amazing. Thanks a lot, it is is working fine uva |