|
Title: Treegrid calculation Post by: bduguay on February 06, 2015, 01:27:17 PM I have a treegrid in which I have 2 numberbox editors. I would like to multiply the 2 values, when the values have changed, to create the total in a 3rd column, which I don't want to have an editor.
Code: $('#tt').treegrid({The onChange code is what I'm unsure of. At the very least, if I were to need to set the total column to have an editor, I would just need to know how to set the field as readonly or disabled so that the user can't change the value. Any help is appreciated. Thank you. Title: Re: Treegrid calculation Post by: stworthy on February 06, 2015, 05:45:47 PM Please try the code below, be sure to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.1-patch.zip and include it to your page.
Code: <script type="text/javascript" src="../../jquery.min.js"></script> |