Using the RadDock Tag Property

2 posts, 0 answers
  1. Sean
    Sean avatar
    51 posts
    Member since:
    May 2008

    Posted 19 May 2009 Link to this post

    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?
  2. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 20 May 2009 Link to this post

    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
Back to Top