MihaMarkic / BlazorDevExtreme

Blazor interop for DevExtreme library
MIT License
30 stars 5 forks source link

Examples #8

Open avandijk opened 5 years ago

avandijk commented 5 years ago

This library look very interesting!!! Is it possible to provide more examples for f.e. datagrid, autocomplete etc.

That would be very helpful..

Thx!

MihaMarkic commented 5 years ago

Eventually, but that's not my priority right now (read ... no time for it)

wize1 commented 5 years ago

I'm busy trying to write full form example, but can't seem to get even something simple like updating textbox value to work... I do see values to load, but not change...

Here is what I do:

<DxTextBox Placeholder="First Name" Name="txtFirstName" ShowClearButton="true" Text="@FirstName" Disabled="@IsFormReadOnly"/>

<p>@FirstName</p>

`@functions { protected override void OnInit() {

}

public string FirstName { get; set; } = "";
public bool IsFormReadOnly { get; set; } = false;

void ChangeText()
{
    FirstName = "John";
    IsFormReadOnly = true;
    StateHasChanged();
}

}`

...............................

so the value in p does change, but not in textbox... am I missing something?

wize1 commented 5 years ago

So looking at code it seems properties are not two-way bindable at the moment... So you can not use Bind-Text="@FirstName". Am I correct?