Hi Team,
I am using PickTreeItem and whenever i try to select one record, it is selecting the record below the selected on. Please see the attached document.
PickTreeItem is being built using the two data sets. upon selection of data set type, i am displaying the records under that data set.
My PickTreeItem Code for populating the data:
DSResponse dsResponse = new DSResponse();
List<DataSet> retList = new ArrayList<DataSet>();
List<PropertyGroup> pgList = propertyGroupService.getMyGroups(userId);
if (pgList != null && pgList.size() > 0) {
retList.add(new DataSet("group", "My Groups", "group", null, true, false));
for (PropertyGroup pg : pgList) {
DataSet ds = new DataSet(pg.getId().toString(), pg.getGroupname(), "group", "group", false, true);
retList.add(ds);
}
}
List<Company> companyList = companyService.findByUser(userId);
if (companyList != null && companyList.size() > 0) {
retList.add(new DataSet("company", "My Companies", "company", null, true, false));
for (Company c : companyList) {
DataSet ds = new DataSet(c.getCompanyname(), c.getCompanyname(), "company", "company", false, true);
retList.add(ds);
}
}
dsResponse.setData(retList);
Code from EntryPoint:
PickTreeItem propertyPickTree = new PickTreeItem();
propertyPickTree.setShowTitle(false);
propertyPickTree.setFetchMissingValues(false);
propertyPickTree.setLoadDataOnDemand(false);
propertyPickTree.setWidth(200);
propertyPickTree.setDefaultValue("Select Type");
propertyPickTree.setDataSource(DataSource.get("pro pertyTypeSelect"));
propertyPickTree.setDisplayField("name");
propertyPickTree.setValueField("value");
propertyPickTree.setTitle("Select: ");
propertyPickTree.addChangedHandler(new ChangedHandler() {
@Override
public void onChanged(ChangedEvent event) {
String value = (String) event.getValue();
String[] vals = value.split("~");
Criteria c = new Criteria();
c.addCriteria("id", vals[0]);
c.addCriteria("type", vals[1]);
propertyListGrid.fetchData(c);
}
});
I was trying to see if this functionality works fine in Show case and found a issue under Grid section of showcase.
Click on icon next to Copy & Paste -- so that the tree of Copy & Paste will get expanded.
Now to try to click on any of the items under Grid section.Item below our selection will get expanded. Could you check
Not sure, if my issue with picktreeitem has relationship to this issue, but could you confirm.
Browser : Google Chorme
SmartClient Version: v8.3p_2013-04-22/Pro Deployment (built 2013-04-22)
SmartGWT Pro Version : 3.1
I am attaching the screen shots of picktree issue.
Regards,
Srihari Gouru.
I am using PickTreeItem and whenever i try to select one record, it is selecting the record below the selected on. Please see the attached document.
PickTreeItem is being built using the two data sets. upon selection of data set type, i am displaying the records under that data set.
My PickTreeItem Code for populating the data:
DSResponse dsResponse = new DSResponse();
List<DataSet> retList = new ArrayList<DataSet>();
List<PropertyGroup> pgList = propertyGroupService.getMyGroups(userId);
if (pgList != null && pgList.size() > 0) {
retList.add(new DataSet("group", "My Groups", "group", null, true, false));
for (PropertyGroup pg : pgList) {
DataSet ds = new DataSet(pg.getId().toString(), pg.getGroupname(), "group", "group", false, true);
retList.add(ds);
}
}
List<Company> companyList = companyService.findByUser(userId);
if (companyList != null && companyList.size() > 0) {
retList.add(new DataSet("company", "My Companies", "company", null, true, false));
for (Company c : companyList) {
DataSet ds = new DataSet(c.getCompanyname(), c.getCompanyname(), "company", "company", false, true);
retList.add(ds);
}
}
dsResponse.setData(retList);
Code from EntryPoint:
PickTreeItem propertyPickTree = new PickTreeItem();
propertyPickTree.setShowTitle(false);
propertyPickTree.setFetchMissingValues(false);
propertyPickTree.setLoadDataOnDemand(false);
propertyPickTree.setWidth(200);
propertyPickTree.setDefaultValue("Select Type");
propertyPickTree.setDataSource(DataSource.get("pro pertyTypeSelect"));
propertyPickTree.setDisplayField("name");
propertyPickTree.setValueField("value");
propertyPickTree.setTitle("Select: ");
propertyPickTree.addChangedHandler(new ChangedHandler() {
@Override
public void onChanged(ChangedEvent event) {
String value = (String) event.getValue();
String[] vals = value.split("~");
Criteria c = new Criteria();
c.addCriteria("id", vals[0]);
c.addCriteria("type", vals[1]);
propertyListGrid.fetchData(c);
}
});
I was trying to see if this functionality works fine in Show case and found a issue under Grid section of showcase.
Click on icon next to Copy & Paste -- so that the tree of Copy & Paste will get expanded.
Now to try to click on any of the items under Grid section.Item below our selection will get expanded. Could you check
Not sure, if my issue with picktreeitem has relationship to this issue, but could you confirm.
Browser : Google Chorme
SmartClient Version: v8.3p_2013-04-22/Pro Deployment (built 2013-04-22)
SmartGWT Pro Version : 3.1
I am attaching the screen shots of picktree issue.
Regards,
Srihari Gouru.