I has the following code in html-file:
<ak-multiselect k-data-text-field="name"
k-data-value-field="id"
k-data-source.bind="corporateGroupDataSource"
k-on-change.delegate="SetGroupFilter($event, 'GroupId')"
data-placeholder="Select corporate group...">
</ak-multiselect>
By button press I will create filter from all existing multiselects on the html-page and will send request to database.
But how I can get selected values of multiselect in my viewmodel? I mean js-file...
I can't use id of multiselect.
Use k-value.two-way="yourVMVariableName" to bind to the value. More information can be found here: http://aurelia-ui-toolkits.github.io/demo-kendo/#/samples/multiselect-basic-use
Related
I have used usual dropdown list and it's not worked,
when i click the submit button for all the data in the form except drop down value were sent to database.how can i fix it??
Your <select> is missing a name="foo" attribute.
A form will only submit elements with a name as part of the request.
im having the same problem as this one:
Setting default value of a dropDownList
i have dropdownlist on my grid but it does not save the selected value into the data source.
Unlike the textbox where i can do it using
container.find("input[name=Code]").val(d.Code).change();
this dont work on dropdownlists, and if i use .select(d.Code) it does select the value on dropdown but does not save it into datasource.
thanks in advance
I'm building a jsp which will let user select data from database, it will uploads when page will render for user. But the problem is <form:select> don't let user insert new value his own one if the value not represented in the list(doesn't inputed in database).
I need let user put his own value if it's doesn't not exist in the <form:select>.
It's kinda has to be <form:input> with <form:select><form:options items="myList"></form:select>.
Could you help me with this. Thank you
You can provide textbox and dropdown.Make textbox enable only if user didnt select any value from dropdown allow him to enter value. If he selected any value from dropdown make the textbox disable.for this you should use bit of jquery or javascript.
I have a list of object as model. I have properties like Server, Database, User.
What i want is a dropdown with list of object bound to it and on the change of dropdown items, I have to populate the Database and User information in 2 different labels.
How can i achieve that using Model Binding ??
I can't understand what do you mean when asking about 'using Model Binding'. But it can be done with jquery/javascript. You create dropdownlist on page and on change event send selected item to server and receive 'Database and User information'. Example using Ajax helper: using ajax with dropdownlist mvc3
I am using an autocomplete extender inside a gridview. Inside the gridview, I have a country dropdown. When I select a country, the states should be populated in the autocomplete extender using textbox.
I am able to populate the countries and states. But when I have multiple rows in the gridview,
I select a country in row 1 of the gridview.
But all the StatesTextbox are updated with the states based on this selection. i.e, I am not able to choose which textbox/row should be updated on Dropdown selected event.
Could anyone help me on this issue? Appreciate your response!!
I fixed this by setting the context key of the autocompleteextender to the dropdownlist selected value and retrieved the value when I typein something in the statesearch textbox.