So on your back end you want it so when a date is selected the "testnumber" field is populated with the week number for that year, correct? Can you send me the code you are trying to use for this?
Keep in mind you can also do this client side and populate the field as such which would allow the submission of the form to act accordingly without any overrides.
For example, getting the ISO week number:
D = determinedate.getDay();
(D == 0) D = 7;
determinedate.setDate(determinedate.getDate() + (4 - D));
YN = determinedate.getFullYear();
ZBDoCY = Math.floor((determinedate.getTime() -
Date(YN, 0, 1, -6)) / 86400000);
WN = 1 + Math.floor(ZBDoCY / 7);
you could call it like this:
weeknumber = mydate.getWeek();
Then just set the value of weeknumber in the textbox.
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items