January 23, 2015, 12:58 pm
Browser Version: IE11.0.9600.17501
Platform: Windows 7, 64x
SC Version: : v9.1p_2014-04-08/PowerEdition Deployment (built 2014-04-08)
Steps to reproduce: Load the sample (I used isomorphic/system/reference/SmartClient_Explorer.html#replaceStyle). Click on the menu. It shouldve disabled itself but it still looks like it is enabled. If you try in another browser besides IE11, (eg firefox or chrome), when you click on the menu, it turns gray.
Code:
isc.MenuButton.create({
ID:"enableMenuSimple",
canFocus:true,
title:"Enable Simple",
cwIconSpacing:6,
showDown:false,
showFocused:false,
showEmptyMessage:false,
showRollOver:false,
autoFit:true,
baseStyle:"myHighGridCell",
align:"top",
showMenuButtonImage:false,
click:function(){enableMenuSimple.setDisabled(true);}
})
.myHighGridCell,
.myHighGridCellDark {
font-family:Verdana,Bitstream Vera Sans,sans-serif; font-size:11px; text-overflow:ellipsis;
color:blue;
border-bottom:1px solid #ffc0c0; border-top:1px solid #ffc0c0;
background-color:#ffc0c0;
}
.myHighGridCellDisabled{
color:grey;
}
↧
January 23, 2015, 4:52 pm
1. v9.1p_2014-08-24/Pro Deployment
2. Chrome 40
We are having an issue with using isc.RPCManager.exportContent() to generate a pdf file available to the user. Basically our dilemma is that when (previously) using showPrintPreview() we were using our own custom printFrame.html that among many things provides some additional css, defines the skin to use and defines other custom content. This works when using showPrintPreview(). Unfortunately when trying to use exportContent() using the same Canvas object, printFrame is not used and we lose all of our custom css. I'm assuming printFrame is only used with showPrintPreview. Is there a way to get this bootstrapped filed to be used with pdf exportContent()? Or is there a similar approach to be used for exportContent()?
For exportContent I was able to successfully use my own custom skin by defining the css in server.properties. This rendered my pdf with the correct css but I would still rather use something similar to the printFrame.html approach if at all possible. Thank you
↧
↧
January 26, 2015, 2:36 pm
SmartClient Version: v9.1p_2014-09-17/PowerEdition Deployment (built 2014-09-17)
I am using showRowNumbers() on my list grid. Works fine.
When someone operates on a group of rows I want to show the user the result of the operation, per row number as displayed in the underlying grid.
So if the user operates on 2 or 3 randomly selected rows in the grid, and a server side operation is initiated, I want to be able to tell the user that record row number 4 was good, row number 18 bad, and row number 21 good.
How can I retrieve the auto created row number from the grid, if I know the record? Is it simply the getRecordIndex( Record x) API?
Does this work even when the user has re-sorted the grid?
Thanks
↧
January 26, 2015, 2:41 pm
Shift-Tab cannot navigate back once the focus is on the FilterEditor of a Date column.
Problem can be reproduced on a slighty modified SmartClient Advanced Filter example on http://www.smartclient.com/#filterBuilderBracketFS using SmartClient Version: v9.1p_2015-01-08/Pro Deployment (built 2015-01-08) on Firefox 35 and Chrome 39.0 as follows:
Code:
isc.FilterBuilder.create({
ID:"advancedFilter",
dataSource:"worldDS",
criteria: { _constructor: "AdvancedCriteria",
operator: "and", criteria: [
{fieldName: "continent", operator: "equals", value: "Europe"},
{operator: "or", criteria: [
{fieldName: "countryName", operator: "iEndsWith", value: "land"},
{fieldName: "population", operator: "lessThan", value: 3000000}
]}
]
}
});
isc.ListGrid.create({
ID: "countryList",
width:550, height:224, alternateRecordStyles:true,
dataSource: worldDS,
showFilterEditor: true,
fields:[
{name:"countryName"},
{name:"continent"},
{name:"population"},
{name:"area"},
{name:"independence"},
{name:"gdp"}
]})
isc.IButton.create({
ID:"filterButton",
title:"Filter",
click : function () {
countryList.filterData(advancedFilter.getCriteria());
}
})
isc.VStack.create({
membersMargin:10,
members:[ advancedFilter, filterButton, countryList ]
})
// Perform the initial filter
filterButton.click();
Steps to reproduce:
1) Click on the filter editor of the column (e.g. Area) before the Date item (e.g. Nationhood) in the ListGrid and using the 'Tab' key to navigate the filter editor of the column (e.g. GDP) after the Date item.
2) Use 'Shift+Tab' to navigate back from the column (e.g. GDP) after the Date Item and the focus is stuck on the filter editor of the Date Item (e.g. Nationhood) and cannot navigate back to the filter editor of the column (e.g. Area) before the Date item.
----------------
SmartClient Version: v9.1p_2015-01-08/Pro Deployment (built 2015-01-08)
Windows 7 Firefox 34.0.5, 35.0 and Chrome 39.0.2171.99 m
↧
January 26, 2015, 3:12 pm
I would like to have different button styles for focused button and for button with mouse over.
buttonRounded style with Focused suffix is defined in default css files, but it is not used. SmartGwt sets just buttonRoundedOver style in every of these situations: Focused, Over and FocusedOver.
Is there any solution, or suggestion?
↧
↧
January 26, 2015, 6:17 pm
SmartGWT Power Edition version
I have developed an application and use Firefox. And per checking vs about:memory and find the memory usage of that URL accumulate continues from 27M to over 200M until the application halt and no response after clicking several record and loaded data from server to client.
I have already narrowed down the issue as following
I have a search form that get the list grid, when double click the record on the search result listgrid, it will open/refocus a Tab.
Inside the Tab, I use ValuesManager with add ~ 7-8 DynamicForms and ~ 100 fields, several ListGrid for child object. And when click the record in the result list grid, it will call editRecord and display the data onto the ValuesManager of the Tab.
And When I click the first record in result list grid, the memory usage go from 27 to 40 and after some callback complete, it get back to 37,... and to continue click other, it continue to increase until it go to ~ 200M or 300M (in about:memory), the application become slow response and cannot proceed any more, we need to close the browser and start the Firefox again.
We have tried closing the Tab but the memory not release in client side
So I suspect that there is some memory leakage when I use ValuesManager as well as to call editRecord() for multiple records loading. So I want to check is there any possible,
1. how can I check out the association that cannot detact after destroy?
2. how to force clear up or destroy the ValuesManager so that I can release the objects... and free up the memory?
↧
January 26, 2015, 7:33 pm
SmartGWT: v5.0p_2015-01-26 LGPL
GWT: 2.6.1
Chrome: 34.0.1847.137 (Official Build 268882)
Skin: Enterprise
Hello,
The tab images in the calendar view appear to be missing. The HTML is requesting '/sc/skins/Enterprise/images/Tab/top/*.gif' images but the directory only has *.png files.
Is anyone else seeing this?
Regards,
Harry
↧
January 26, 2015, 7:57 pm
I would like to insert a logo as a background image for the ListGrid, in a way that it would be visible whenever the user has few enough columns activated or the grid is empty.
Can you give some insight on this matter?
↧
January 26, 2015, 9:28 pm
Hi,
When a value of say 29.50 is entered, it is truncated to 29.5. Our client wants it to be set to 29.50 only. Please let me know as to how this can be done?
I tried amountPrecisionValidator.setPrecision(3/4) and amountPrecisionValidator.setRoundToPrecision(3/4). But it has not helped
Below is the datasource field and validators code.
Thank you.
FloatPrecisionValidator amountPrecisionValidator = new FloatPrecisionValidator();
amountPrecisionValidator.setPrecision(4);
amountPrecisionValidator.setValidateOnChange(true);
FloatRangeValidator amountRangeValidator = new FloatRangeValidator();
amountRangeValidator.setValidateOnChange(true);
amountRangeValidator.setMin(0.01F);
amountRangeValidator.setMax(100000000000.00f);
DataSourceField availAwardAmountField = new DataSourceField(ScholarshipDSConstants.AVAIL_AWARD_AMOUNT, FieldType.FLOAT, Constants.scholarship.availAwardAmountTitle());
availAwardAmountField.setAttribute(SmartGWTConstants.FORMAT, SmartGWTConstants.CURRENCYFORMAT);
availAwardAmountField.setValidators(amountPrecisionValidator, amountRangeValidator);
availAwardAmountField.setRequired(Boolean.TRUE);
addField(availAwardAmountField);
↧
↧
January 27, 2015, 1:07 am
Hi Guys,
i know the user.agent property for compiling less permutations.
I build a compile report (http://www.gwtproject.org/doc/latest/DevGuideCompileReport.html) and found permutations with the 'formfactor' : 'tablet' and 'mobile'.
Can i exclude also these permutations.
I haven't found a property for these.
Thanks for your help, bye
↧
January 27, 2015, 1:43 am
SmartClient Version: v9.1p_2015-01-02/PowerEdition Deployment (built 2015-01-02)
WB: FireFox
Hi,
I'm using a SQLDataSource to fetch data to a ListGrid. Some record data is beeing updated via services and I want to update the loaded data in the List grid only localy. The fallowing code is used.
Code:
DSResponse dsResponse = new DSResponse();
dsResponse.setData(messageRecord);
dsResponse.setOperationType(DSOperationType.UPDATE);
// dsResponse.setInvalidateCache(true);
getMassReviewPlugPresenter().getView().getMessageGrid().getDataSource().updateCaches(dsResponse);
The update works fine, but when using a filter editor. The filter state is not updated. What I mean is that the updated records should be filtered, because they not longer meet the criteria.
When I invalidate the cache, all data is fetch once again without taking any of the filter editor data into consideration. The same thing goes for the FilterBuilder.
I would like to run the updated data once again trough the filter without a server fetch. So basically only local. The same it works when you use simple DataSource.update with call.
↧
January 27, 2015, 3:48 am
If I set my browser width and height to 1072 and 371 respectively, and reload the screen, I am not able to see the grid properly. List grid has got records, still not visible. When I maximize the browser screen and reload the screen, grid appears properly.
Below grid, form is there and on left side of the screen, navigation panel is present.
How to make grid display proper for smaller browser windows??
Any properties need to set to grid??? Any ideas??
Please suggest.
Thanks in advance.
↧
January 27, 2015, 6:52 am
Version: SmartClient v100p_2014-11-02_Pro
Browsers: Chrome and Firefox
I have a TreeGrid and I am assigning custom node icons based on the data in each record by overriding the "getIcon(node)" method of the TreeGrid.
I have images available in the same folder as the primary icon images with "_drop" added to the filename for each custom icon, and have set "showCustomIconDrop" to true on the TreeGrid.
But I am still not seeing the drop icon when I hover a drop record over a node.
I have tried the TreeGrid in a stand alone page by itself to make sure there wasn't something else going on elsewhere in the layout.
In case it's relevant: I'm also overriding the "isFolder(node)" method of the Tree to return true for every node so that they are all folders and can all accept child drops. I am loading the data through a fetch to a datasource.
I have also attached a text file to this post with my full TreeGrid code.
Thanks for the help!
↧
↧
January 27, 2015, 8:12 am
Hi,
I'd like to ask, whether it is possible to achieve the same behavior for a SelectItem as it is in the HTML <select> element - search and select the option for the sequence of pressed keys.
Assume the HTML select item:
Code:
<form>
<select name="test">
<option value="cat">Cat</option>
<option value="car">Car</option>
<option value="category">Category</option>
<option value="croatia">Croatia</option>
</select>
</form>
When user press "c", even multiple times, the options started with C are repeatedly selected one by another. This is ok in both HTML and SGWT Select Item.
But when user press "cr", only in HTML Select the Croatia option is selected...
I've tried to add a keypress handler to the SelectItem and manually search for the option. This is quite dirty and only partial solution, because this doesn't work, when the picker of SelectItem is shown...
Any hint, how to get the wanted behavior in SelectItem?
SmartClient Version: SNAPSHOT_v10.1d_2015-01-20/LGPL Development Only (built 2015-01-20)
All browsers.
↧
January 27, 2015, 8:42 am
I have with the latest 4.1p power (27.01) this message:
Code:
17:40:44.014:XRP3:WARN:Log:ClassFactory.addGlobalID: ID:'$78l' for object '[Label ID:$78l]' collides with ID of existing object '[Label ID:$78l]'. The pre-existing widget will be destroyed.
This is an automatic ID, so I think this is a bug.
↧
January 27, 2015, 8:52 am
I'm getting some messages like this one:
Code:
17:49:23.072:TMR8:WARN:TextItem:isc_TextItem_2033[dateTextField]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
What could this mean?
using smartgwt 4.1p power 27.01
↧
January 27, 2015, 9:18 am
Hi all,
I would like to create a form that is reused in other parts of my application.
Coming from the world of ASP.NET I would create a UserControl but what is the SmartGWT equivalent?
- M.
↧
↧
January 27, 2015, 11:22 am
Not able to use Tab key to access table rows in a ListGrid when the visibility of the filterButton is set to hidden,
Problem can be reproduced on a slighty modified SmartClient Column Widths example on http://www.smartclient.com/#autofitColumnWidths using SmartClient Version: v9.1p_2015-01-08/Pro Deployment (built 2015-01-08) on Firefox 35 and Chrome 39.0 as follows:
Code:
isc.ListGrid.create({
ID: "countryList",
height:224, width:"100%", alternateRecordStyles:true,
autoFitWidthApproach:"both",
canTabToHeader: true,
showFilterEditor: true,
canSort:false,
headerAutoFitEvent:"doubleClick",
filterButtonProperties: {visibility:'hidden'},
data: countryData,
fields:[
{name:"countryCode", title:"Flag Thumbnail", cellAlign:"center",
autoFitWidth:true, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"},
{name:"countryName", title:"Country", autoFitWidth:true },
{name:"capital", title:"Capital"},
{name:"continent", title:"Continent"}
]
})
Steps to reproduce:
1) Click on the filter editor of the last column (e.g. Continent)
2) Use tab key to navigate and the focus still stuck on the filter editor of the last column (e.g. Continent)
Clicking on a row in the ListGrid and use Shift+Tab key does move the focus to the filter editor of the last column but using Tab key does not move the focus back into the first table row
----------------
SmartClient Version: v9.1p_2015-01-08/Pro Deployment (built 2015-01-08)
Windows 7 Firefox 34.0.5, 35.0 and Chrome 39.0.2171.99 m
↧
January 27, 2015, 12:58 pm
I am not quite sure what I am doing wrong, but for some reason TreeGrid.fetchData is producing 3 fetch requests.
Code:
public class ArchiveTree extends TreeGrid
{
public ArchiveTree()
{
setShowConnectors(true);
setLeaveSelectionCheckboxGap(false);
setHeight(269);
setSelectionType(SelectionStyle.SIMPLE);
setSelectionAppearance(SelectionAppearance.CHECKBOX);
Tree tree = new Tree();
tree.setModelType(TreeModelType.PARENT);
tree.setIdField("absolutePath");
tree.setParentIdField("parent");
tree.setIsFolderProperty("directory");
tree.setShowRoot(false);
tree.setDefaultIsFolder(true);
setDataProperties(tree);
TreeGridField name = new TreeGridField("name", "Archive");
TreeGridField size = new TreeGridField("size", "Size");
setFields(name, size);
if(DataSources.MISSION_ARCHIVE != null)
setDataSource(DataSources.MISSION_ARCHIVE);
setLoadDataOnDemand(true);
setTreeRootValue("/data/missions/");
setDataFetchMode(FetchMode.PAGED);
}
}
invoking fetchData results in the following requests
Code:
{
dataSource:"missionArchive",
operationType:"fetch",
componentId:"isc_ArchiveTree_0",
data:{
parent:"/data/missions/"
},
startRow:0,
endRow:75,
textMatchStyle:"exact",
resultTree:[ResultTree ID:isc_ResultTree_0 (dataSource: missionArchive, created by: isc_ArchiveTree_0)],
callback:{
caller:[ResultTree ID:isc_ResultTree_0 (dataSource: missionArchive, created by: isc_ArchiveTree_0)],
methodName:"loadChildrenReply"
},
willHandleError:true,
showPrompt:true,
prompt:"Finding Records that match your criteria...",
oldValues:{
parent:"/data/missions/"
},
requestId:"missionArchive$6278",
internalClientContext:{
parentNode:{
absolutePath:"/data/missions/",
children:[ResultSet ID:isc_ResultSet_9(dataSource: missionArchive, created directly)],
childCount:190,
directory:true
},
relationship:{
childDS:[DataSource ID:missionArchive],
parentDS:[DataSource ID:missionArchive],
parentIdField:"parent",
idField:"absolutePath"
},
childrenReplyCallback:{
},
fetchCount:1
},
fallbackToEval:false,
dataFetchMode:"paged",
lastClientEventThreadCode:"XRP3",
bypassCache:true
}
Code:
{
dataSource:"missionArchive",
operationType:"fetch",
componentId:"isc_ArchiveTree_0",
data:{
parent:"/data/missions/"
},
textMatchStyle:"exact",
resultTree:[ResultTree ID:isc_ResultTree_0 (dataSource: missionArchive, created by: isc_ArchiveTree_0)],
callback:{
caller:[ResultTree ID:isc_ResultTree_0 (dataSource: missionArchive, created by: isc_ArchiveTree_0)],
methodName:"loadChildrenReply"
},
willHandleError:true,
showPrompt:true,
prompt:"Finding Records that match your criteria...",
oldValues:{
parent:"/data/missions/"
},
requestId:"missionArchive$6279",
internalClientContext:{
parentNode:{
absolutePath:"/data/missions/",
children:[ResultSet ID:isc_ResultSet_9(dataSource: missionArchive, created directly)],
childCount:190,
directory:true
},
relationship:{
childDS:[DataSource ID:missionArchive],
parentDS:[DataSource ID:missionArchive],
parentIdField:"parent",
idField:"absolutePath"
},
childrenReplyCallback:{
},
fetchCount:2
},
fallbackToEval:false,
dataFetchMode:"paged",
lastClientEventThreadCode:"XRP3",
bypassCache:true
}
Code:
{
dataSource:"missionArchive",
operationType:"fetch",
componentId:"isc_ArchiveTree_0",
data:{
parent:"/data/missions/"
},
textMatchStyle:"exact",
resultTree:[ResultTree ID:isc_ResultTree_0 (dataSource: missionArchive, created by: isc_ArchiveTree_0)],
callback:{
caller:[ResultTree ID:isc_ResultTree_0 (dataSource: missionArchive, created by: isc_ArchiveTree_0)],
methodName:"loadChildrenReply"
},
willHandleError:true,
showPrompt:true,
prompt:"Finding Records that match your criteria...",
oldValues:{
parent:"/data/missions/"
},
requestId:"missionArchive$62710",
internalClientContext:{
parentNode:{
absolutePath:"/data/missions/",
children:[ResultSet ID:isc_ResultSet_9(dataSource: missionArchive, created directly)],
childCount:190,
directory:true
},
relationship:{
childDS:[DataSource ID:missionArchive],
parentDS:[DataSource ID:missionArchive],
parentIdField:"parent",
idField:"absolutePath"
},
childrenReplyCallback:{
},
fetchCount:3
},
fallbackToEval:false,
dataFetchMode:"paged",
lastClientEventThreadCode:"TMR4",
bypassCache:true
}
The datasource is a custom datasource, and I am unsure what the last two requests being generated are for exactly? They seem unnecessary, as the first request has not yet returned any results, and the last two do not provide start and end rows. What am I missing here, as datasource ends up sending the entire top level to the last two requests which is exactly what I am trying to avoid.
↧
January 27, 2015, 1:29 pm
Hi,
We have a question about how to press multiple keys to search SelectItem result. For example, if we press "h" and "e" in a sequence when the Select Item list is shown, we want the selection move to the first entry start with "he". However, in current SelectItem, by pressing "h", the selection move to the first entry start with "h". Then if we press "e", the selection move to the first entry start with "e".
We notice that we can achieve this by using a ComboboxItem. However, we are wondering if there's any way we can do to have this behavior on a regular SelectItem? We are using SmartClient_v8.3p_2014_10_18.
Thanks!
Robin
↧