This is a migrated thread and some comments may be shown as answers.

How to add text field in edit popup as resource

4 Answers 125 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 16 Feb 2015, 08:52 AM
Hi

In following example, how can I add a simple text input field in the resources for the popup edit (or create new) rather than a dropdown field?

http://dojo.telerik.com/UkaxO/3

resources: [
    {
      field: "textinupt",
      ....???
    }
  ]

Many thanks

4 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 18 Feb 2015, 07:44 AM
Hello Markus,

I already answered to this query about how to customize the resource editor in duplicated support ticket created by you - #906686 . Please keep in mind that it is highly recommended that you keep related questions in one support thread or a forum post, so that we can easily keep track of your support history and provide better answers in a shorter time.

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Markus
Top achievements
Rank 1
answered on 19 Feb 2015, 09:48 AM
Hi

Yes Vladimir you are correct, I missplaced this tread.

thank you, appologies
0
Chris
Top achievements
Rank 1
answered on 02 Feb 2017, 09:19 PM
Would you mind sharing the answer so that others may learn from it?
0
Vladimir Iliev
Telerik team
answered on 03 Feb 2017, 07:24 AM
Hi Chris,

Here is the answer from the other thread:


You can add custom "template" and "valueTemplate" for the dropDownList which to render the color as expected:

<input id=
"Owner" name="Owner" style="width: 200px" type="text"
            data-template="custom-template"
            data-value-template="custom-value-template"
 

<script type="text/x-kendo-template" id="custom-template">
    <span class='k-scheduler-mark' style='background-color:#=color#'></span>#=text#
</script>
    
<script type="text/x-kendo-template" id="custom-value-template">
    <span class='k-scheduler-mark' style='background-color:#=color#'></span>#=text#
</script>

Regards,
Vladimir Iliev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
Markus
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Markus
Top achievements
Rank 1
Chris
Top achievements
Rank 1
Share this question
or