Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1290
Webgrid client side validation
posted

Hi,

I would like some insight as to how I can achieve this: 

I have an empty Webgrid which is editable - I allow users to key in data row by row on the grid and they're able to save them. However, I want to impose a restriction, that is, in the first column ("ID"), they are not allowed to key in duplicate values. How can I achieve this? 

I've been reading some stuff regarding the BeforeRowInsertHandler but I can't find any relevant examples. I'm not exactly a good javascript coder as well, would someone be so kind as to provide some sample snippets I could reference to?