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

Select2 Filtered Row Won't Edit

Hi Allan, I want to filter row using select2, then edit field value from selected row using editor edit button. My problem is, the value won't updated I load the ajax using data: function ( d ) {...

View Article


Editor Left Join Inside Mjoin

Hello Allan, Is it possible to put LeftJoin inside Mjoin? I want to create a child detail row like this example with one ( tr_delivery_head ) to many ( tr_receiving_detail ) direct table. My code...

View Article


List with image

Hi Allan, Is it possible to make a name list to display an image in datatable and store the address of the image in the database ? Exemple (definitely false) { label: "Priority:", name: "priority",...

View Article

update table using preEdit to set field value

I have a users table where the site permissions are set using an integer variable in a field userLevel. The userLevel is set from a select list, superadmin=1, admin=2, member=3, contact=4. The admin...

View Article

servlets for dropdown list are running infintely

There are several dropdowns in new window. The options of dropdowns are populated with json data correctly. But the servlets are running continuously. Here is code snippet: Could you pinpoint what is...

View Article


Maximum multi row edit?

If I select any number of rows and multi edit a column only the first 12 rows actually get updated with the edit. Is there a hard coded limit or am I doing something wrong? Thanks

View Article

Buttons - copy, excel etc not shown

I must be missing something here, I have a datatable with editor, and i have new, edit and delete buttons visible and working on my page. I want to be able to add copy and excel export, so I have...

View Article

Using textarea type fields

Hi Allan, please excuse me if this is a stupid question, I looked for it before asking. We initialize the editor in one of our tables with new $.fn.dataTable.Editor(editorOpt); where editorOpt.fields...

View Article


Editor on preEdit with Condition

Hello Allan, Is it possible editor on preEdit with Condition based on other field? ->on( 'preEdit', function ( $editor, $values ) { $editor ->field( 'act_log.log_status' ) // condition here...

View Article


Auto Check Dynamic Check boxes

I have made dynamic check boxes using: {label:'Users', name:'rightsManagement[].users', type:'checkbox' } This will accept simple json structured like this: { "rights": { "users": [{"label":...

View Article

Editor, PHP scripts

Just wondering: in the PHP scripts delivered with the Editor examples the PHP code is started with <?php but never closed with ?>. Is this intended and even a necessity or a lapse?

View Article

reoder fields doesnt seem to work

_.forEach(obj.tableCols, function (o, key) { debugger; if ( _.has(o, 'complexList')) { obj.editor.clear(o.name); o.type = 'text'; obj.editor.add(o, null); } }); fields are removed and added with new...

View Article

Soft delete solution

I saw some posts regarding soft deletes, i.e. not removing a row but instead setting 'deleted' to true. Here's my solution for this: First, change the _trigger method in Editor.php so that it will...

View Article


How setup bubble formOptions for my application

Hi Allan How can setup bubble formoptions for all my bubble editor fields like you do in Editor.models.formOptions in dataTables.editor.js in order to not setup everytime I use bubble Editor Thanks

View Article

Client Side Validation

When I add the preSubmit code from here: https://editor.datatables.net/examples/api/clientValidation.html It always seems to say that it is "inError" the first time I click the submit button. Then the...

View Article


Auto Increment Serverside with Intial Value on Edit

Hello Allan, I want to create auto increment number on serverside on field tr_receiving_detail.dom_no I'm using this code to populate the auto increment ($a) on the top of my php file $sql = "SELECT...

View Article

Prevent blur closing the form field

Hi Allen, Is there any way to prevent blur closing inline editor, so I can close it programmatically. See I have a custom editor filed that opens a modal, but as soon as I start interacting with the...

View Article


blur() Focus on Open

Hi guys, I want no focus on the first input field when I open the editor. What is the best approach? This code does not work: editor.on( 'open', function( e, mode, action ) { $('input').blur(); });...

View Article

Avoid focus in select2 fields or disable auto focus in specific fields

Hi! Is it possible to avoid the automatic focus in the first field when it is a select2 field? If that's not possible, is it possible to manually stop the autofocus for certain field? The problem is...

View Article

Ignore some of the properties in the Model .NET

Hello, Is there anyway I can let Editor ignore some of the properties in a model?

View Article
Browsing all 3740 articles
Browse latest View live