ClientConfig Attribute

  1. #1

    ClientConfig Attribute

    Hello, I am converting a project that was developed using Coolite 0.8 to Ext.Net 1.2.

    I have a custom GridPanel that extends the Ext.Net grid and had some properties using the ClientConfigAttribute. Example:

    [ClientConfig]
    [Category("Config Options")]
    [NotifyParentProperty(true)]
    public virtual string ConfirmDeleteSelectedText {
           get {
                  return Utility.ResourceHelper.GetString("wrnConfirmDeleteSelected");
         }           
    }
    The ClientConfigAttribute is not in version 1.2 anymore. I am using the change log as a reference, but I didn't find anything regarding this change.

    Is there a new way to do this?

    Thanks!
  2. #2
    Hi,

    Good point to upgrade!

    Please use CustomConfig instead of ClientConfig.
  3. #3
    Hello, thanks for your reply.

    I'm not sure if you are saying I should just replace ClientConfig by CustomConfig. I tried that but the CustomConfig class is not an attribute, so it wouldn't work. Am I missing something?

    Thanks!
  4. #4
    My fault, please use ConfigOption.
  5. #5
    Hi,

    I tested the ConfigOption attribute but it didn't do what I was expecting. My understanding is that the old ClientConfig attribute would automatically map that server-side property to the client-side object, right? This is not happening when I use ConfigOption.
    Maybe I am doing something else wrong, but the only other changes I made with this class were converting the InstanceOf and XType attributes to properties, as stated in the changelog.
    Is there anything else I should do?

    Thanks!
  6. #6
    I forgot that there is the different mechanism in 0.8.x based on Reflection.

    But we've abandoned this mechanism because it's very slow.

    It Ext.Net you should override the ConfigOptions property, please see #3:
    http://forums.ext.net/showthread.php...ll=1#post31657
  7. #7
    It worked!
    Thank you!

Similar Threads

  1. Replies: 2
    Last Post: Feb 27, 2011, 3:33 PM
  2. Replies: 0
    Last Post: Jul 09, 2010, 5:02 AM
  3. Replies: 1
    Last Post: Aug 25, 2009, 10:27 AM
  4. [CLOSED] Overriding a ClientConfig default value
    By jchau in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 12, 2008, 10:21 AM
  5. Replies: 3
    Last Post: Nov 12, 2008, 5:16 AM

Posting Permissions