top of page
berlozimtunys

Peach Model - Custom Set.rar 41



Hi, I'm using customized popup editor to edit a record, its data source is a remote one accessed via WEBAPI.The UI is as the attachment.The textbox (name) and Default checkbox is bound, but the checkboxes list is not bound and it is coming from another remote datasource, and it is initialized with the first data source a comma seperated string such as 1,3,5,7. When I input something in the textbox or click Default checkbox, and when I click Update button then update event is triggered. But if I didn't change the text or Default option, only select/unselect items in the checkboxes list, the update is NOT triggered. I think this might because the checkboxes list is not bound thus making change of it having no effect on the grid data source and model, so I change the field like e.model.filename = newValue in the checkboxes change event, but Update event is still not triggered. I look into API documents, it says if model's set method is used, the model change event will be triggered. But my following code does not work at all: var model = $('#grid').data().kendoGrid.editable.options.model; model.set("keyIds", checkedItems.join()); //here checkedItems is the array of keys of checkboxes items.I want know, how can I trigger update with only checkboxes changes?Or, can you provide a solution for binding a checkboxes list to a collection? Treeview behaves like what I want, but it's UI is not.




Peach model - Custom set.rar 41

2ff7e9595c


0 views0 comments

Recent Posts

See All

댓글


bottom of page