This is a migrated thread and some comments may be shown as answers.

Using the RadDock Tag Property

1 Answer 79 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 19 May 2009, 01:52 PM
I have a custom control that extends the RadDock and adds a textbox, regularexpression validator, required field validator and label to the rad dock oninit. These values are then lost in the DockState....I read here that you can put additional values in the "Tag" property however Im not sure I understand how this works.....do I just create a string that I later parse for instance

mycustomdock.Tag = TextBoxRequired:True|LabelText:MyCustomLabel|RegularExpressionValidation:[0-9]

which in the control on init

 if(this.Tag.Length > 0)
 //parse the string
this.TextBoxRequired = mystring[0];
this.LabelText             = mystring[1];
this.TextBoxRegEx     = mystring[2];

Is that correct?

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 20 May 2009, 02:28 PM
You could set/get string in the RadDock's Tag property.
You could find a simple example where the Tag property is used here:
http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx
Tags
Dock
Asked by
Sean
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or