Hello,
I am having a simple requirement, I have JavaScript function to detect if a control is 'changed' (I am using telerik and .net controls). Where as I am 'binding' the JavaScript function on runtime to all controls (attributes.add for .net controls and setting the properties for the telerik controls)
Now this function does work as expected ... until a post-back. As we know, we are going to loose our changes after post-back, So I just wanted to know if there is a way where ...
- I can actually dump all those formatting attributes to some literal and can later iterate thru them and 're-apply' ?
- Or is there a way to do partial post-back for just that control so that I do not loose my changes ?
- Or any other way , you may think of ...
I am emphasising more on getting it done rather emphasising on getting in done correctly. I have had given a thought to add a custom attribute or so, but again I am afraid that I might loose them as soon as the page makes a trip for post-back.
I did spend few hours doing some research but most scenarios yield
using hidden variables, I am not feeling it useful for my purpose
explained above, but you can correct me.
Another problem was for asp:DropDownList ... I applied styles using JavaScript and nothing happened, I disabled the form decorator and styles were applies properly as expected