We need to update validation messages on button click, so we need to refresh the UI. What we do is to fire OnPropertyChanged with empty strings. This worked for me to update validation messages but some comboboxes start resetting their values on UI refresh. The combobox whose itemsource is set dynamically is resetting its value to null but it has value in model. If someone have any ideas then please help.
Related
I'm looking for the event which displays the bulkaction-toolbar (the "xx items selected reset view-button delete-button"-toolbar) when a list/datagrid-item is selected. Here is an gif-example: bulkaction-toolbar
the following event is fired when the 'select-all' checkbox is clicked by the user
<Datagrid onSelect={arr=> console.debug('datagrid->onselect:', arr)}>
additional question: if I use this event like above the checkbox is never checked when the user clicked on it. Is this a bug or how i make working it?
In my Winforms app, I have a form that contains a datagridview with a checkbox column. If I check one or more checkbox items, then make a change to some other control on the form (outside of the datagridview), the checkboxes become unchecked. Any help would be appreciated. Thanks.
More details: The underlying binding for the checked items is working correctly, as the values are being stored and the checked states are correct when the form reloads. This is just a visual issue.
Furthermore, the checkbox value is never programmatically set to false in the code. False values only come from the binding or from being manually unchecked.
Redesigned the binding and now it works fine. Was previously maintaining a list of selections in the business object and checking checkboxes based on the selections. Now maintaining a "selected" property in the business object and binding appropriately.
Problem manifested as described due to nature of events generated by checkbox editing (apparently). Binding source change event not triggered when clicking the checkbox (since it was not bound) - only occurred after editing complete on another control.
Could you do an "Invalidate()" on the column to see if a redraw changes anything? Without code, we need to divide the problem arbitrarily.
I have a kendo combobox
#(Html.Kendo().ComboBox()
.Name("ddSystems")
.Filter("contains")
.Placeholder("-- Select --")
.BindTo((IEnumerable<SelectListItem>)ViewBag.systemList)
)
Onchange, a textbox is loaded in ajax. A submit button posts the textbox value and combobox value to the controller. When I get back to the view, I need ddSystems to be reset to empty. I used
$('#ddSystems').data('kendoComboBox').value(null)
and
$('#ddSystems').data('kendoComboBox').text('')
but it always retains the previously selected value. Since I use ajax, this will not display the textbox and I am stuck. Please help.
This will clear the combo box and disable it
Google is your best friend....
var combobox = $("#comboBox").data("kendoComboBox");
combobox.value();
combobox.enable(false);
I am having issues with the Combo box/Simple Combo box trigger field not loading store data on first trigger click in IE-8.Needs a second click to populate the drop down list. Firefox doesn't have this problem and works as desired(loads data on first click). Anyone aware of this issue or how resolve it?
SimpleComboBox<String> stateComboBox = new SimpleComboBox<String>()
stateComboBox.setEmptyText("Select");
stateComboBox.setTypeAhead(true);
stateComboBox.setId("state");
stateComboBox.setItemId("state");
stateComboBox.setForceSelection(true);
stateComboBox.setWidth(65);
stateComboBox.setAllowBlank(false);
stateComboBox.setTriggerAction(TriggerAction.ALL);
stateComboBox.setQueryDelay(0);
I have a Telerik autocomplete control on my mvc view. I want to show a message to user if the user selects/types a value which isn't from the list of values.
How can this be done?
You can use the OnChange event which will be triggered when you blur from the AutoComplete. Also you have the new value under the e.value field of the event argument object.