I Want to use validatorcallout extendor with Infragistic webdataedit controls
can any one tell me how i can use it , because i tryed it but error massage popup at wrong place
Hi,
I looked at implementation of AjaxControlToolkit.ValidatorCalloutBehavior and found that it relies on "target" html element which should be <input> and which id (elt.controltovalidate) is assumed to be equal to the ClientID of control on server.
That means that target can be only a simple control like asp:TextBox which renders its single <input> element with expected id. In order to support built-in dot-net validators, the WebTextEdit uses hidden element with id equal to ClientID. The id of actual visible <input> is different and it may depend on other properties (like enabled/disabled spin buttons).
Unfortunately WebTextEdit and any its extension is not compatible with ValidatorCalloutBehavior.
Hi
thanks for reply , but i show in one site one guys taoking about hardcoding some thing in source file and it would be work , can you explain me how and where
i aprriciate your help
this is site path
http://forums.archive.infragistics.com/readmessage?id=%3C336a409b$2d96b370$519d1c@news.infragistics.com%3E&group=infragistics.products.netadvantage.aspnet.webdatainputce code change
Hi Viktor
thanks for all help , i aprriciate that
I did follow all step which you told me and i tryed to find out dll in GAC but it's not there (gacutil -l)
I deleted all file from temporary folder and cache , but it's still not working , i don't know what i should to do now
i download new toolkit and extract that zip file and add new tab but no success , let me know how to find out dll is in the hard drive or not
Thanks
siya
Hi Siya,
Maybe last time I was confused about GAC. The easiest way to check if dll in GAC, is to open windowexplorer and look at list of files in c:\windows\assembly.
To remove dll from GAC you may select that file and hit delete-key. To add dll to GAC, you may find that dll on your hard-drive and drag it (mouse+ctrl) to that directory.
To find file on your computer, you may open windowexplorer, select c:, right mouse click on it, select "Search...", type-in string into "file name" and hit "Search" button.
If all that does not help, then I think, you should ask Microsoft for exact steps to rebuild/customize their toolkit dll.
Hello Viktor,
I found your solution to make the ValidatorCalloutExtender position properly with WebTextEdit. I found one other issue. Let's say you have 4 required fields on a form. You click the submit button without filling in any value. The first field will have the required message. When you complete that field, click the submit button again. Don't tab to the next field. You won't see the required message for the second field, until you place your cursor in the field. This doesn't happen with the regular textbox control. Do you know how to fix that?
Thank you,
Trent
I found the solution at http://robrich.org/archive/2008/03/27/validator-callout-doesnt-display-on-second-control-after-fixing-first.aspx.
It looks like in Infragistics 2012, the hidden fields does not begin with "igtx" anymore. So now the message appears in the upper left corner again.
Infragistics 2009 source code for masked editor field: (working properly)
I found the solution. It looks like with Infragistics 2012, the control has ":v:" after it. So I just updated Client\MicrosoftAjax.Extended\ValidatorCallout\ValidatorCalloutBehavior.pre.js with the following change:
var elementToValidate = this._elementToValidate = $get(elt.controltovalidate.replace(":v:", ""));
Now the ValidatorCalloutExtender appears in the proper position.
I tried that too but it didn't work. I downloaded AjaxControlToolkit.Source.zip file from:
http://ajaxcontroltoolkit.codeplex.com/releases/view/65800
Do you what else I need to change?
Thanks,
Hi Trent,
You probably refer to difference between old WebMaskEdit and new WebMaskEditor controls. Those are completely different controls, though, they use similar functionality.
I guess in your codes you should remove prefix "igtxt" and use something like
elem = $get(elt.controltovalidate);