- Home
- Forum
- React - EJ 2
- Radio button disappears in toolbar
Radio button disappears in toolbar
Hi,
In the example below, clicking on the radio button causes it to disappear. I'm presuming I need to refresh the toolbar somewhere? I've tried refreshing in the radio onChange event handler but that just gives errors
Thanks,
Gareth
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
HB
Hareesh Balasubramanian
Syncfusion Team
February 26, 2021 07:14 AM UTC
Hi Gareth,
Greetings from Syncfusion Support..!
We have validated your shared sample at our end and can replicate your reported problem which can be overcame by mentioning the item-wise custom template property of the Toolbar component as the HTML element that is either a string or a querySelector. And for the same, we have modified your shared sample which can be viewed from the following link.
|
<div>
<div id="Template">
<input
type="radio"
id="checkpointer"
name="select"
checked={toolState === "select"}
onChange={updateRadio}
/>
<input
type="radio"
id="checkpan"
name="pan"
checked={toolState === "pan"}
onChange={updateRadio}
/>
</div>
<ToolbarComponent id="zoomControl" ref={toolbar}>
<ItemsDirective>
<ItemDirective template="#Template" />
<ItemDirective template={t => <NumericTextBoxComponent />} />
</ItemsDirective>
</ToolbarComponent>
</div> |
Kindly try the above solution and get back to us if you need any further assistance.
We will happy to assist you..!
Regards,
Hareesh
Marked as answer
GA
Gareth
February 26, 2021 10:20 AM UTC
Perfect - thank you!
NR
Nevitha Ravi
Syncfusion Team
February 26, 2021 11:43 AM UTC
Hi Gareth,
You are most welcome..! please get back to us if you need any further assistance.
Regards,
Nevitha
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
- Marked answer
-
GA Gareth
- Feb 25, 2021 10:54 PM UTC
- Feb 26, 2021 11:43 AM UTC