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
180
Validation Group and UltraWebToolbar
posted

Hi,

I have two save buttons on page. One is on UltraWebToolbar and the other is in the grid (for Inline editing).

I want to validate some controls using Save on UltraWebToolbar and not the contents in the grid. I added Validation group to buttons and controls in the grid as Group1 and then to other controls which UltraWebToolbar save should validate as Group2. I tried using javascript Page_clientValidate('Group2') for client click of Toolbar and if it is false I am doing frm.Submit to save data in the controls outside grid.

The problem is when page postback after clicking Save and Page_clientValidate('Group2') == true, then other I get messages from other validation group. The same doesnt happen when I click Save from inside grid (Inline edit). That validates only controls within the grid as both butoon and control has Validation group == Group1.

Can anyone tell me how to add Validation group to Toolbar (I think it will solve my problem)?

Is there any other way that u can think of (if not first one)?

Thanks,

Pandu.