views:

185

answers:

1

Hi all,

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 when 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.

Thanks in advance!.

A: 

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.

Shivendra