Click here to Skip to main content
15,121,230 members
Home / Discussions / JavaScript
   

JavaScript

 
Question8yr JS now giving me console error in FF and CHROME Pin
Member 1514660811-Apr-21 10:07
MemberMember 1514660811-Apr-21 10:07 
AnswerRe: 8yr JS now giving me console error in FF and CHROME Pin
Richard Deeming11-Apr-21 22:29
mveRichard Deeming11-Apr-21 22:29 
GeneralRe: 8yr JS now giving me console error in FF and CHROME Pin
Member 1514660812-Apr-21 4:00
MemberMember 1514660812-Apr-21 4:00 
GeneralRe: 8yr JS now giving me console error in FF and CHROME Pin
Richard Deeming12-Apr-21 4:09
mveRichard Deeming12-Apr-21 4:09 
GeneralRe: 8yr JS now giving me console error in FF and CHROME Pin
Member 1514660812-Apr-21 4:14
MemberMember 1514660812-Apr-21 4:14 
GeneralRe: 8yr JS now giving me console error in FF and CHROME Pin
Richard Deeming12-Apr-21 4:39
mveRichard Deeming12-Apr-21 4:39 
GeneralRe: 8yr JS now giving me console error in FF and CHROME Pin
Member 1514660812-Apr-21 5:00
MemberMember 1514660812-Apr-21 5:00 
QuestionKendo UI for jQuery Combobox noDataTemplate Not Loading Pin
Hypermommy5-Apr-21 10:35
MemberHypermommy5-Apr-21 10:35 
Hi all,

Hope I'm asking this in the right place. I'm using this example from Telerik but am having no luck at all getting the NoDataTemplate to show.
Add new item in jQuery ComboBox Widget Demo | Kendo UI for jQuery[^]

My cshtml looks like this (there's a form tag higher up in case that's important):

HTML
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
  <input id="SegmentGroup" style="width: 100%;" />

  <script id="noDataTemplate" type="text/x-kendo-tmpl">
    <div>
      No data found. Do you want to add new item - '#: instance.text() #' ?
    </div>
    <br />
    <button class="k-button" onclick="addNew('#: instance.element[0].id #', '#: instance.text() #')">Add new item</button>
  </script>
</div>


And my initialization of the combobox looks like this:

C#
BCA.Configurator.CodeStringSegment.LoadSegmentGroups = function () {

        var crudServiceBaseUrl = BCA.rootUrl + "eConfigurator";

        var dataSource = new kendo.data.DataSource({
            transport: {
                read: {
                    url: crudServiceBaseUrl + "/PrConf/RetrieveSegmentGroups",
                    dataType: "json",
                    type: "POST"
                },
            },
            schema: {
                model: {
                    id: "Key",
                    fields: {
                        Key: { type: "number" },
                        Value: { type: "string" }
                    }
                }
            }
        });

        $("#SegmentGroup").kendoComboBox({
            filter: "startswith",
            dataTextField: "Value",
            dataValueField: "Key",
            dataSource: dataSource,
            placeholder: "Select Pricing Group",
            noDataTemplate: $("#noDataTemplate").html(),
            filtering: BCA.Configurator.CodeStringSegment.CheckForNewSegmentGroup,
        });
    }


When I type "cf" (because I know nothing in the list starts with that combination of letters) absolutely nothing happens that I can see. Any idea why?

Thanks in advance, all,
Denise

Questionquirks with use of Audio() Pin
Derell Licht31-Mar-21 17:03
professionalDerell Licht31-Mar-21 17:03 
QuestionBizarre JSON parse problem Pin
intoittendenz29-Mar-21 0:27
Memberintoittendenz29-Mar-21 0:27 
AnswerRe: Bizarre JSON parse problem Pin
Richard Deeming29-Mar-21 1:36
mveRichard Deeming29-Mar-21 1:36 
QuestionCreating a JSON body payload in plain JavaScript Pin
jkirkerx27-Mar-21 10:46
professionaljkirkerx27-Mar-21 10:46 
AnswerRe: Creating a JSON body payload in plain JavaScript [solved] Pin
jkirkerx27-Mar-21 11:52
professionaljkirkerx27-Mar-21 11:52 
GeneralRe: Creating a JSON body payload in plain JavaScript [solved] Pin
intoittendenz29-Mar-21 2:01
Memberintoittendenz29-Mar-21 2:01 
QuestionCannot figure out what code lines does mean ... Pin
Member 1501261727-Mar-21 1:01
MemberMember 1501261727-Mar-21 1:01 
AnswerRe: Cannot figure out what code lines does mean ... Pin
Member 1501261727-Mar-21 1:03
MemberMember 1501261727-Mar-21 1:03 
AnswerRe: Cannot figure out what code lines does mean ... Pin
Peter_in_278027-Mar-21 1:54
professionalPeter_in_278027-Mar-21 1:54 
GeneralRe: Cannot figure out what code lines does mean ... Pin
Member 1501261727-Mar-21 22:40
MemberMember 1501261727-Mar-21 22:40 
GeneralRe: Cannot figure out what code lines does mean ... Pin
Member 150126178-Apr-21 23:49
MemberMember 150126178-Apr-21 23:49 
AnswerRe: Cannot figure out what code lines does mean ... Pin
Richard Deeming28-Mar-21 23:29
mveRichard Deeming28-Mar-21 23:29 
GeneralRe: Cannot figure out what code lines does mean ... Pin
Member 150126178-Apr-21 23:49
MemberMember 150126178-Apr-21 23:49 
QuestionRedirect with (Page Visibility API) Pin
ab smine19-Mar-21 11:38
Memberab smine19-Mar-21 11:38 
QuestionNode-Schedule Module Can't Cron Job Scheduled Long Time Pin
Barış KAHRAMAN19-Mar-21 11:02
MemberBarış KAHRAMAN19-Mar-21 11:02 
QuestionCalculation in javascript Pin
Krasimir Dermendzhiev16-Mar-21 4:31
MemberKrasimir Dermendzhiev16-Mar-21 4:31 
AnswerRe: Calculation in javascript Pin
Richard Deeming16-Mar-21 5:39
mveRichard Deeming16-Mar-21 5:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.