Monday, March 26, 2012

ASP.NET AJAX 1.0 Beta Documentation problem

I just transfered my code to new AJAX release. There is a lot of problem with documentation of this version. We need it more to be able to use this version of AJAX library.

Some of problems: In the previous version I can get hmtl select control currently selected value easily but no it is a problem...

lstboxUsers = new Sys.UI.Select($get('lstboxUsersId'))

lstboxUsers.get_selectedValue();

Is there any way to do this in new version, I solve much harder problems but this one stay ansolved :).

Regards,

Shegi

Note that the select control is in the Preview bits now and was renamed to 'Selector' in order to make it work for xml-script in Safari. The following should work for you:

var lstboxUsers = new Sys.Preview.UI.Selector($get('lstboxUsersId'));

var selection = lstboxUsers.get_selectedValue();


Thanks Chenriks, can you tell me one more thing?

In previous version of AJAX library it was possible to add click handler on selector control (code is below). What is the syntax in new version of AJAX? Do you have access to some kind of documentation for this?

lstboxUsers.selectionChanged.add(UserOnSelectionClick);

// List Box changes

function UserOnSelectionClick(sender, args)

{

}

Regards,

Shegi


it's:

lstboxUsers.add_selectionChanged(UserOnSelectionClick);

I hope it helps

AW

No comments:

Post a Comment