Declined
Last Updated: 12 Jul 2022 19:26 by Sunny
Sunny
Created on: 28 Jun 2022 19:53
Category: Kendo UI for jQuery
Type: Feature Request
0
How to customize Sitefinity's WYSIWYG Table Wizard to hide the Table and Cell tabs and just leave the Accessibility tab

Hello, 

I'm looking to find a way to hide the Table tab and Cee tab on the Table Wizard. Is there a way to do this?

Thanks,

Sunny Carrandi

Attached Files:
2 comments
Sunny
Posted on: 12 Jul 2022 19:26

Hi Neli, 

I really appreciate your answer, I apologize for my late response. I was able to accomplish my requirement following your suggestions! Thank you! I really appreciate it!

#k-table-wizard-tabs ul li:first-child, #k-table-wizard-tabs ul li:nth-child(2) {
    display: none !important;
}

#k-table-properties, #k-cell-properties {
    display: none !important;
}

#k-accessibility-properties {
    display: block !important;
}
ADMIN
Neli
Posted on: 05 Jul 2022 08:21

Hi Sunny,

You can use the following CSS to hide the 'Table' and 'Cell' tabs in the TableWizard popup.

<style>
      #k-table-wizard-tabs #k-table-wizard-tabs-tab-1,
      #k-table-wizard-tabs #k-table-wizard-tabs-tab-2{
        display: none;
      }
 </style>

Then, you can handle the Editor execute event.  When the Table Wizard popup is rendered you can activate the 'Accessibility' tab using the TabStrip activateTab method:

 execute(e) {          
          if(e.name == "tablewizardinsert"){           
            setTimeout(function(){
                 var tabToActivate = $('#k-table-wizard-tabs #k-table-wizard-tabs-tab-3')
    			$("#k-table-wizard-tabs").data("kendoTabStrip").activateTab(tabToActivate);
                 })
          }
 },

Here is a Dojo example where the described above is implemented.

As the desired result can be achieved throught the demonstrated approach I will change the status of the request to the 'Declined'.

Let me know in case you have additional questions on the matter.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.