This question is locked. New answers and comments are not allowed.
Hello.
I was having an applicationwide error "StackOverFlowError" when loading dynamically grids inside a <div> using ajax. This happened without any change to the code by my side, so I was suspecting it had something to do with Telerik.
Finally I found the cause... I was using the deprecated "OnRowSelected" event in my grids. When I have changed it to OnRowSelect it works flawless...
Being a deprecated method, is not as important as another bugs, but I post this so you are aware that it can break "legacy" forms like the ones I was using. I had to go all through my solution to change OnRowSelected calls to the new OnRowSelect.
Here is the code that crashes the view:
I hope it helps to fix it
Cheers
I was having an applicationwide error "StackOverFlowError" when loading dynamically grids inside a <div> using ajax. This happened without any change to the code by my side, so I was suspecting it had something to do with Telerik.
Finally I found the cause... I was using the deprecated "OnRowSelected" event in my grids. When I have changed it to OnRowSelect it works flawless...
Being a deprecated method, is not as important as another bugs, but I post this so you are aware that it can break "legacy" forms like the ones I was using. I had to go all through my solution to change OnRowSelected calls to the new OnRowSelect.
Here is the code that crashes the view:
.ClientEvents(events => events .OnRowDataBound(() => { %> function(e) { PopupRowDataBound("idCentroServicio",e); } <% }) .OnRowSelected(() => { %> function (e) { PopupRowSelected(e,"idCentroServicio",'<%=Model.Controller %>','<%=Model.Action %>','<%=Model.CallBack %>'); } <% })I hope it helps to fix it
Cheers