[Dojo-interest] ComboBox and FilteringTable

Tom Trenka dojo-interest at dept-z.com
Mon Jan 29 14:36:57 MST 2007


If I remember correctly, you can already do that with event.connect.  But you
can always simply overwrite the method (as Dustin mentions).

This is JavaScript after all.  Everything is mutable.

trt


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
> 
> 

-- 
View this message in context: http://www.nabble.com/ComboBox-and-FilteringTable-tf3137478.html#a8698368
Sent from the Dojo mailing list archive at Nabble.com.



More information about the Dojo-interest mailing list