I have a Grid, which has a column that uses a MultiSelect as an editor and also allows the user to add new items. This is all running off a remote data with crud etc
It's been 4 days to get it all working.. lost a bit of hair , but finally it all works! ( all the examples just were not applicable or when used together caused issues!)
It all looks good now, but I have got 1 more bit to sort and I'm struggling to keep going . Would really appreciate a little help.
The Multi Select is for selecting Shares / Paths. This is find if they are already defined in the database, but I cannot add them using the Add New approach.
e.g the user types \\Server\Share as a new item.. and then try's to add it... we end up with \ServerShare
The issue is what I am getting back from input.val
<script id="noDataTemplate" type="text/x-kendo-tmpl">
# var value = instance.input.val(); #
# var id = instance.element[0].id; #
<div>
No data found. Do you want to add new item - '#= value #' ?
</div>
<br />
<button class="k-button k-button-solid-base k-button-solid k-button-md k-rounded-md" onclick="addNew('#: id #', '#= value #')" ontouchend="addNew('#: id #', '#: value #')">Add new item</button>
</script>
I can't find a way to get a raw string of the instance.input.val();
Any ideas greatly appreciated,
Many thanks