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

How to download an image as base64 from db only, not from a folder, usind c#,...

-> .net mvc, within the controller action, I have the following question: on server side I retrieve a blob "avatar_pic" from my db "table1" and I want to send it to the client... -> I store...

View Article


Image may be NSFW.
Clik here to view.

momentLocale is being ignored - Editor 2.0.6

I am still trying to migrate from Editor 1.9.3 to Editor 2.0.6. I am using moment.js for my bilingual website (momentLocale: "de" or "en-gb" as opposed to the American "en"). This is the code I use: if...

View Article


Check server-side response (session validity/isset)

I saw another thread about this but it had no answer. Im using php sessions server-side to grant / deny users access to certain fields. Problem occurs when the user has been inactive for some time...

View Article

Prevent edit on rowgroup

I'm using Editor and Rowgroup. This is my event: $('#dataTablesEditor').on( 'click', 'tbody td:not(:first-child)', function (e) { editor.inline( table.cell( this ).index(), { onBlur: 'submit' } ); } );...

View Article

dependent() not setting new value

Hi. Per the example of the documentation in dependent(), I wrote something like: editor.dependent('field1', function (val, data, callback, e ) { // Check if field data has changed. // (Is it intended...

View Article


Readily show existing selection for Datatable as an input

The datatable as an input is great and I'm working on integrating it into my site. However -- when I open a record for editing I would expect the current value to be readily shown, but if it's on page...

View Article

When using Editor and php library the search must match

So let's say i have a cell with the text: This text is great If i'd like to find this cell i can only type in the search box the exact order: This text is great If i type in: This great, the cell will...

View Article

Page load slow - Large linked table.

I have table1 (rr_adjuster_supervisor_join) with a linked column - id of table2 (rr_adjusters), where table 2 is 35K rows. It is taking a long time to render the page. I have attempted to add a name...

View Article


Editor with a database schema which is not public and which has a specific name

Hello everybody. I use editor with Join tables - one-to-many join and a database in a specific schema. I can't manage to find the syntax for the Mjoin in the php file. I try with 'as' syntax, with...

View Article


get field type

Hello, how to get the field type (text, textarea, upload, datetime, ecc.) via editor.field(name).???? I need to convert all text fields to uppercase before save and I'm using event "preSubmit"...

View Article

Cell multi-line - css

Hi, I'm trying to format a cell with multi-lines, one line with "dt-body-center-bold dt-Edit" and the other "dt-body-center". Is this possible? Thanks.

View Article

Trying to debug generator code: Editor::inst ... ->process($_POST)

I am trying to understand (and debug) the code that is produced by the Editor generator. I created a simple test case for a table called "project". The editor instance sets the ajax property of the...

View Article

change the decimal seperator for field editing (.net)

In our datatable setup numbers are formatted and displayed ok as intended: 123.456,78 ...using below formatters: .Field(new Field("contract.contract_vat_amount") .Validator(Validation.Numeric("de-DE",...

View Article


Updated install.js to include mjs files

Hi all, after updating to Editor 2.1.0 via npm and running the post install script, I could not see the mjs files in node_modules. I updated the install.js file to include the new files. If anyone...

View Article

Editor's calendar not showing on field edit

Link to test case: Will provide link to internal environment Description of problem: Hello there, I have noticed that editor's date fields don't show the calendar properly anymore (in my environment)....

View Article


Error() never displayed for postSubmit (does work for preSubmit)

Code as follows var storageEditor = new $.fn.dataTable.Editor({ ajax: { create: { type: 'POST', url: '/api/Fax/AddFaxStorage', contentType: 'application/json', data: function (d) { return...

View Article

Inline Editor Select

When using inline editing with a select box can you submit onchange? Right now the user needs to hit enter to save the change. /** * Defaults */ $.extend(true, $.fn.dataTable.defaults, { dom:...

View Article


C# float? rounding issue with "long" numbers

Hi, I have an Editor field defined in C# as float?. In JS I defined the field and the columns without any particular setting. If I save, for instance, the value 10.12345, everything is fine, i.e. the...

View Article

Image may be NSFW.
Clik here to view.

Using a custom animation for Editor open and close

Hi team! I'm using a custom template for editor and will need to change up the Editor open/close animations. Specifically, I would need the Editor to slide in from the right on open and vise versa on...

View Article

Prevent editor from changing column with non-existent value

I'm wondering if there is an ability to hide specific options of a select box in DataTables Editor. I'm mainly doing this because if I edit a row where column has a non-existent value, then editor...

View Article
Browsing all 3744 articles
Browse latest View live