selectedItem : The item which is selected in the listbox.
selectedItemIndex : The index of the item which gets selected.
hasChild: The list items whether contains child or not.
Text: The text value of the item selected.
itemCollection : Items in the Listbox control.
selectedItemNames : Selected items among the list of items.
I've supplied a handler like so
Html.MobSyncfusion().ListBox("lbCore").OnItemSelect("itemSelectedHandler").RenderMode(RenderMode.Auto)
.IOS(ios => ios.ShowCorners(true))
.Items(items =>
{
items.Add().Text("Item 1");
items.Add().Text("Item 2");
items.Add().Text("Item 3");
items.Add().Text("Item 4");
})
.Render();
The help file does not specify how to access the arguments.
I've tried to specify the arguments in the handler's signature but this doesn't seem to work. Here is an example.
function itemSelectedHandler(selectedItem, selectedItemIndex, hasChild, Text, itemCollection, selectedItemNames) { $("#divToChange").html("<a rel='nofollow' href='#'>" + Text + "</a>"); } The output is undefined. How can I gain access to the handler's arguments? Thanks!
Hi Krishnaveni,
Query 1 : In windows emulator when we click on the second tab it is displaying undefined.
This is an known issue with Tab control in Windows phone we have fixed this issue in our Development build. So, We would suggest you to update to the latest version available in the following link.
http://www.orubase.com/support/forums/orubase/106508/Orubase-Studio-v11063-available-for-download
Query 2 : Special feature only for Android
Could you please ensure us whether you want to give special feature for Android by using the database which is in the Web application or else with SQLite database. If you want to use the database as in the Web application then you can do the following to give us desired functionality for Android only.
if (Helper.IsAndroid())
{
//your Desired Code
}
else
{
//your Desired Code
}
//Helper Code
public static bool IsAndroid(){
var exp = new Regex("android");
return HttpContext.Current.Request.UserAgent != null && exp.IsMatch(HttpContext.Current.Request.UserAgent.ToLower());
}
Please try this and get back to us if this helps out.
Regards,
Thivya.
Hi Krishnaveni,
We have created the Capture Audio sample for Android. With the Capture Audio API there is an issue, when clicking the Record button twice the application will crash. We are analyzing this issue. Please refer the below forum for further updates on this issue.
http://www.syncfusion.com/support/forums/general/106118/Tutorial
Please let us know if you have any queries
Regards,
Ponmalar P