'button.editor_create' button not showing up on the screen

'button.editor_create' button not showing up on the screen

nandank99nandank99 Posts: 6Questions: 1Answers: 0
edited January 2014 in Editor
First of all,kudos for such a great product!
I am learning the ropes during which i am stuck on a problem.
The create button is not showing on the screen when using 'button.editor_create'.Please someone help
Below is my initialization code in js :


var editor; // use a global for the submit and return data rendering in the examples
var oTable;
$(document).ready(function() {
//fnReloadAjax plugin code--- start
$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback, bStandingRedraw )
{
if ( typeof sNewSource != 'undefined' && sNewSource != null )
{
oSettings.sAjaxSource = sNewSource;
}
this.oApi._fnProcessingDisplay( oSettings, true );
var that = this;
var iStart = oSettings._iDisplayStart;
var aData = [];

this.oApi._fnServerParams( oSettings, aData );

oSettings.fnServerData( oSettings.sAjaxSource, aData, function(json) {
/* Clear the old information from the table */
that.oApi._fnClearTable( oSettings );

/* Got the data - add it to the table */
var aData = (oSettings.sAjaxDataProp !== "") ?
that.oApi._fnGetObjectDataFn( oSettings.sAjaxDataProp )( json ) : json;

for ( var i=0 ; i

Replies

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin
    Hi,

    I don't see anything in the code above that would add a create button to the page. You have:

    [code]
    // New record(//This button is not showing on the screen)
    $('button.editor_create').on('click', function (e) {
    [/code]

    but does `...` exist in your HTML for it to attach to?

    Allan
  • nandank99nandank99 Posts: 6Questions: 1Answers: 0
    Allan
    Sorry for reverting so late.
    Yes.That was the problem.Thanks for you response.
    It is showing up now...Thanks

    Nandan
This discussion has been closed.