v. 18.35: Toggle ect depreciated - but which to use instead?

According to the documentation, 
https://blazor.syncfusion.com/documentation/release-notes/18.3.35/?type=all#sidebar

BREAKING CHANGES
  • The Zindex type is changed from double to int.
  • The Show,Hide,Toggle methods are deprecated and will no longer be used.
  • The DOM Element parameter of event arguments is changed to ElementReference Element.

But 
A) Which methods to use then istead for togginglig visibility ?
B) The mehtods are still present on the class, but not marked "depreceated. However, my code has indeed stopped working.

Confused!
Toke

1 Reply 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team October 5, 2020 11:19 AM UTC

Hi Toke,  
 
Greetings from Syncfusion support. 
 
Query 1- Which methods to use then instead for togginglig visibility ? 
 
You can open/close the sidebar component by using its isOpen property of Sidebar component instead using its Open, Hide and Toggle methods as they are deprecated from latest Volume 3 release, 2020. Refer the below code snippet of using IsOpen property in Sidebar. 
 
  <SfSidebar @ref="_sidebar" ID="sidebar" EnableGestures="false" @bind-IsOpen="@isOpen" Type=SidebarType.Auto Target="e-gridcontent"> 
        <ChildContent> 
            <h4 class="mb-10">Welcome to Sidebar</h4> 
        </ChildContent> 
    </SfSidebar> 
  public void click() 
    { 
        if(_sidebar.IsOpen) 
        { 
            isOpen = false; 
        } 
        else 
        { 
            isOpen = true; 
        } 
    } 
 
Please, download the sample from the following link. 
 
 
Query 2- The methods are still present on the class, but not marked "depreceated. However, my code has indeed stopped working. 
 
Currently, we have deprecated those methods of Sidebar from Volume 3 release, 2020. We will remove those methods from Sidebar source after next four consecutive Volume releases. 
 
Please let us know, if you need any further assistance. 
 
Regards,  
Sowmiya.P 


Marked as answer
Loader.
Up arrow icon