Is there a way to limit the number of character the user may type for a label? I know that I can check the text length in the NodeEditorValidating handler, and give an error message if it is too long, but it would be even better if there is a property that would make the editor refuse to take more than a given number of characters.
ADAdministrator Syncfusion Team June 23, 2005 10:49 AM
Please take a look at NodeEditorValidateString. I believe it is the event you''re looking for.
ADAdministrator Syncfusion Team July 27, 2005 04:39 AM
Since this event is raised for each character entered, I am able to detect when the text gets to long. However, I can''t figure out how to stop the user from entering more characters. The event has two properties: Cancel and ContinueEditing. I have tried all combinations of these, but this doesn''t seem to have any effect. What am I missing here?
VSVijayanand S Syncfusion Team July 27, 2005 09:26 AM
Please take a look at this sample.I have implemented your requirement with the NodeEditorValidateString event and it would not allow more than 8 characters. I hope this sample will fulfill your request. Please let me know if you have any questions regarding this sample.
ADAdministrator Syncfusion Team July 27, 2005 12:28 PM
This was what I tried which did not work for me. Maybe we are using different versions. I''m using version
I belive you must be using another (newer?) version since when I tried to compile your sample the compiler complained that the following properties did not exist
treeNodeAdv13.LeftImagePadding = 0;
treeNodeAdv13.LeftStateImagePadding = 0;
treeNodeAdv13.RightImagePadding = 0;
treeNodeAdv13.RightStateImagePadding = 0;
After I removed all references to these, I could compile the sample, but then I could still enter more than 8 characters. Is there an other solution that may work for my version?
VSVijayanand S Syncfusion Team July 28, 2005 09:52 AM
Yes, I am currently using our latest internal build – v3.3 which contains the necessary fixes here. If you wish to receive this build, please create a Direct-Trac incident in this regard and mention the link to this forum post. I will then update you with the download information for the same. We appreciate your cooperation on this matter.
ADAdministrator Syncfusion Team July 28, 2005 10:59 AM
Thanks for your help. However, I don''t think I will install the internal build. I am using many of Syncfusion products and can''t take the chance that this will break something else.