Hello,
I have a radgrid under my RadPanel. When i cancel the insert command, i get this javascript error if i try to expand my RadPanel:
( Object doesn't support this property or method)
The first error is from telerik _setExpanded function, happening on _setChildrenHeight(""):
If i put a spy on the f variable, there's no setChildrenHeight in that item.
Here are some propreties that might help to find what's wrong:
Tell me if you need more info, ask me.
In case it's not clear, i can make some step to reproduce:
1.I load my main RadGrid, then open a row.
2.In that row detail, there's some stuff, along with a RadPanel, and another Radgrid, that has the "add a new record" enabled.
3.I expand my RadPanel, everthing is there. I close it.
4.I click on [+] to add a row in my small radgrid, then cancel. (ajax load back the small grid)
5.I click on the RadPanel to expand it, the error occurs.
Second error:
1.
2.
3.I expand my RadPanel, everthing is there. I leave it open.
4.I click on [+] to add a row in my small radgrid, then cancel. (ajax load back the small grid)
5.The error occurs.
Here is the code where the second error occurs:
This.get_Parent() is a RadPanelItem too so it can't find the setChildrenHeight too.
Can this occurs because of some mishandled updates with my small radgrid with ajax? We're folowing the prototype method, using js for every userControl to update grid on client side to prevent the whole page to update.
Please help cause i have really no idea how to fix this.
Thanks!
Sophie.
I have a radgrid under my RadPanel. When i cancel the insert command, i get this javascript error if i try to expand my RadPanel:
( Object doesn't support this property or method)
The first error is from telerik _setExpanded function, happening on _setChildrenHeight(""):
_setExpanded:
function
(k,i,n){
if
(!
this
._getAnimationContainer()||!
this
.get_isEnabled()){
return
;
}
var
o=
this
.get_panelBar();
var
j=
this
._getAnimatedElement();
var
f=
this
.get_parent();
if
(o._transitionAnimationIsInProgress){
return
;
}
if
(k){
if
(
this
.get_expanded()){
return
;
}
if
(
this
.get_level()==0&&o.get_fullExpandedItem()){
if
(window.netscape&&!window.opera){j.style.overflow=
"hidden"
;
this
._changedOverflow=
true
;
}j.style.height=o._getGroupHeight()+
"px"
;
if
(window.netscape&&!window.opera){j.style.overflow=
"auto"
;
this
._changedOverflow=
false
;
}}j.style.display=
"none"
;
j.style.width=
"100%"
;
if
(
this
.get_level()>0&&!o.get_fullExpandedItem()){f._setChildrenHeight(
""
);
If i put a spy on the f variable, there's no setChildrenHeight in that item.
Here are some propreties that might help to find what's wrong:
_childTypeName = "Telerik.Web.UI.RadPanelItem"
_childControlsCreated = true
_childListElement = {object} -> i see all my list element when i look at the innerHTML, so they are there.
_clientState.exapandedItems = 0
_enabled = true
_expendedItem = null
_id = null
_initialized = true
Tell me if you need more info, ask me.
In case it's not clear, i can make some step to reproduce:
1.I load my main RadGrid, then open a row.
2.In that row detail, there's some stuff, along with a RadPanel, and another Radgrid, that has the "add a new record" enabled.
3.I expand my RadPanel, everthing is there. I close it.
4.I click on [+] to add a row in my small radgrid, then cancel. (ajax load back the small grid)
5.I click on the RadPanel to expand it, the error occurs.
Second error:
1.
2.
3.I expand my RadPanel, everthing is there. I leave it open.
4.I click on [+] to add a row in my small radgrid, then cancel. (ajax load back the small grid)
5.The error occurs.
Here is the code where the second error occurs:
_windowLoadHandler:
function
(f){
if
(
this
.get_element()==
null
){
return
;
}
if
(
this
.get_expanded()&&
this
.get_childListElement()){
this
.get_childListElement().style.display=
"none"
;
this
.get_childListElement().style.width=
"100%"
;
if
(
this
.get_level()>0&&!
this
.get_panelBar().get_fullExpandedItem()){
this
.get_parent()._setChildrenHeight(
""
);
This.get_Parent() is a RadPanelItem too so it can't find the setChildrenHeight too.
Can this occurs because of some mishandled updates with my small radgrid with ajax? We're folowing the prototype method, using js for every userControl to update grid on client side to prevent the whole page to update.
Please help cause i have really no idea how to fix this.
Thanks!
Sophie.