HZNM.COM
welcome to my space
X
Search:  
 HOME   new record in grid
new record in grid
Published by: anonym 2010-03-11
Welcome to:hznm.com

  • NEW ALBUM: Ingrid Michaelson - Be Ok - Ingrid Michaelson - Zimbio::
    I was actually partial to Ingrid Michaelson's new album. After one of my friends introduced her music to me, it was inevitable that I'd like her music.
    http://www.zimbio.com/Ingrid+Michaelson/articles/24/NEW+ALBUM+Ingrid+Michaelson+Ok
    HOME
    Hello,

    I am trying to create an empty grid initially. Then i would like to be able to add new rows; I am not sure what is wrong with my code here...but it just doesnt seem to work.

    Any insights will be helpful. Thank you.

    var ftpConfiguration = new Ext.data.Record.create([{
    name: 'server'
    }, {
    name: 'username'
    }, {
    name: 'password'
    }, {
    name: 'path'
    }]);

    var emptyData = {
    'resultset' :
    };

    var store = new Ext.data.Store({
    autoLoad : true,
    proxy : new Ext.data.MemoryProxy(emptyData),
    reader : new Ext.data.JsonReader({
    root : 'resultset',
    id : 'server'
    }, ftpConfiguration)
    });

    var ftpConfigGrid = new Ext.grid.EditorGridPanel({
    store : store,
    Cooperation Among Electric Grid Operators Helping to Meet High ::
    File Format: PDF/Adobe Acrobat - View as HTMLAug 10, 2005 New England’s record was 25348 MW, set in 2002. • Southwest Power Pool, Inc. ( SPP), which manages the power grid in all or part of seven
    http://www.pjm.com/contributions/news-releases/2005/20050810-cooperation-among-electric-grid-operators.pdf
    HOME
    Problem in update Records when i search Record in datagrid::
    3 posts - 2 authors - Last post: Sep 29when i edit record without searching records it updates record succesfully. Get a DataSet to bind the DataGrid to objAdapter = New
    http://www.ozzu.com/programming-forum/problem-update-records-when-search-record-datagrid-t92157.html
    HOME

    cm : new Ext.grid.ColumnModel([{
    id : 'colServer',
    header : "Server Name",
    width : 60,
    sortable : true,
    dataIndex : 'server'
    }, {
    id : 'colUsername',
    header : "Username",
    width : 60,
    sortable : false,
    dataIndex : 'username'
    }, {
    id : 'colPassword',
    header : "Password",
    width : 60,
    sortable : false,
    dataIndex : 'password'
    }, {
    id : 'colPath',
    header : "Path",
    width : 60,
    sortable : false,
    dataIndex : 'path'
    }]),

    stripeRows : true,
    autoExpandColumn : 'name',
    frame : false,
    width : 700,
    collapsible : true,
    collapsed : true,
    title : 'FTP Configurations',
    renderTo : 'ftpConfigGrid',
    Data Entry With a Data Grid::
    Notice that the record you added was not saved; To allow the user to create a new record and/or to update new changes, on the form, click the DataGrid
    http://www.functionx.com/vcnet/databases/dataentrydatagrid.htm
    HOME
    viewConfig : {
    forceFit : true
    },
    tbar : [{
    text : 'Add Connection',
    tooltip : 'Create a new FTP Connection',
    Technorati: Discussion about “Joystiq interview: GameTrailers EIC ::
    Joystiq interview: GameTrailers EIC sets record straight on GRID controversy #2 on the graph gave us another new record of 143 visitors.
    http://technorati.com/posts/xRapd7tyet0AaHXgCFEx/KoruOAXw2mPP1M1T4RUnUY=
    HOME
    icon : '/propeller/images/ext/fam/add.gif',
    cls : "x-btn-text-icon",
    handler : function() {
    ftpConfigGrid.getStore().insert(0, new ftpConfiguration({
    server : 'Test',
    username : 'Hello',
    password : 'ABCDE',
    path : 'A'
    }));

    ftpConfigGrid.stopEditing();
    // ftpConfigGrid.getStore().insert(0, p);
    ftpConfigGrid.startEditing(0, 0);
    }
    }, {
    text : 'Remove Connection',
    tooltip : 'Remove selection FTP Connection.',
    icon : '/p/images/ext/fam/delete.gif',
    cls : "x-btn-text-icon"
    }]
    });


  • ahh!! i think that worked.. :) thanks a lot


  • Also, doesn't appear your column model has any editors defined? Once your record is added it attempts to start editing the first field which currently isn't editable?!


  • ahh sorry, when i click the add button:

    1. firebug reports no error messages...everything seems fine.
    2. the grid's store object has the record appended to it. (i can see them in firebug)
    3. the data does not get displayed in the grid. I tried render() but that doesn't help

    now suppose instead of emptyData , I passed in some data; say dummyData, then when I click 'add', the new record gets displayed.


    var dummyData = {
    'resultset': [{
    server: 'test',
    'test',
    'test',
    path: 'test'
    }, {
    server: 'test2',
    'test2',
    'test2',
    path: 'test2'
    }, ]
    };


  • "doesn't work" is kind of vague. What does firebug say/do? What is not working?


  • sorry, confused what your problem is. First post you say you want empty grid initially, but then you're complaining grid is empty?/:)

    Were you looking for something like this?


    handler : function() {
    ftpConfigGrid.getStore().insert(0, new ftpConfiguration({
    server : 'Test',
    username : 'Hello',
    password : 'ABCDE',
    path : 'A'
    }));

    ftpConfigGrid.stopEditing();

    //you comment out following line, but you look to be on
    //the right track. But what is p?
    // ftpConfigGrid.getStore().insert(0, p);
    ftpConfigGrid.startEditing(0, 0);
    }




    handler : function() {
    var p= new ftpConfiguration({
    server : 'Test',
    username : 'Hello',
    password : 'ABCDE',
    path : 'A'
    });

    ftpConfigGrid.stopEditing();

    ftpConfigGrid.getStore().insert(0, p);
    ftpConfigGrid.startEditing(0, 0);
    }





  • Challenging Books For A 14 Year Old?
    First guitar : acoustic or electric?

    You are looking at:hznm.com's new record in grid, click hznm.com to home
  • grandparent adoption fighting cps
  • finding books that are currenly in print or find reprinted issues
  • antiseptic trivia
  • midilfe crisis statistics
  • travel safety in egypt
  • world wide travel with children
  • changing voice
  • birthplace
  • neurology brainwave and a slowing
  • death date yr place of baseball writer
  • cardiac tumors
  • why not ignore the haka
  • ancestors of sylvia ingman
  •  
  • ladies canvas tennis shoes
  • creating an office pool
  • poweraid commercial andy roddick
  • americans with mental illness
  • travel agent in turkey
  • tiny ahooga horn wanted
  • sports divisions
  • top outdoor recreation activities
  • loking for an english body lotion company
  • pain swelling in my toes
  • health records of someone you 39 ve had unprotected with
  • the color of performance
  • sport or social
  • high school basketball
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ