Actually yes, if you guys could help with something on this matter. I was able to create multiple button groups that work fine, like this:
<EditForm Model="@StatementCheckedModel">
@{
if (this.StatementCheckedModel.Value == "Model")
{
this.isStatementChecked = true;
}
}
<div id="Statement" class="e-btn-group">
<input type="radio" id="Income Statement" @onclick="@(() => ChangeTable("Income Statement"))" value="Income Statement" name="default" checked="@this.isStatementChecked" />
<label for="Income Statement" class="e-btn">Income Statement</label>
<input type="radio" id="Balance Sheet" @onclick="@(() => ChangeTable("Balance Sheet"))" value="Balance Sheet" name="default" />
<label for="Balance Sheet" class="e-btn">Balance Sheet</label>
<input type="radio" id="Cash Flow" @onclick="@(() => ChangeTable("Cash Flow"))" value="Cash Flow" name="default" />
<label for="Cash Flow" class="e-btn">Cash Flow</label>
</div>
</EditForm>
<EditForm Model="@calCheckedModel">
@{
if (this.calCheckedModel.Value == "Model")
{
this.isCalcChecked = true;
}
}
<div id="CalcType" class="e-btn-group">
<input type="radio" id="Value" @onclick="@(() => ChangeMethodType("Value"))" value="Value" name="default" checked="@this.isCalcChecked" />
<label for="Value" class="e-btn">Value</label>
<input type="radio" id="Growth" @onclick="@(() => ChangeMethodType("Growth"))" value="Growth" name="default" />
<label for="Growth" class="e-btn">Growth</label>
@if (myTable == "Income Statement")
{
<input type="radio" id="Margin" @onclick="@(() => ChangeMethodType("Margin"))" value="Margin" name="default" />
<label for="Margin" class="e-btn">Margin</label>
}
</div>
</EditForm>
and then inside code, I have:
DefaultValue StatementCheckedModel = new DefaultValue();
public class DefaultValue
{
public string Value { get; set; } = "Model";
}
private bool isStatementChecked { get; set; } = false;
CalTypeValue calCheckedModel = new CalTypeValue();
public class CalTypeValue
{
public string Value { get; set; } = "Model";
}
private bool isCalcChecked { get; set; } = false;
Everything works fine, however you can see, on the second button group, there is one of the buttons that would only appear on certain circumstances. How can change the button selected without pressing, so for instance, if this on in particular is selected when it would disappear, I can make it so another one in its group to become highlighted? Hope I was able to explain myself. Sorry for the confusion.