jQWidgets Forums

jQuery UI Widgets Forums ASP .NET MVC Bug in tag helper

This topic contains 1 reply, has 1 voice, and was last updated by  Derek Broughton 7 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Bug in tag helper #98606

    Derek Broughton
    Participant
    <jqx-grid source-id-for="@(towEvent.EventId)"
                theme="bootstrap"
                edit="@Url.Action("Edit", "TowEvent")"
                source="Model.Tow.DataEntryEvent"
                ready="alert('in ready');">
        <jqx-grid-columns>
    ...
        </jqx-grid-columns>
    </jqx-grid>

    generates ..., ready: function() {alert('in ready'();},... in the new jqxGrid options (spurious left parenthesis).

    Changing the ready attribute to ready="alert('in ready'); null;"> generates working code. [Leaving out the trailing semicolon: ready="alert('in ready') was even worse, as it dropped the trailing single quote, too]

    Bug in tag helper #98608

    Derek Broughton
    Participant

    Actually, I was wrong. The code still isn’t right with the null; statement added, it’s just syntactically correct and can be made to work by defining a function nul() in my script! Even if the intention is that the argument should just be the name of a function to call (which is odd, since all the column helpers use anonymous functions), it’s truncating the text you give it.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.