187
|
General Category / EasyUI for jQuery / Re: edatagrid and post more data when want to save row
|
on: October 13, 2014, 01:06:55 PM
|
both of these solutions do something like what you've described. one updates the row data by adding to new fields, the other adds a new row to the grid. both effectively "save data", but since "save data" is concept you invented instead of an actual function, we're only left to guess what you actually want.
You'll need to be more clear, and if possible post some code showing what you have, what you tried, and show why it's "not working" and if you can, show what it would look like if it were working.
|
|
|
188
|
General Category / EasyUI for jQuery / Issues with propertygrid('beginEdit', i)
|
on: October 13, 2014, 01:01:11 PM
|
I'm trying to get a "tab to next field" feature working. I have it working for editor:"text" but for combobox I'm seeing weirdness. clicking works as expected, but $(x).propertygrid('selectRow', i).propertygrid('beginEdit', i); is making it into a text field instead of the combo. seems to be a problem with beginEdit. Should I be doing this differently since it's a propertygrid? here's what I've got http://cw.archreactor.org/test/test.html this is actually generated via a template system, which is why there's hidden elements and 2 blocks of javascript. I've left it in just in case it's causing a problem I'm not aware of.
|
|
|
192
|
General Category / EasyUI for jQuery / Re: required radiobuttons in a form
|
on: September 18, 2013, 08:00:16 AM
|
I have made a validator for radio buttons. $.extend($.fn.validatebox.defaults.rules, { requireRadio: { validator: function(value, param){ var input = $(param[0]); input.off('.requireRadio').on('click.requireRadio',function(){ $(this).focus(); }); return $(param[0] + ':checked').val() != undefined; }, message: 'Please choose option for {1}.' } });
it used by adding it to only the first radio in a group. adding to all is no harm, it just wastes CPU. <input class="easyui-validatebox" type="radio" name="yes_no" value="1" data-options="validType:'requireRadio[\'#ff input[name=yes_no]\', \'Yes or no\']'">Yes
<input class="easyui-validatebox" type="radio" name="yes_no" value="0">No
|
|
|
195
|
General Category / EasyUI for jQuery / Re: Datagrid: Performance issues
|
on: September 05, 2013, 12:14:48 PM
|
the client side paging and large data examples seem to handle 1000 rows just fine. are you sure it's not the server side code the data comes from? or is each row really large making the actual data 10 times what the examples do?
|
|
|
|