Thanks for your quickly reply.
My situation has a little different from your sample.
In fact I need set up Splitter height automaticlly after page loaded, so I can caculate the actual sliptter height.
Base your code, I added OnAfterRenderAsync method:
@code {
SfSplitter splitterObj;
private string splitterHeight { get; set; } = "240px";
private void Clicked()
{
this.splitterHeight = "500px";
this.StateHasChanged();
}
protected override Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
this.splitterHeight = "800px"; //I'll call js to get parent div height
this.StateHasChanged();
}
return base.OnAfterRenderAsync(firstRender);
}
}
It's didn't work.
BTW: If I set the splitterHeight to 500px in OnAfterRenderAsync, the Click didn't work either.