javascript - Smartclient GWT making a ListGridRecord field editable using a custom DataSource -


We are using the library (see Smartclit GWT). I have a ListGrid UI that when you click on a record field,

The difference is that I am using my own custom GWT RPC services and manually adding the List Grid record to my datasource and I see my records but the fields are not editable when clicked. I have a custom datasource Execute fetch method using've override correctly.

Is there some special processing, which is using the example XML DataSource which creates listgrid spaces to set it to make it properly editable?

For example, I'm just using CountryXMLDS.java, except for an example I'm adding a custom record (and I've removed all the fields but the population fields that I want to make editable ). I see that my record is visible, but when the record is clicked, the field is not editable.

  ListGridField PopulationField = New ListGridField ("Population", "Population"); PopulationField.setType (ListGridFieldType.INTEGER); PopulationField.setCanEdit (true); Country Grid. Setfield (population field); CountryGrid.setCanEdit (true); CountryGrid.setEditEvent (ListGridEditEvent.CLICK); ListGridRecord Records = New ListGridRecord (); Record.setAttribute ("Population", "5"); . CountryXmlDS.getInstance () addData (records); Whatever the problem, it is not in the details that you shared.  

  1. Ensure that you are calling SetDataSource () on ListGrid with your DataSource

  2. Make sure that the name matches the data source in the field field in your ListGrid field.

  3. Ensure that you have the primary key declared in the data source

    <
  4. The way of the shotgun: Override the list grid codedit () and return to whatever you want - this field. Overrides all declarative settings such as canEdit.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -