mercredi 24 septembre 2014

hidden panel flicker on slidein show

I need to show a panel on a click event. The panel needs to slide into view on show and it needs to be anchored to the button once shown (the one that has the click event).

The panel config is as follows:



Code:



{
xtype: 'container',
autoScroll: true,
hidden: true,
floating: true,
shadow: false,
listeners: {
show: function(panel) {
panel.el.slideIn('r', {
easing: 'easeOut',
duration: 500
})
}
}

The panel is shown in the button's click event handler:


Code:



helpPanel.showBy(me, 'tr-br');

It works fine, except there is a quick / small flicker before the panel is shown. A bit like the panel is shown and then it is hidden before sliding into the view again.

How can I avoid that flicker? Is this the right way to implement a slide-in show?


Thank you






hidden panel flicker on slidein show

"Pinning" portlets to top of the page

Hi there,

I have another problem using the GXT portal layout.


In our application there are three portal columns. The middle one contains very many portlets (which represent activities in a workflow stream). In the left and right columns, various "widgets" can be placed.


When there are more portlets in the middle column, a scrollbar appears at the right side of the page. Scrolling down means that the whole portal is scrolled, not only the middle column. That means that the portlets in the left and right column are not visible any more when scrolling down.


Is there

- either a way to put the scrollbar only to the middle column of the portal

- or a way to "pin" the portlets to the top of the visible part of the page?


Holger






"Pinning" portlets to top of the page

mardi 23 septembre 2014

Destroying a HTMLEDITOR - Ext.form.field.HtmlEditor

[unable to retrieve full-text content]How to fix this error? 1 Open this link - http://ift.tt/1mP0iIY 2 Enter anything in HTMLEDITOR 3 Press F5 and cancel out ...



Destroying a HTMLEDITOR - Ext.form.field.HtmlEditor

How can I read nested JSON objects.

Hi experts,

I created a Store with nested JSON structures (let's call them Parent and Child). So far I can read the Root set, I actually have them displayed on a Grid, but I can't find a way to read the child objects of each parent. I did a console.log(record) -when clicking on one of the row's grid- in order to check -in Chrome- the selected record's child, I see in the log that the data object inside the record's constructor doesn't have its child objects. But in the raw object of the constructor I can see the child array and it's corresponding objects.


I have created two models, and associated them. I'm simplifying the model names and number of fields as follow:


Model 1:



Code:



Ext.define('ParentModel', {
extend: 'Ext.data.Model',
fields: [
'field1',
'field2'
],
hasMany: [{
name : 'child',
model : 'ChildModel',
associationKey : 'child'
}]
});

Model 2:


Code:



Ext.define('ChildModel', {
extend: 'Ext.data.Model',
fields: [
'childField1',
'childField2'
],
belongsTo: [{
name: 'child',
model: 'ParentModel',
associationKey: 'child'
}]
});

Store:

Code:



var data =
{
"parents" :
[{
"field1": "xyz",
"field2": "abc",
"child":
[
{
"childField1": "qwe",
"childField2": "asd"
},
{
"childField1": "rty",
"childField2": "fgh"
}
]
},{
"field1": "poi",
"field2": "lkj",
"child":
[
{
"childField1": "tgb",
"childField2": "cde"
}
]
}
]};
Ext.define( "myStore", {
extend : 'Ext.data.Store',
model : 'ParentModel',
data : data,
proxy : {
type: 'memory',
reader : {
type: 'json',
root: 'parents',
rootProperty: 'parents'
}
}
});

In this example, when selecting the first parent, I can see in that Parent record, the raw object has a Child array with 2 objects. The second Parent has also the Child array with one object. The data object has no Child array.

I can't seem to find a way to make it work. I validated the original JSON and it's ok.


The objective of the application is to have two views each one with two grids, the first view shows the list of "Parent" objects, when clicking on a row, the second view pop's up and show in the second grid the "Child" objects of the selected parent. At first I thought it was a mapping error in the second view, but then I checked the record and saw that there wasn't any child in the data object, only on the raw.


Please any advise is welcome.


Thanks in advance.


JV






How can I read nested JSON objects.

Ext.List in Bottom Position in A NavigationView

Hi,

I want to put a List at the bottom of a NavigationView, but its seems not work.

The structure of my screen is like that :

A container set to vbox layout


A Panel set docked to bottom

My List



At first, the List View is not visible, but after adding "height: 100%", the list appears but at the top of my panel.

How could I resolve it?


Thank in advance






Ext.List in Bottom Position in A NavigationView

[OPEN] Ext.device.Contacts documentation incorrect



  1. You found a bug! We've classified it as



    TOUCH-5587
    .

    We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.







  2. Default Ext.device.Contacts documentation incorrect



    Ext.device.Contacts documentation incorrect





    http://ift.tt/1mMOmr1

    Touch version tested:


    Description:


    The documentation found at http://ift.tt/1mMOmr1 appears to be incorrect.

    The documentation states the getContacts method returns an Array of contact objects. Looking at the source code found at http://ift.tt/1v7qH4C it is very clear that it does NOT return an Array of contact objects. It looks like a config object must be passed in with callback functions. The only return statements are to return false if an adequate config has not been provided.


    The example at the top of Ext.device.Contacts is also incorrect. Specifically it shows using the return results of the getContacts method as the data for a store.


    Possibly the documentation of Ext.device.Contacts was not updated when a fundamental change to the code was made?


















[OPEN] Ext.device.Contacts documentation incorrect

ID property of reference field being removed in store.remove()



  1. Thank you for reporting this bug. We will make it our priority to review this report.







  2. Default ID property of reference field being removed in store.remove()



    ID property of reference field being removed in store.remove()





    http://ift.tt/1vdSXBJ

    Select a record in the top grid, click "remove" in the bottom grid, to remove an associated record.


    The CustomId field is being set to null, this should not be happening. Our API requires the ID field to be sent to the server, so we basically need to re apply this field before calling store.sync(), this didnt happen in EXTJS 4.















ID property of reference field being removed in store.remove()