File tree Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,17 @@ The root cause of the issue is that the `Files` parameter of the FileSelect comp
32
32
33
33
To ensure that the FileSelect component reflects changes made to the ` Files ` parameter, you’ll need to recreate the FileSelect component.
34
34
35
- ````` Razor
35
+ ````` RAZOR
36
36
@if (ShouldRenderFileSelect)
37
37
{
38
38
<TelerikFileSelect @ref="@FileSelectRef"
39
39
Class="required"
40
40
Files="@InitialFiles"
41
- Multiple="true"
42
- OnSelect="@OnSelectHandler"
43
- OnRemove="@OnFileRemoved" />
41
+ Multiple="true" />
44
42
}
45
43
46
44
@code {
47
- private TelerikFileSelect FileSelectRef { get; set; }
45
+ private TelerikFileSelect? FileSelectRef { get; set; }
48
46
private List<FileSelectFileInfo> InitialFiles = new();
49
47
private List<OSRFileInfoResponse> Files = new();
50
48
private bool ShouldRenderFileSelect { get; set; } = true;
@@ -97,21 +95,6 @@ To ensure that the FileSelect component reflects changes made to the `Files` par
97
95
});
98
96
}
99
97
100
- private void OnSelectHandler()
101
- {
102
- // OnSelect logic
103
- }
104
-
105
- private void OnFileRemoved()
106
- {
107
- // OnRemove logic
108
- }
109
-
110
- private void DownloadFileFromStream(byte[] buffer, string fileName)
111
- {
112
- // Simulate file download
113
- }
114
-
115
98
public class OSRFileInfoResponse
116
99
{
117
100
public byte[]? Buffer { get; set; }
@@ -121,4 +104,3 @@ To ensure that the FileSelect component reflects changes made to the `Files` par
121
104
public string? Name => FileName?.Split("/").LastOrDefault();
122
105
}
123
106
}
124
- `````
You can’t perform that action at this time.
0 commit comments