Unpublished and Published button in asp.net mvc 5

Hi Team

I need some help, i want to create these two seperate buttons, one being Unpublished and Published button. First one must always being not active, while other one should be active and validate if the user miss information.



1 Reply 1 reply marked as answer

SP Sangeetha Priya Murugan Syncfusion Team November 26, 2020 01:17 PM UTC

Hi Gcobani 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported requirement and we suspect that you need of button group with single selection (radio button like selection). For your convenience, we have prepared the sample based on your requirement. Please find the code and link below. 
 
 
 <div class="row"> 
    <div id="text" class="e-btn-group"> 
        <input type="radio" id="left" name="publish" value="left" disabled/> @*set disabled for not in active state*@ 
        <label class="e-btn" for="left">Unpublished</label> 
        <input type="radio" id="right" name="publish" value="middle" /> 
        <label class="e-btn" for="right">Publish</label> 
    </div> 
</div> 
 
 
  
Could you please check the above details and get back to us with more details, if we misunderstood your requirement or need any further assistance on this. 
 
Regards, 
Sangeetha M 



Marked as answer
Loader.
Up arrow icon