Search
10143 results 511-520
Examples
- Buttons › Excel - Customise bordersis defined by the default styles included by Buttons.
- AutoFill › Click focushovered over The default behaviour is
- AutoFill › Enable / disable APIyour application requires. The default state can be set
- AutoFill › Always confirm actionis also shown. By default, if there is only
- DataTables › Base stylep>The DataTables default style file has a
- DataTables › POST datap>By default, the Ajax request that
- DataTables › Object data sourcep>The default data format that DataTables
- DataTables › Deferred loading of datawith server-side processing, the default behaviour is to have
- DataTables › Table controls positioningyou might find the default position of the feature
- DataTables › Grid layoutcentred). Finally, the DataTables default
Forum
- 29th Oct 2019how to know the database field lenght and default valueYes this is what I am looking for. As we connect to the database, it should be interresting to get the def values and other informations (like field name, type, length, ...) and map directly these informations for editor (and or datatable) not ? Once upon a time I did something like that, allowing edit table with no other parameters than table name (and db set of course), but in php only (not very pretty interface...). Thanks for answer
- 24th Aug 2019Change Default sorting to descending orderSee the example in the docs. https://datatables.net/reference/option/order
- 21st Aug 2019Custom create endpoint while keeping default edit endpointIs it possible to use custom endpoints for only the create button and not the edit button? Yes. The example you linked to actually shows how to do that - use ajax with create, edit and remove options in an object. Each will be be called depending on the form action as required. So you can set the ajax.create information to point to your custom end point. Allan
- 12th Aug 2019"Prevent default" issue with datatablesWait a minute, I'm just stupid. I have added event.stopPropagation() and it's now working. I don't know why the problem didn't occur on the first page but the problem is solved. If an admin read this, maybe he can add "Answered" to the topic. I can't do that on my own comment. Sorry for that.
- 1st Aug 2019Editor submits fields that have used the default contentWhat's happening here is that Editor does correctly read the null value from the data source for the row, but it reads the values for the form from input elements which does not allow for null as a value. Empty string is the closest. Editor sees that difference and thus thinks that the value has changed (this isn't an Oracle db - null !== ''! :)). The only way to handle this at the moment is to use a set formatter on the server-side and check if an empty string was submitted. If so write null to the db (isEmpty is the formatter for that). It might be possible to use preSubmit to remove items as well, but I've not actually tried that (only just though of it!). This is a known weakness of Editor I'm afraid - we need null aware field types! Allan
- 13th Jun 2019I want the default sort order to be None-Descending-Ascending for NumbersI'm using PHP and SimpleXML to read in the XML data source, so, not in the DOM and not coming via Ajax. I was hoping that I wouldn't have to code for every different node but it looks like that is going to be the best way to control this. After posting I realised that much of the numerical data isn't presented in the table as numbers. By that stage it is wrapped in html code and often has hyperlinks, so the fact that datatables sorts in correctly is pretty cool.
- 22nd May 2019Table wont paginate when i echo the table rows .. default per page is 5 but it shows unlimited rowsThanks Kevin. i got it fixed. i forgot to close the table row in my php echo therefore having all the data displayed as one single row. all i had to do is after the last . thanks alot for pointing out the console log issue. i just got them all fixed . thanks K
- 20th May 2019Set Default Value in Table without Process() on Server Side?The "models" used by Editor are used only to get the property names. They aren't actually populated into the model. That said, I don't fully understand your question I'm afraid: Or something akin to this, wherein the StaffModel table would have a new item sent across with the first_name "bob". Could you elaborate on this? Allan
- 9th May 2019Add two fields and display them in a default fieldMuchisimas gracias
- 12th Apr 2019how to change the default number of records to display and instead of number use a head column fieldI see if i comment the button that i've defined only one time are displayed ... the useful thing is now how to know what is defining the button :-)