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. Can't catch write event after store.save() with create action -


i'm trying handle event after creating new record extjs store , saving server. have problem - write event firing after update action. documentation says:

@event write fires if server returns 200 after ext.data.api.actions crud action. success of action determined in result['successproperty']property (note restful stores, simple 20x response sufficient actions "destroy" , "update". "create" action should should return 200 along database pk).

now i've such response server: [{"tid": 5, "action": "citygrid", "type": "rpc", "method": "create", "result": {"msg": "saved", "data": {}, }}]

i guess adding database.pk of created object server response should resolve problem i've no idea how it. i've tried ... "data": {"id":my_object.id} no effect.

this example: http://dev.sencha.com/deploy/dev/examples/writer/writer.html creating return this:

{     "success":true,     "message":"created record",     "data": {"first":"sdfds","last":"sdfsdf","email":"asd@sdfs.sd","id":10} } 

so return store record new object in reader.root property.


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 -