Hi,
I want to validate some cells in a ultrawebgrid in the client side, how can I do that?.
I tried the follow code, but it validates all ultrawebgrid's cells
function grdPrincipal_BeforeExitEditModeHandler(gridName, cellId, newValue) {var cell = igtbl_getCellById(cellId);var grid = igtbl_getGridById(gridName);var currentValue = cell.getValue();if (newValue == null || newValue == '') {alert('');EditCell();return 1;}}
Can you help me please.
Thanks
torresann said:Thank for your help, but I only know the column's name that I want to validate in ther server side, how can I do to use tag property in the client side?.
Wow was I off the mark in my last comment. I didn't notice which forum we were in.
Sounds like you need a hidden field to pass the column name from server to client side. Another way to do it would be to register a startup script as follows:
ClientScript.RegisterClientScriptBlock(Me.[GetType](), "ColumnName", "<script type='text/javascript'> var ColumnName = " + YourColumnNameInfo + ";</script>"). Then a variable ColumnName would be available on your client side.
Ed
Thank for your help, but I only know the column's name that I want to validate in ther server side, how can I do to use tag property in the client side?.
thanks
You already have a reference to the cell that was edited, based on the following line:
torresann said:var cell = igtbl_getCellById(cellId);
Thanks for your answered.
I 'm programming a ultrawebgrid dynamically , and I need to specify what columns are required, only that columns I want to validate.
Thank you.