BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
I'm
work on asp.net mvc and work on syncfusion tool,
I
can bind listbox with model that return from controller method , but I need the
following
When
I click in the listBox item, a method from controller will be called from
javascript and a new model will be return to be viewed as a ChildListBox to selected item
So,
how can I do it with listbox control please
Thanks
Hi Yara,
Thanks for your interest in Orubase product.
You can achieve your requirement by calling action, while clicking the list item using ‘OnItemSelect’ clientside event. Please refer the below code snippets.
//Script
function
SendPost(sender, args) {
$.mobile.changePage("/home/ListboxPost/"
+ args.Text.toLowerCase());
}
//Controller
public ActionResult ListboxPost(string
id) // Which gets the parent items text
{
products.Clear();
var data =
RenderChildDataSource(id); // Sending new model data for the child item
return
View(data);
}
We have also created sample for the same. Please refer the sample in the below attachment.
Please try this and let us know if you have queries.
Regards,
Thivya.