BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
<SfDropDownList TValue="int" TItem="ResourceData" ID="OwnerId" DataSource="@OwnersData" Placeholder="Choose owner" @bind-Value="@((context as AppointmentData).OwnerId)">
<DropDownListFieldSettings Text="OwnerText" Value="Id"></DropDownListFieldSettings>
</SfDropDownList> |
<EditorTemplate>
<table class="custom-event-editor" width="100%" cellpadding="5">
<tbody>
<tr>
<td>
Billing Rate
</td>
<td>
<SfNumericTextBox TValue="double?" HtmlAttributes="@BillingValue" CssClass="e-field" Value=@((context as AppointmentData).BillingAmount)></SfNumericTextBox>
</td>
</tr>
</tbody>
</table>
</EditorTemplate>
@code{
Dictionary<string, object> BillingValue = new Dictionary<string, object>()
{
{"data-name","BillingAmount"},
};
} |
namespace Accord.Web.Pages
{
public partial class Timesheets
{
public string stageVal;
public string bookingTypeVal;
public int count = 0;
public async Task OnPopupOpen(PopupOpenEventArgs<Entry> args)
{
if (args.Type == PopupType.QuickInfo)
{
args.Cancel = true;
}
else
{
if(count == 1)
{
args.Data.Stage = stageVal;
args.Data.BookingType = bookingTypeVal;
stageVal = null;
bookingTypeVal = null;
count = 0;
}
else
{
stageVal = args.Data.Stage;
bookingTypeVal = args.Data.BookingType;
count++;
}
}
} |