[Dojo-interest] Re: ComboBox and FilteringTable
Jacek Pawlowski
jacek at myecho.ca
Mon Jan 29 12:52:13 MST 2007
Tom, It would be great to be able nest ComboBox inside dynamic
FilteringTable. I think it it pretty common situation with
header/details documents (e.g. Sales Orders, Invoices, POs, etc.) when
users has to choose from list of items in dynamically build table
(details of an order/invoice, etc.).
On the other hand because FilteringTable is primarily used as a view is
there any other widget which would allow nesting ComboBox inside
dynamically build table?
Thanks for the explanation.
-- jacek
Sasha Firsov wrote:
> Tom, I do not want to be too annoying, but how we can make a feature
> request to expose
> FillCell as attachable event, so the extensions like one bellow will
> be easy to attach?
>
> Thanks,
> Sasha
>
> Tom Trenka wrote:
>> Dojo widgets nested inside of a FilteringTable is not a supported feature,
>> and because of that you won't be able to do what you are attempting to do.
>>
>> To get that to work you'd have to hack the fillCell method of the widget, in
>> order to try to determine if something is supposed to be a Dojo widget--and
>> create it if it is. I didn't want to get into doing this at all, as it can
>> be pretty computationally expensive, particularly for a something that is
>> supposed to be acting as a view.
>>
>> trt
>>
>>
>> Shane O wrote:
>>
>>> which order do you do these in? Make sure you do the createWidget after
>>> you
>>> add the row to the table (stating the obvious I know)
>>>
>>> Shane
>>>
>>> On 29/01/07, Jacek Pawlowski <jacek at myecho.ca> wrote:
>>>
>>>> Hi,
>>>> My first post.
>>>> I am trying to dynamically build FilteringTable by adding rows using
>>>> store container. Something like this:
>>>>
>>>> var w=dojo.widget.byId("lines");
>>>> a = {};
>>>> a.Id = rowNo;
>>>> a.item = "<input align='right' size='3' type='text'
>>>> id='qty["+rowNo+"]' value='123' />";
>>>> w.store.addData(a);
>>>>
>>>> and it works. Now I would like to add ComboBox (or better Select
>>>> Element) as a one of the fields in dynamically build FilteringTable.
>>>>
>>>> if I write:
>>>> var combo = dojo.widget.createWidget("dojo:ComboBox",
>>>> {name:"prog",autocomplete:false,dataUrl:"/tmp/BOX_KMpIPU"},
>>>> dojo.byId("progCombo"));
>>>>
>>>> and then
>>>> ...
>>>> a.item = '<input id="progCombo">';
>>>> w.store.addData(a);
>>>>
>>>> the 'item' is displayed as normal input text box but not dojo:ComboBox
>>>>
>>>> I tried some other ideas I found on net but without luck.
>>>> regards
>>>> -- jacek
>>>>
>>>> _______________________________________________
>>>> Dojo FAQ: http://dojo.jot.com/FAQ
>>>> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>>>> Dojo-interest at dojotoolkit.org
>>>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>>>>
>>>>
>>> _______________________________________________
>>> Dojo FAQ: http://dojo.jot.com/FAQ
>>> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>>> Dojo-interest at dojotoolkit.org
>>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>>>
>>>
>>>
>>
>>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
--
2318 Kilmarnock Cr.
V7J 2Z2, Canada
North Vancouver, BC
<http://www.google.ca/maps?q=2318+Kilmarnock+Cr.,North+Vancouver,+BC,+V7J2Z2&hl=en>
*Jacek Pawlowski* <mailto:jacek at myecho.ca>
t:604.990.4346
f:604.648.9827
c:604.671.6346
*echo software systems inc.* <http://www.myecho.ca>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070129/bf4cfa96/attachment.html
More information about the Dojo-interest
mailing list