English 中文(简体)
jqGrid Save 单元方法除草剂外没有任何回报。 能够做到真实/真实,或能够绕过呼吁拯救火体?
原标题:jqGrid saveCell method returns nothing except gridelement. can i get true/false or can i pass a callback to saveCell?
  • 时间:2011-06-15 11:36:45
  •  标签:
  • jqgrid

我正在使用jqgrid 3.8。 我有一个电网,有一部分可调栏。 我还有一个更新的纽子,以拯救服务器上的电网内容。

如果用户点击沉积电池并改变内容,然后点击更新的纽顿,则会做以下事情。

first i am calling jqGrid savecell method with iRow, iCol. here the cell is being saved/ showing popup for validations.

但是,我希望得到一个警示,以了解牢房是否得到救治,而不是能够停止或继续我的储蓄功能。

我的样本代码也一样。

function updateGrid(){
        // i have iRow, iCol references in beforeEditCell event as grideditRow, grideditCol.. these values r not getting modified nowhere else..
    $(gridid).jqGrid( saveCell , grideditRow, grideditCol);

    //logic to get grid data using getchangedcells and send ajax call to server.
    var changedCells = $(gridid).jqGrid( getChangedCells ,  dirty );
}

how can i stop update logic after saveCell call if savecell is failed. saveCell is returning only jqgrid element.

是否有任何机制能够真正获得/拯救荣誉,或能够通过某种追索来挽救大脑?

最佳回答
问题回答

暂无回答




相关问题
Retrieving original row data from jqGrid

It is possible to use the getRowData method to retrieve the current of a cell but this retrieves the current cell content rather than the original data before it went through the formatter. How do I ...

How to programmatically select top row of JQGrid?

How does one programmatically select the top row of a JQGrid. I want to have the top row already selected when it is opened on the page. My grid is sorted by a descriptive column so the first row s id ...

Blank when NaN in jqGrid cells

How to set blank instead of NaN in jqGrid cells ? Using formatter ? Is there an example?

complete jqGrid?

Please, can anyone tell me how to use jqGrid? I want to do edit, add & delete functionality. Also I want to show an image in the grid Please tell me, what can I do, and how can I do?

jqGrid: is there an event for when columns are reordered?

I m using the column reordering feature in jqGrid $grid = jQuery("#list").jqGrid({ sortable:true, ... }); Is there an event that fires after columns are re-ordered? If there is, I can t see ...

Wrapping Text lines in JqGrid

Can you get lines of text to wrap in JqGrid? I have had a look round but i can t find anything.

using jqgrid style for usual Table in asp.net mvc

I d prefer using Table and td instead of JqGrid but i like JqGrid styles. has anyone used jqgrid style for usual Grid of asp.net MVC(i mean Table and td) before?

热门标签