Validation On Cell after change webgrid

3 replies. Last post: December 30, 2015 3:59 AM by Yudi
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Sachin JainMember

Hi,

I need to validate particular column in webgrid.

Suppose, I have multiple columns in webgrid and I want whenever I edit the particular row and particular column then validation should be happen for that particular column cell, not on other cell of that row.

After validation(suppose value is greatter than >10) do not able to change the value and give a laert message and udo the changes value(old value) in particular cell.

Note: Pending changes should not increase, as we did undo changes on that paricular cell.

I have added javascript code on webgrid1_OnAfterExitEditMode as follows:

RowObject.GetCells().GetNamedItem("ss").SetText(RowObject.GetCells().GetNamedItem("ss").Get("OldText"), true);

RowObject.GetCells().GetNamedItem("ss").SetValue(RowObject.GetCells().GetNamedItem("ss").Get("OldValue"), true);


Attached the picture for references.

Please reply ASAP.

Regards

Sachin Jain


2 attachments
All times are GMT -5. The time now is 11:42 AM.
Previous Next