Mar 09, 2012, 1:51 AM
[CLOSED] PropertyGrid error
Hi All,
I'm using a Propertygrid to do my property page.
I just load the properties on the grid when users select something before, like a type of property must be loaded for example.
When user select the property, I populate the grid, and at the first time the page is loaded occur this error when user clicks in the first column
Message at Message Box
"
Runtime Error in Microsoft JScript: Can't get property value 'record': the object is null or not defined
"
and that's the code I'm using to add a properties in ajax event
I'm using a Propertygrid to do my property page.
I just load the properties on the grid when users select something before, like a type of property must be loaded for example.
When user select the property, I populate the grid, and at the first time the page is loaded occur this error when user clicks in the first column
Message at Message Box
"
Runtime Error in Microsoft JScript: Can't get property value 'record': the object is null or not defined
"
and that's the code I'm using to add a properties in ajax event
public void AddProperty(IPropriedade item)
{
Ext.Net.PropertyGridParameter param = new Ext.Net.PropertyGridParameter();
param.Name = item.Nome;
param.Value = item.Valor.ToString();
param.Editor.Add((Ext.Net.Field)item.Editor);
param.Mode = ParameterMode.Value;
this.Source.Add(param);
base.AddProperty(param);
this.SetSource(this.Source);
Hashtable props =
ExtraParams.GetValue(Page.ToMainForm(), ClientID + "Props") as Hashtable;
props[item.Nome] = item;
}
Last edited by Daniil; Mar 13, 2012 at 8:26 AM.
Reason: [CLOSED]