I am using a multi select to display products a client have and want him/her to be able to select from all available products. The problem is, Only when I specify the collection of user's products in MultiSelectFor(m=>m.Products) and also .BindFor(Model.Products), only then I get the list of products selected in the multiselect. Bu I want MultiSelectFor(m=>m.Products) where products contains all user's products and when I call an action method, I want that property to contain the updated product list, i,e products currently selected in the Multiselect, i,e a user can remove or add to the products in the Products collection.
For a few reasons, we do not use the built in templates, we use our own modals. This is working just fine, except for recurring events. I can create them just fine, except for two issues:
1) if i create an event with an id, it throws an error
2) if i create without an id, it saves, but only the first instance is considered recurring, the rest show up, but are not considered recurring.
A simple dojo, i believe copied from an example here:
http://dojo.telerik.com/@TrikinCurt/atoZU
Hi Guys
Sorry , new to this drag and drop stuff!
How do I get KendoDraggable for dragging just the column Header in a Grid?
I found a fiddle Original Fiddlefor dragging the table rows to a target.. the kendoDraggable is like this.
$("tr", grid.tbody).kendoDraggable({ hint: function (e) { var item = $('<div class="k-grid k-widget" style="background-color: lightblue; color: black;"><table><tbody><tr>' + e.html() + '</tr></tbody></table></div>'); return item; }});
So I tried changing this to
$("tr", grid.thead).kendoDraggable({ hint: function (e) { var item = $('<div class="k-link" style="background-color: lightblue; color: black;"><table><thead><tr>' + e.html() + '</tr></thead></table></div>'); return item; }
But this drags all the text from all the Column headers. I just want to know the column that they dragged to the target.
I'm not sure what data I can get on the drop.. text and maybe the column index or something?
Many thanks
Rob
Hi,
I was told to ask here. Enums seem not to be supported by kendo's datasource in conjunction with OData v4 and MVC.
E.g. if I have a nullable enum property on an entity, the following issues arise:
1) The grid won't display values for such types.
2) When editing or adding new records, the datasource becomes confused and sends always the value null to the server.
Workaround:
(told me by one of Telerik's supporters today)
a) Define as foreign key to a list of enum-name/display: E.g.: columns.ForeignKey(m => m.Gender, PickItemsHelper.ToSelectList<PersonGender>(includeNull: true, useNames: true));
b) Define as of type string in the schema -> model : model.Field("Gender", typeof(string));
This now works for (1) and (2). I consider this a temporary workaround for a non-implemented part of the OData v4 spec.
However, when applying the workaround an additional issue pops up:
3) When explicitly selecting the null value (i.e. when we have a nullable enum), the datasource now sends an empty string to the server, which rejects the request as invalid because it expects either an enum name or null.
Any clues how to work around issue (3)?
Best regards,
Kasimier Buchcik
I'm trying to work off the diagram sample app, it fits exactly what I need. However, what I need to do is add text to the shapes.
I'm having trouble figuring out how to add text to the shape objects as this is my first time using Kendo UI. Do I need to edit the kendo-all-min-js file or is this something I do on the html file?
Any direction is much appreciated.
Thanks,
Hi.
I'm using "Drawing" API to generate PDF from HTML and I saw there are some limitations to use this API. Like the below.
"The content of the following elements is not rendered: <iframe>, <svg>, <input>, <textarea>, <select>."
But I really need to render these elements above in PDF, actually need to generate PDF exactly the same UI as HTML has. so do you plan to support these elements in PDF or could you suggest any solution?
Thanks,
Jinseop.
Hello,
my grid uses a row template and now I want to activate the copy to excel feature. So, I set allowCopy to true, but when I copy some selected cells to an excel sheet, the values are not displayed in the correct cells (see the attached excel file).
Is it actually possible to use this feature with row templates?
Regards
Sebastian
Hello,
I knew there was "set" function for kendo.data.ObservableObject, it could change value of specified field.
But after this action, we need call "sync" method for data source manually, and sync action will fire some events/ data bound again.
Is there another method, that we only hope sync value of specified field, without fire events and data bound again?
Thank you.
Hi, how can I get (by code) the state of some modalview? If it is opened or closed.
Regards.