numeric mvvm not updating programmatically

3 posts, 0 answers
  1. Neeraj
    Neeraj avatar
    139 posts
    Member since:
    May 2015

    Posted 11 Sep 2017 Link to this post

    Hello, I have nested kendo templates . so at inner most template the code for kendo numeric is as below :

    <script id="CustomerHeadsT" type="text/x-kendo-template" class="KendoExtTemplate">
            <input data-role="numerictextbox" data-bind="value: Gross_Fare">
            <input data-role="numerictextbox" data-bind="value: Fee.TotalFee"  data-value-update="keyup"> <button type="button" data-role="button"
                   data-icon="edit" data-bind="click: OpenCustomerFeeGrid"></button>
            <div data-role="window" id="CustomerfeeWindow"
                 data-title="Customer Fee Breakup" data-modal="true"
                 data-height="150"  data-visible="false"
                 data-bind="events: { open: onCustomerFeeWindowOpened, close: onCustomerFeeWindowClose }">
                <!--<div id="FeeGridContainer" data-template="FeeGrid" data-bind="source: FeeBreakup"></div>-->
                <div data-role="grid"
                     data-toolbar="['create', 'save']"
                                     { 'field': 'FeeCurrency', 'width': 270 }
                     data-bind="source: FeeBreakup"></div>

    The Gross_Fare and Fee.TotalFee doesnt get binding programatically using set() . The values in viewModel from controller gets set in template but i am not able to change value using set() and ViewModel doesnot get updated if value changed from UI

  2. Neeraj
    Neeraj avatar
    139 posts
    Member since:
    May 2015

    Posted 11 Sep 2017 in reply to Neeraj Link to this post

    Its working . there was mistake on my code itself. 
  3. Alex Hajigeorgieva
    Alex Hajigeorgieva avatar
    1082 posts

    Posted 13 Sep 2017 Link to this post

    Hello Neeraj,

    Thank you for the provided code snippet. 

    I will need some more details regarding the exact scenario.You mentioned that the Kendo UI NumericTextBox is nested. Could you please use the below Dojo to replicate the issue which you are experiencing and provide the URL for the updated example? (The Dojo generates a new URL automatically with every change):

    Look forward to hearing back from you.

    Alex Hajigeorgieva
    Progress Telerik
    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.
Back to Top