Hi Namita,
Greetings from Syncfusion support.
Based on your shared information, we suspect that you have taken the component object with wrong ID element. we have created the sample based on our documentation. Please find the sample below. Please check the sample.
If still you have facing the issue, then please share the issue replicated sample to us. That will help us to provide exact solution as earlier as possible.
Regards,
Sureshkumar P