Title: chain combo inline editor Post by: putusundika on August 08, 2012, 08:10:51 PM how can i make a chain combobox inline editing ? for common sample in datagrid : city | country.
city load database. but after selection on city, combobox on country will displaying only related item from city. i've read combo-tree sample, but still dont know how to implement it to inline editor with separate column. best regards putu Title: Re: chain combo inline editor Post by: stworthy on August 09, 2012, 06:10:54 PM It is similar with this tutorial http://www.jeasyui.com/tutorial/datagrid/datagrid15.php.
To solve your issue, define two column with 'combobox' editor: city and country. In the city combobox bind 'onChange' event, in which get the new city value and then reload the country combobox data. The code looks like this: Code: $('#dg').datagrid({ Title: Re: chain combo inline editor Post by: putusundika on August 18, 2012, 05:46:10 AM hii..
i'ved try this but not working. inline edit, i have 2 column editor, partname (combobox) and quantity(numberbox). quantity will show the last quantity of selected partname. so, actualy it's not a editor. but i dont know how to do that. Thats why i try with editor (numberbox) . but not working. please help me, there must be something wrong in mycode below. Code: function tagData(){ best regards Title: Re: chain combo inline editor Post by: stworthy on August 20, 2012, 02:07:01 AM Please refer to this example: http://jsfiddle.net/Ynkyq/
|