[ 2 posts ]

upk0000

  • Username: upk_0000
  • Joined: Tue Jun 21, 2011 1:09 pm
  • Posts: 2
  • GitHub: upk_0000
  • Gists: upk_0000
  • Offline
  • Profile
Tags:

Quick Edit is not working with YUI3

Post Posted: Wed Jun 22, 2011 3:49 pm
+0-
hi,

i am playing with yui3 to use quick edit mode functionality. i made the changes but still i cannot see the cells in editable fashion.

my script..

<script type="text/javascript">
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2011.06.15-19-18'
}).use('gallery-quickedit', function(Y) {

var cols = [
{ key: 'title', label: 'Title', quickEdit: true },
{ key: 'year', label: 'Year' },
{ key: 'quantity', label: 'Quantity',
quickEdit: {
validation: { css: 'yiv-required yiv-integer:[0,]' }
}
}
];

// Columns must match data parameter names
var data = [
{title:"commander of chief1", year:"19801", quantity:"101"},
{title:"commander of chief2", year:"19801", quantity:"102"},
{title:"commander of chief2", year:"19803", quantity:"103"}
];

var table = new Y.DataTable.Base({columnset: cols, recordset: data});
table.plug(Y.Plugin.DataTableQuickEdit, {changesAlwaysInclude: ['id']});

table.render();

});
</script>

i also included the controls for save , cancel and quick edit but i have that in my script the page cannot be displayed. is there any additional configuration or setup i need to do to use the quick edit mode

yui2 has a similar functionality, but very vast. i see yui3 has a very short imp and i thought using it but it is not working.

can u please advice

upk

John Lindal

YUI Contributor

  • Username: jafl
  • Joined: Mon Nov 02, 2009 2:33 pm
  • Posts: 352
  • Location: Los Angeles, CA
  • Twitter: jafl5272
  • GitHub: jafl
  • Gists: jafl
  • Offline
  • Profile
Tags:

Re: Quick Edit is not working with YUI3

Post Posted: Tue Jul 05, 2011 7:23 am
+0-
My first guess is that you are not passing a node (or selector) to render(), so the table doesn't know where to display itself. If that doesn't fix it, please post the link to your page so I can try to debug it.
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum