jQWidgets Forums
jQuery UI Widgets › Forums › Editors › Button, RepeatButton, ToggleButton, LinkButton › ButtonGroup in the NavigationBar
Tagged: javascript input, jQuery Input
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 11 years, 2 months ago.
-
Author
-
Hello!
I made a Navigationbars
The content includes the first one I want buttonroup.
But the button does not appear, only the input part
If you put all the perfect addition for navigationbars<body class='default'> <div id='jqxWidget' style="float: center;"> <div id='jqxNavigationBar'> <div>Munkalap adatok</div> <div><ul> <div id="input"> <input type="text" /> <div id="search"> <img alt="search" width="16" height="16" src="images/search_lg.png" /> </div> </div> <div id="addr"> <input type="text" id="addr"> </div> <div id="tch"> <input type="text" id="tch"> </div> <br/> <div style="margin-top: 25px; font-size: 12px; font-family: verdana;" id="orderInfo"></div> </ul> </div> </div> </div>
Script
$(document).ready(function () { $("#jqxNavigationBar").jqxNavigationBar({ width: 400, height: 430, expandMode: 'toggle', expandMode: 'multiple', expandedIndexes: [2]}); var ml_load = { datatype: "json", datafields: [ { name: 'ml_num'}, { name: 'address'}, { name: 'city'}, { name: 'tch'} ], url: 'cascadingcombobox_data.php', cache: false, async: false }; var dataAdapter = new $.jqx.dataAdapter(ml_load, { loadComplete: function () { // get data records. var records = dataAdapter.records; var record = records[0]; $("#addr").val(record.address); $("#tch").val(record.tch); } }); var ordersAdapter = new $.jqx.dataAdapter(ml_load); // create jqxInput $("#input").jqxInput({ placeHolder: "Munkalapszám...", height: 23, width: 200, minLength: 1 }); $("#addr").jqxInput({ placeHolder: "cím...", height: 23, width: 250, displayMember: 'address', minLength: 1 }); $("#tch").jqxInput({ placeHolder: "technikus...", height: 23, width: 250, displayMember: 'tch', minLength: 1 }); $("#search").bind('click', function (event) { var value = $("#input").val(); ml_load.data = {ml_num : value}; dataAdapter.dataBind(); if (theme == "black" || theme == "darkblue" || theme == "shinyblack") { $("img")[0].src = "images/search_white_lg.png" } }); });
Hi szoron,
There is no button in the provided HTML or JavaScript code.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comSorry not ButtonGroup.
Correct is InputGroupI would like to
Hi szoron,
To add an Input Group, you should have a container DIV tag. Inside that DIV tag, you should add Input and another DIV tag with IMG tag inside it. Example: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxinput/inputgroup.htm?arctic
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.