Id in CustomToolbarItemModel has changed

Hello

In SfDocumentEditorContainer I have defined a toolbar like this: 



I used to be able to grab the id from the args in the OnToolbarClick event, but now it looks like the id is manufactured:



Is this a deliberate change?


Thanks



2 Replies 1 reply marked as answer

SM Suriya Murugan Syncfusion Team April 14, 2021 12:31 PM UTC

Hi Richard, 

We can reproduce the reported issue and we have logged the defect report for this issue. We will fix and include in our Blazor nuget release which scheduled on April 21,2021. 

You can track the status of bug through below feedback link: 

Meantime, you can change the condition by checking item text and it will work.  

Reference code snippet 
    public void onToolbarClick(Syncfusion.Blazor.DocumentEditor.ClickEventArgs args) 
    { 
      // ID not returned properly 
        if (args.Item.Text == "Back") 
        { 
            // Provide your function 
        } 
    } 
 

Please let us know if you have any questions. 

Regards, 
Suriya M. 



SM Suriya Murugan Syncfusion Team April 21, 2021 01:37 PM UTC

Hi Richard, 

We are glad to announce that our patch release (v19.1.0.57) is rolled out successfully and In that release, we have added the fix for reported issue.       
    
Please upgrade your nuget to the latest version packages to resolve this issue.      
          
  
  
Please let us know if you have any other questions. 

Regards, 
Suriya M. 


Marked as answer
Loader.
Up arrow icon