This is a migrated thread and some comments may be shown as answers.

radprompt nested function '_functionality is undefined'

1 Answer 47 Views
Button
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 14 Nov 2014, 06:04 PM
I posted this question on StackOverflow: http://stackoverflow.com/questions/26935565/cannot-read-property-length-of-null-using-sender-set-selectedtogglestateinde

It would appear that this telerik thread holds some relevance: http://www.telerik.com/forums/radbutton-javascript-error

Note this issue is in the same project as the RadCombo thread I made: http://www.telerik.com/forums/client-side-eventargs-are-mutable 

Where 'navigating' the client state (control state or view state) using either sender or the event argument is not an issue.



If you could answer this question on SO, I would be greatful, but I do have a general question for this thread post. What is the underline mechanics of how telerik uses the client functions 'get_selectedToggleStateIndex()' or 'get_toggleStates()'.. what is '_functionality' and why is it null in my implementation (i.e. nested function as a promptcallback function)?

1 Answer, 1 is accepted

Sort by
0
Brett
Top achievements
Rank 1
answered on 14 Nov 2014, 07:14 PM
Ah.. a colleague helped resolved this for me. It was a minor oversight on my part. the Radbutton Autopostback needed to be set to false; Essentially, a postback was occuring regardless of me canceling the changing event while processing and handling the event. 

Hope this helps others catch that oversight in the future.
Tags
Button
Asked by
Brett
Top achievements
Rank 1
Answers by
Brett
Top achievements
Rank 1
Share this question
or