Hi,
I've got a problem whereby when I have a combobox that has a parent the required field validator ends up on a new line on the second combobox.
I've really cut down the code to the bare minimum to function and have the code shown at the bottom of this post. If it is executed then you'll see on the second combo box there is an extra line below it. Remove the combo boxes from the AJAX manager and this issue disappears (but obviously the functionality is lost).
Having stripped down the code the only difference between the two is that the second combobox gets wrapped in a div called uxCompanyContactControl_uxContactIDPanel - it's this div that seems to throw the required field validator onto a new line. I'm guessing that this is the content that will be replaced when the Company changes.
How do I fix this?
Also I really like the way that the radnumerictextbox shows bad data with the ! icon inside the field. I've made my code so that the error icon goes over the top of the combo box. Is there any intention of having a built in validator for the combo box? Finally have you a link to the icon that is used for the numerictextbox as that one is nicer than the one I use.
Code follows below.
Best Regards,
Jon
I've got a problem whereby when I have a combobox that has a parent the required field validator ends up on a new line on the second combobox.
I've really cut down the code to the bare minimum to function and have the code shown at the bottom of this post. If it is executed then you'll see on the second combo box there is an extra line below it. Remove the combo boxes from the AJAX manager and this issue disappears (but obviously the functionality is lost).
Having stripped down the code the only difference between the two is that the second combobox gets wrapped in a div called uxCompanyContactControl_uxContactIDPanel - it's this div that seems to throw the required field validator onto a new line. I'm guessing that this is the content that will be replaced when the Company changes.
How do I fix this?
Also I really like the way that the radnumerictextbox shows bad data with the ! icon inside the field. I've made my code so that the error icon goes over the top of the combo box. Is there any intention of having a built in validator for the combo box? Finally have you a link to the icon that is used for the numerictextbox as that one is nicer than the one I use.
Code follows below.
Best Regards,
Jon
<telerik:RadScriptManager ID="uxRadScriptManager" runat="server"></telerik:RadScriptManager> |
<telerik:RadStyleSheetManager ID="uxRadStyleSheetManager" Runat="server"></telerik:RadStyleSheetManager> |
<telerik:RadAjaxManager ID="uxRadAjaxManager" runat="server"> |
<ajaxsettings> |
<telerik:AjaxSetting AjaxControlID="uxCompanyID" > |
<updatedcontrols> |
<telerik:AjaxUpdatedControl ControlID="uxContactID" /> |
</updatedcontrols> |
</telerik:AjaxSetting> |
<telerik:AjaxSetting AjaxControlID="uxSaveButton"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="uxSaveButton" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</ajaxsettings> |
</telerik:RadAjaxManager> |
<table cellpadding="0" cellspacing="0" > |
<tr> |
<td>Company:</td> |
<td> |
<telerik:RadComboBox ID="uxCompanyID" Runat="server" EmptyMessage=" - Select an Company - " AllowCustomText="true" DataTextField="Name" DataValueField="CompanyID" CssClass="halfWidthComboBox" MarkFirstMatch="True" DropDownWidth="300" CausesValidation="false" AutoPostBack="True" SelectedIndexChanged="uxCompanyID_SelectedIndexChanged"></telerik:RadComboBox> |
<asp:RequiredFieldValidator ID="uxCompanyIDReq" runat="server" ControlToValidate="uxCompanyID" ErrorMessage="RequiredFieldValidator" Text="<img src='/blank.gif' alt='Required field' class='errIconCombo' />" Width="0"></asp:RequiredFieldValidator> |
</td> |
<td>Contact:</td> |
<td> |
<telerik:RadComboBox ID="uxContactID" Runat="server" EmptyMessage=" - Select a Company - " AllowCustomText="true" DataTextField="Name" DataValueField="ContactID" CssClass="halfWidthComboBox" MarkFirstMatch="True" DropDownWidth="300"></telerik:RadComboBox> |
<asp:RequiredFieldValidator ID="uxContactIDReq" runat="server" ControlToValidate="uxContactID" ErrorMessage="RequiredFieldValidator" Text="<img src='/blank.gif' alt='Required field' class='errIconCombo' />" Width="0"></asp:RequiredFieldValidator> |
</td> |
</tr> |
</table> |
<asp:Button ID="uxSaveButton" runat="server" Text="Save" /> |