Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

extjs - Ext.js Editable TreeNodes -


is possible make treenodes (i.e. folders) editable user? see there's option called editable in treenode class couldn't working or find examples on usage.

my other quest place input box in nodes so, user can enter numbers each item. how can it?

adding new ext.tree.treeeditor(yourtree); enough make tree editable.

but can define more using other 2 contructors parameters:

var te = new ext.tree.treeeditor(tree, new ext.form.numberfield({     allowblank: false,     blanktext: 'a number required' }), {     editdelay: 100,     revertinvalid: false });  te.on("complete", function(node) {     alert(node.startvalue + ' -> ' + node.editnode.text); }); 

there used numberfield can enter numbers in there.

and can restrict edition using editable property of every treenode (yes, 1 mentioned), or using beforestartedit event of treeeditor:

te.on('beforestartedit', function(ed, boundel, value) {     if (ed.editnode.leaf)       return false; }); 

at jsbin.com/extjs-treeeditor/2 have live example made based on sencha's checkbox treepanel example, diference can edit folder nodes on example.

just select folder , click again on folder, editor (a numberfield) should appear above folder's name.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -