Thanks Michael. It works! however, the css dropdown is completely
messed up, i'm guessing there are comflicts with my designer's css,
something I have no idea how to hack with. oh well, still good to learn
how to do that
Paul,
There is nothing to it other than basic javascript..
say you return a DataSet and your callback function is like
function PopulateCheckBoxList(res)
{
var rows = res.value.Tables[0].Rows.length;
for(var i=0; i<rows; i++)
{
var output_checkbox = "<input type='checkbox'
id='checkbox_groupname' value='
"+res.value.Tables[0].Rows[i].Your_Display_Text_Column+" ' />";
}
}
that's it. I haven't debugged the code, but that's the idea. AjaxPro
doesn't have build-in UI binding, but it's easy to create your wrapper
libraries to do above.
I have created a few small ui library that wraps around AjaxPro.net and
takes DataSet as input above and genereate UI manually this way like so
function PopulateCheckBoxList(res)
{
var checkbox_group = new Com.MyCompany.CheckBoxList(res);
$("mydiv").innerHTML = checkbox_group.toHtmlString();
}
you get the idea.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---