mercredi 1 octobre 2014

sencha app watch to trigger build

EventManager is now deprecated; what replaces it?



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



    EXTJS-15318
    .

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







  2. Default EventManager is now deprecated; what replaces it?



    EventManager is now deprecated; what replaces it?





    The API says Ext.EventManager is deprecated: http://ift.tt/1wZvdCA. So what, if anything, has replaced it?

    I was going to use it to listen to onWindowUnload events. Seems like something that could (should?) be part of Ext.Application. If there's a .launch() method, why not have an .unload() method too?

















  3. Default







    This should work:


    Code:



    Ext.get(window).on('unload', this.onUnload, this);

    But an application-level event and/or template method would be better.













EventManager is now deprecated; what replaces it?

Extjs Store.data.maintainindicies

Hello,

I am having a problem when I add data to a store and then remove part of the store with the remove method. That the remaining rows keep their old indexes causing my reselection function that adds a custom css class to mess up. Is there anything that I could do about the maintaining indexs config?


Thanks again.






Extjs Store.data.maintainindicies

Grid without vertical scrollbar

[unable to retrieve full-text content]I would like to have a grid with hidden vertical scrollbar but still having an ability to scroll vertically by mousewheel. When I set Code:...



Grid without vertical scrollbar

Error when cloning a phantom record (only in debug version)



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







  2. Default Error when cloning a phantom record (only in debug version)



    Error when cloning a phantom record (only in debug version)





    Ext version tested:

    • Ext 5.0.2 rev 1381 (Nightly 2014-09-21)


    Browser versions tested against:DOCTYPE tested against:Description:

    • When you clone a phantom record using "debug" libs (eg: "ext-debug.js"), you get an Exception

    • Ext.data.Model.constructor() throws an Exception because the record being copied contains an ID

    • See code below for the code that throws the exception



    Code:



    //<debug>
    if (dataId) {
    Ext.Error.raise('The model ID configured in data ("' + dataId + '") has been rejected by the ' + me.fieldsMap[idProperty].type + ' field converter for the ' + idProperty + ' field');
    }
    //</debug>

    Steps to reproduce the problem:

    • Load a debug version of Ext JS 5.0.2


    The result that was expected:

    • The record is cloned as a new phantom record


    The result that occurs instead:

    • An exception is thrown ('The model ID configured in data ("' + dataId + '") has been rejected by the ' + me.fieldsMap[idProperty].type + ' field converter for the ' + idProperty + ' field')


    Note: the Fiddle does not show the bug because it is not a "debug" build.

    Is there a way to load a "debug" build with Fiddle? The file that Fiddle loads is called "ext-all-debug.js", but it has no debug code inside!













Error when cloning a phantom record (only in debug version)

Production built and singleton requirement

Hi everybody.

I have an issue with the production built. Others ares ok.

In my app.js, I have this :



Code:



Ext.application({ name: 'MyApp',




requires:
[
'MyApp.util.Config',
'Ext.MessageBox',
'MyApp.view.Main',
'Ext.data.proxy.LocalStorage'
],
...

and this file contains


Code:



Ext.define('MyApp.util.Config',
{
singleton : true,
config :
{

apiUrl : 'http://www.myapp.dev/',
...

Lots of store or controllers use this


Code:



MyApp.util.Config.getApiUrl():

But in production built, it seems that this file is not loaded before use or anything like this.

I have checked the app.js from prod and the file is included.

But when I launch the prod app, it fails

Does anyone has a clue on this ?

I certainly missed a litlle configuration.

Thx.


Sylvain






Production built and singleton requirement

ExtJS 4 and ASP.Net - renderTo on MasterPage

Hello,

I have a problem with the renderTo property while using it with asp.net master pages, and my ext js code is on a separated file. The problem is that the panel do not render.


Extjs.js



Code:



var myPanel = Ext.create('Ext.TabPanel', {
renderTo: 'myDivId',
...
});

home.aspx


Code:



<asp:Content ID="Content2" ContentPlaceHolderID="cphHeader" runat="server">
<script type="text/javascript" src="Extjs.js"></script>
</asp:Content>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="myDivId">
</div>
</asp:Content>

If i use like this, don't work but if put my all the javascript code inside the script tag on the aspx file, works just fine.

Code:



<script type="text/javascript">
var myPanel = Ext.create('Ext.TabPanel', {
renderTo: 'myDivId',
...
});
</script>

Someone knows this problem ? renderTo is not finding my DIV by the ID if the code is not on the same file, how can I resolve this ?

thanks






ExtJS 4 and ASP.Net - renderTo on MasterPage