1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    4
    Vote Rating
    0
    TheLord is on a distinguished road

      0  

    Default RequestBuilder RequestData is ignored when using a loader

    RequestBuilder RequestData is ignored when using a loader


    I've got some problem with RequestBuilder:
    The value of the method setRequestData(..) is ignored when I use it for populating a grid.

    it only sends "SortDir=none" or nothing, depening on loader.setRemoteSort(..)

    How can I make the loader to send the correct requestData instead of overwriting the requestbuilder's requestData?

    Code:
    		RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
    				"http://localhost/index.php");
    
    		builder.setRequestData(requestDoc.toString());
    
    		builder.setHeader("Content-Type", "application/x-www-form-urlencoded");
    
    		HttpProxy proxy = new HttpProxy(builder);
    
    		// need a loader, proxy, and reader
    		XmlReader reader = new XmlReader(type);
    
    		final BaseListLoader loader = new BaseListLoader(proxy, reader);
    		loader.setRemoteSort(false);
    	
    		final ListStore<ModelData> store = new ListStore<ModelData>(loader);
    
    		grid = new EditorGrid<ModelData>(store, cm);
    
    	
    		grid.setAutoExpandColumn("title");
    		grid.addPlugin(columnConfig);
    
    		grid.addListener(Events.CellClick, new Listener<GridEvent>() {
    			public void handleEvent(GridEvent ge) {
    				System.out.println("CellClicked");
    				String value = store.getAt(ge.rowIndex).get("epg_longtext");
    				if (value == null)
    					value = store.getAt(ge.rowIndex).get("epg_shorttext");
    
    				textWidget.setValue(value);
    
    			}
    		});
    
    		grid.setBorders(true);
    		grid.setAutoExpandColumn("title");
    		loader.load();

  2. #2
    Ext User
    Join Date
    Jan 2008
    Posts
    4
    Vote Rating
    0
    TheLord is on a distinguished road

      0  

    Default


    Yeah... I got it... made my ohne HTTPProxy... modified the existing one a little bit

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar