Why are some ckeditor table properties not editable? - ckeditor

If I create a table in ckeditor, and then later go back and edit the post and control-click on the table and select "Table Properties" some of the properties are editable (alignment, width, border) and some are not (rows, columns and most importantly caption). The greyed out table properties are not editable.
Is there a reason why? Is there a way of editing them? Is that a configuration setting?
Thanks,
doug

I'm sorry to say you can't change this behaviour. CKEditor has been designed this way that you manipulate columns and rows of an existing table using the contextmenu (Ctrl+Click, then "Row ▶" or "Column ▶").
As for the caption, it's funny because it works for me (tested version 4.4.7) – it's always editable. Which version of CKE are you using? Could you provide a working example?

Related

Is it possible to Hide Column in Editable grid view of D365?

I've tried doing it with exporting the solution and changes the XML code and then importing it again.
as you can see in the image two bars after 'Do You Want to' column. But when I open this grid in Unified client interface it is still visible.
like in this grid.if 'isAllowOverride' is True I want to make 'Do you want to' be editable. But 'isAllowOverride' has to be invisible from User end.
Not sure why you are editing the xml for such customization. But this can be easily configured in UI itself.
Go to the form editor, open the subgrid properties, check the view it’s configured to show, edit the view columns to remove the unwanted ones, save the view and set the subgrid with the correct edited view again (there’s a product bug which switch to the default Active view), save & publish the form. That’s it.
Update:
We cannot have two different layouts for Display mode vs Edit mode. That being said, you have to disable the editable grid columns based on conditions.

Ckeditor remove / disable Table properties and Cell properties dialogs

I have ckeditor Table plugin and Quicktable plugin, too.
Can anybody help me how to remove or disable Table Properties and Cell Properties dialogs only , and merge options (if user click with right mouse in table) ? ... as marks in screens bellow. Many thanks for help.

Kendo UI grid - different templates for Edit and Create

We are using Kendo UI grid to display some records. The requirements need us to have a column (Say "File Name")shown as a text box when the user clicks on "Edit".
However, when user clicks on the "Create" button in the toolbar, the same column should be replaced with a File Select control which will allow the user to select a file from his machine. The other columns remain the same.
I have already tried searching through Stack Overflow as well as the Kendo UI Grid forums, but to no avail.
Is there any way to achieve this? Any pointers will be of great help.
Regards,
Nikhil
Using different editor templates for create/edit is not supported. You need to use the edit event of the Grid to change that text input to file input with JavaScript. To distinguish between edit and create you can use the isNew() method of the model.
i.e.
edit:function(e){
if(e.model.isNew()){
//replacement logic
}
}
Similar question is covered here.

Deleting column in devexpress grid

I want to delete column in devexpress grid without using Customization window. For example: by dropping column out of grid or there will be a X button on column that will delete it. Is it possible?
It is possible to drag-drop a particular ASPxGridView Column into the Customization Window or hide the Columns programmatically.
See the following Examples:
E3812
E2023
E3031
If you want to show/hide an individual Column while export, use the solution from the E3352 Example.

How do I edit a jqgrid from javascript

I have a jqgrid that has several columns including a checkbox column that indicates if an item is selected.
Underneath that I have a dropdown menu and a text box. The idea is that each item in the dropdown menu is a column in the jqgrid. Then all I need to do is modified all of the checked rows with the contents of the text box for that column. So a quick mass update mechanism if you will.
The problem is, is that I can't figure out how to update a specific cell. Any tips or documentation that can help me? Thanks!
You can use for example setRowData (see jqGrid documentation) or setCell to update the data in the grid. The functions getCol, getCell or getRowData could help you the examine the row data. Another old answers: this and this could be helpful if you decide to search data in the grid with respect of jQuery.
Here's the "answer" I came up with to my problem. I wanted to edit only rows that were editable. Using setCell would overwrite my editable field with a non-editable one. So I looked at the HTML for a given row while it is in the edit state and passed that into the 'setCell' method. It feels 'hackish' though and if someone knows a better way, I'm all ears.

Resources