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