Quantcast
Channel: Editor — DataTables forums
Browsing all 3740 articles
Browse latest View live

bindParam in database classes

I need to perform multiple queries consecutively with slightly different bound values. Normally I would use PHP PDO's $stmt -> bindParam(). I tried using $query -> where( $key, ':placeholder',...

View Article


ValidateOptions class construct method has a possible bug with the empty option

When passing an $opts array to the construct method for the ValidateOptions class we are receiving the following error: Call to undefined method DataTables\Editor\ValidateOptions::empty() in...

View Article


inline edit zero comma is giving error

i am using datatable inline edit. the cell is numeric if i write** 1,3 it works** but if i try to write 0,3 i get error "Error converting data type nvarchar to numeric." but if i write ,3 without zero...

View Article

How can I append custom css file fo ck editor ?

I found this method. https://docs.ckeditor.com/ckeditor4/latest/guide/plugin_sdk_styles.html CKEDITOR.plugins.add( 'example', { init: function( editor ) { var pluginDirectory = this.path;...

View Article

Is it possible to use Editor to insert a record to a database?

I looked in the MVC examples and see how I can edit a record. Is it possible to use Editor to insert a record?

View Article


Editor: Disable Lightbox Mobile View

Is there a way to disable the Mobile-Lightbox-Design (DTED_Lightbox_Mobile) ? It causes problems on Android Smartphones (together with Selectize Plugin). So I want to show the normal editor/site.

View Article

editor.close() parameters

Is there a way to send a parameter, like ex: editor.close('whatever') when the editor closes and catch this parameter in editor.on('close', function (e, data, action) { Apreciate your help

View Article

How to programmatically set template attribute in Editor 1.6?

Hi folks, Is there a way to set and unset (above all) the new template attribute for a Datatables Editor instance? I have a table which changes columns drastically depending on it's usage and I would...

View Article


Image may be NSFW.
Clik here to view.

inline mode edit to select the text

Is it any options or config to auto select the edit text when i use the inline model . This is the default action: and this is what I want I don't know how to realize it , can anybody help me ,thanks

View Article


this.api() access Options from JSON response

Is it possible to access the options key from the JSON response when using the ajax server side method having set some options in the php file? I.e. in my JSON response below can I access the options...

View Article

Editor and Autofill error on pages after 1

Hi, I am currently receiving an error using Editor, KeyTable, and AutoFill when attempting to autofill a column vertically; the error does not happen on a first page, only after paging to subsequent...

View Article

How can i set a value by creating a new row with datas from other fields

I have found the preCreat event. I hav put it in the Ajax part. I can set a new value without datas from an other field for example i set the value: 'Inv' . 'JBO'. If i want to set the value with an...

View Article

nodejs server side nested data

Using nodejs for server side processing. The database table has a couple of columns which contain JSON strings. How can I parse that JSON server side and return it to the client as individual fields...

View Article


Editor: change table ajax url according to editor.mode() populated inside...

I have modal window for both - "New record" and "Edit record". Inside my modal I'm trying to populate another DataTable according to action - new/edit. For each action there should be different data...

View Article

restrict editor.inline to a single column - without being able to edit the...

At the moment I'm having an issue with the following script, in that it will only initiate the inline editor when I click: td:last-child, but once it's selected the rest of the row becomes editable:...

View Article


Problem: one-to-many join, need to display multiple checkboxes per editing row

Hello, I must replicate almost exactly the functionality from this example: https://editor.datatables.net/examples/advanced/joinArray.html The only difference is, I'm not using an AJAX call, but rather...

View Article

Image may be NSFW.
Clik here to view.

Checkbox input in table not working

I'm using a checkbox input in my data table, but it doesn't seem to submit the correct value when being clicked into the true state: Whenever I click it into the true state the xhr returned is: An SQL...

View Article


Setting value for Select from dynamic sources

Trying to get an Editor Select working for a particular field (office). The row data is all ajax and the options for the select is an array which I update before the data is retrieved. When I initiate...

View Article

How can I set the sort order of the SQL query?

I have the following in my server-side php and I would like to sort it by id and not month... $out=Editor::inst( $db, 'lk_months', 'id') ->field( Field::inst( 'id' ), Field::inst( 'month' ) )...

View Article

Table Joins

In editor - how do I join tables using multiple fields in the leftJoin function?

View Article
Browsing all 3740 articles
Browse latest View live