I want to create a web control that has a RadInputmanager , and i am having the follow exception .
here is the base code
private RadInputManager inputManger = new RadInputManager();
private TargetInput target = null;
CPFTextString cText = new CPFTextString(); // ibased om public class CPFTextString : RegExpTextBoxSetting
public CPFControl()
: base()
{
}
protected override void OnInit(EventArgs e)
{
target = new TargetInput(cBox.ID,true );
cText.TargetControls.Add(target);
inputManger.InputSettings.Add(cText);
Controls.Add(inputManger);
base.OnInit(e);
}
[NullReferenceException: Object reference not set to an instance of an object.] |
here is the base code
private RadInputManager inputManger = new RadInputManager();
private TargetInput target = null;
CPFTextString cText = new CPFTextString(); // ibased om public class CPFTextString : RegExpTextBoxSetting
public CPFControl()
: base()
{
}
protected override void OnInit(EventArgs e)
{
target = new TargetInput(cBox.ID,true );
cText.TargetControls.Add(target);
inputManger.InputSettings.Add(cText);
Controls.Add(inputManger);
base.OnInit(e);
}