Hi!
I have my control with CheckBox <- this is my problem. I want to show panel when CheckBox is checked.
My control is used like this:
Inside control I have property:
Now, when I checked CheckBox, RadGrid and my control inside disappear.
If I place CheckBox inside UpdatePanel or AjaxPanel, I'll have fallowing error:
It's in Polish so I'll try to explain. Error says that UpdatePanel can't be unregistered because it wasn't registered in ScriptManager.
Please, help ;)
I have my control with CheckBox <- this is my problem. I want to show panel when CheckBox is checked.
My control is used like this:
<EditFormSettings UserControlName="../UserControls/Process/StateAlert.ascx" EditFormType="WebUserControl"> |
<EditColumn UniqueName="EditCommandColumn1"> |
</EditColumn> |
</EditFormSettings> |
Inside control I have property:
public object DataItem |
{ |
get |
{ |
return dataItem; |
} |
set |
{ |
if (value != null) |
{ |
if (value is StateJobTemplate) |
{ |
StateJobTemplate template = (StateJobTemplate)value; |
ShowControl(true, (StateJobTypes)template.StateJobType, template); |
_sjtItem = template; |
} |
else |
{ |
Telerik.Web.UI.GridInsertionObject newAlert = (Telerik.Web.UI.GridInsertionObject)value; |
StateJobTemplate template = newAlert.GetPropertyValue("JobTemplate") as StateJobTemplate; |
ShowControl(true, (StateJobTypes)template.StateJobType, template); |
_sjtItem = template; |
} |
btnCancel.Visible = true; |
} |
dataItem = value; |
} |
} |
Now, when I checked CheckBox, RadGrid and my control inside disappear.
If I place CheckBox inside UpdatePanel or AjaxPanel, I'll have fallowing error:
Sys.WebForms.PageRequestManagerServerErrorException: Nie mo|na wyrejestrowa elementu UpdatePanel o identyfikatorze uPanelDelay, poniewa| nie zostaB on zarejestrowany w elemencie ScriptManager. Ta sytuacja mo|e wystpi, je[li element UpdatePanel zostaB usunity z drzewa formantów, a nastpnie dodany ponownie, co nie jest obsBugiwan operacj. |
Nazwa parametru: updatePanel' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://firebug/content/spy.js :: onHTTPSpyReadyStateChange :: line 497" data: no] |
http://localhost:9920/ScriptResource.axd?d=1B-MRZCEFwolhXDsshMf4JjZOQs3iq1lzhqE6bwgKqGK8lEWWx8KGThf_Rfugcg6TbxwknueZdk1ek5e3cT_FYN0GGs0HIzmvczdBTv9-1E1&t=ffffffff91beb05b Line 5 |
It's in Polish so I'll try to explain. Error says that UpdatePanel can't be unregistered because it wasn't registered in ScriptManager.
Please, help ;)