开发者

Find Duplicate Values in the Gridview using Javascript

I have a following requirement. I have a Gridview contains two columns:

Model Name Model Description
Model A Model A Desc Edit Update Cancel
Model B Model B Desc Edit Update Cancel
Model C Model C Desc Edit Update Cancel

Let's whe开发者_Python百科n user click Edit link on model C then when he type Model B (Replace 'Model C' with 'Model B') then on Update link I would like to warn the user that Model B already been defined. I would appreciate your help. For your information both txtModelName and txtModelDesc are template fields.


You can user inside of template field and call a function where in there which does all of the checks you need.

If you intend to do it through javascript, I guess you will have to loop through dom entries for grid and validate.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜