Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

custom editor for complex type #262

Copy link
Copy link

Description

@MilesFan
Issue body actions

Hi Andrew, how is it going?

I am trying to make custom renderer and editor for cells of complex type, say "Person".

The renderer part which is quite easy. However, I failed the editor part.

I found in BlazorDatasheet.Edit.BaseEditor where value is string-based, and complex type objects are converted to string (so the value of the person John becomes "Person")

BaseEditor.cs

[Parameter]
public EventCallback<string> OnValueChanged { get; set; }

public string CurrentValue
{
    get
    {
        return _currentValue;
    }
    protected set
    {
        bool num = _currentValue != value;
        _currentValue = value;
        if (num)
        {
            OnValueChanged.InvokeAsync(value);
            StateHasChanged();
        }
    }
}

Any suggestion?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.