The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi there,
I''m using Syncfusions editControl v4.102.0.50.
Is there a way to configure the editControl to only allow loading and showing of textfiles?
Thanks!
Yours
Christian!
ADAdministrator Syncfusion Team March 3, 2006 06:09 AM UTC
Hi Christian,
EditControl can be configured to load only text files by using the OpenFileDialog.I have attached a sample that illustrates this.Let me know if this meets your requirements.
Regards,
Ebenezer.P
Hi Ebenezer,
thanks for your response and sorry for my obscurely problem description.
I can''t use an OpenFileDialog, because a file should be loaded/opened in my editControl when a user dblclicks on a corresponding node in a treeview. I should have mentioned this before. Sorry.
The treeview can contain any types of files as nodes (text files, binary files).
When dblclicking on a node, several views will open (one containing an editControl).
The question is:
Is there an easy way to configure my editControl to open only textfiles or do I have to check the file types by myself, before delivering them to the editcontrol? ( Somehow opened binaryfiles aren''t looking that good ;-) )
Thanks!
Yours
Christian
ADAdministrator Syncfusion Team March 6, 2006 02:11 PM UTC
Hi Christian,
The file type has to be checked before loading it in EditControl.I have attached a sample that illustrates this.Let me know if this meets your requirements.
Regards,
Ebenezer.P