I’ve seen this problem brought in discution (more or less clearly) in 2 threads … but being so vague I think it was hard to answer :))
I’ll try to be as clear as I can:
Problem:
The Filter Button (the one with the fuunel.png icon) multiplies directly with the number of HLayout/VLayout used.
The big problem apears when the ListGrid is resized because one of the Filter Buton moves over the filter fields.
Here is the code for 1 multiplicated button:
contactsData = [
{salutation:"Mr", firstname:"John", lastname:"Black"},
{salutation:"Ms", firstname:"Kathy", lastname:"Whitting"},
{salutation:"Mrs",firstname:"Gwen",lastname:"Glover"}
]
isc.DataSource.create ({
ID:"contactsDS",
fields: [
{change:"isc.say(value)", name:"salutation",title:"Title"},
{name:"firstname",title:"First Name"},
// {name:"lastname", title:"Last Name", hidden:true},
{name:"lastname", title:"Last Name"},
],
clientOnly: true,
testData: contactsData
})
isc.ListGrid.create ({
ID: "contactsList",
dataSource:contactsDS,
width:"50%",
alternateRecordStyles:true,
showFilterEditor: true,
autoFetchData: true
});
isc.HTMLPane.create({
ID:"helpCanvas",
contents: "demoApp_helpText.html",
overflow:"auto",
showResizeBar: true,
width: "50%",
padding:10
});
isc.HLayout.create({
width: "100%",
height: "100%",
members: [
helpCanvas,
contactsList
]
});
And here is some screenshots:
First, when I load the page:
When I resized it:
And here 2 snapshoots of Developer Console:
isc_Button_5 and isc_Button_10 are the filter Butons
isc_Button_5 is the one that moves into First Name filter input when the list grid is resized
First, before resize:
After, resize:
Thanks,
John