Hi,
I have a situation where I have One control that is used to enter Exercise Equipment, it is called the Equipment Maint. This EquipmentMaint has two child controls (programs). One allows you to enter the
type of equipment, the other child control allows you to enter the location of the equipment.
Each child control program uses a RadToolTip to accept the name of the type or name of the location. I am trying to use a
asp:RequiredFieldValidator in each child control program to make sure there is a name entered.
When I click on the "Add new Location", the RadToolTip appears that allows me to enter the location name. The problem is that even though I enter the location name, the RadToolTip stays on the screen. I found out that this happens because even though the Type name RadToolTip has not been called yet, the
asp:RequiredFieldValidator placed in both control programs requires both controls to have thier particular name field populated. In other words, even though the Location program RadToolTip name field is populated, its RadToopTip will not go away until the type name is populated, and, even though the type location program RadToolTip name field is populated, its RadToopTip will not go away until the location name is populated
I read this ....
6. RequiredFieldValidator inside the RadToolTip
When you use a RequiredFieldValidator inside a RadToolTip you add the RequiredFieldValidator to the page, not only to the displayed in the tooltip part of it. After that, when you click any of your page’s elements which cause validation, those trigger the check of the validator, which fails even if the content of the tooltip is invisible. That is why, in such scenarios you have to set the CausesValidation property to false for all elements on the page that do not require it.
So, I guess my question is obvious - how do I handle validation in this scenario.
Is there a telerik efficient way to do this ?
thanks
| EditorDropDown ddn = new EditorDropDown("TranslateTool"); |
| ddn.Text = "Translate"; |
| ddn.Width = new Unit("130px"); |
| e1.Tools[0].Tools.Insert(0,ddn); |
| RadEditor e1 = new RadEditor(); |
| e1.ID = string.Format("RadEdt{0}_{1}",ID,fldName); |
| e1.ToolbarMode = EditorToolbarMode.ShowOnFocus; |
| e1.Content = desc.LongVal; |
| e1.Width = memoWidth; |