Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmRadGrid Warning Icon
Message
De
26/02/2009 15:38:57
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
26/02/2009 14:25:44
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01384373
Message ID:
01384399
Vues:
24
Hi Al,

I don't have a copy of those specific controls, but the controls should be implementing all the same Interfaces that provide the extra mm functionality and behavior. If you open the mmRadGrid and find the StateChangeHandler method you will see a line that calls mmWebDataHelper.SetControlErrorMessage(); You should be able to set a breakpoint here and follow it through and make sure that StateChange is being called.

I suspect another good place to look is on the form itself to see if you have made a provision for the Error Icon to be displayed. Check out the Jump Start Web Forms Application Step 18 where a table columns are deliberately expanded to allow the space for the Error Icon to be displayed.
Tim

>Can anyone confirm if the data validation warning icon works properly with the mmRadGrid?
>
>I have a web page with a mmRadGrid. The mmRadGrid is bound to a child business object of the page's parent business object.
>
>I know the business rules are running properly and when there is a broken business rule the "Unable to process current data. See the error icons for details." message appears on my page. However, the warning icon does not appear next to the mmRadGrid.
>
>The ErrorMessage property of the mmRadGrid drives the creation of the warning icon (see below).
>
>
>        /// <summary>
>        /// Displays an error icon if the ErrorMessage property is not empty.
>        /// If the user clicks on the error icon, an alert dialog is displayed
>        /// </summary>
>        /// <param name="writer">HtmlTextWriter</param>
>        protected override void Render(HtmlTextWriter writer)
>        {
>
>            base.Render(writer);
>            if (!mmString.Empty(this.ErrorMessage))
>            {
>                string Style = this.Attributes["Style"];
>                writer.Write(mmWebDataHelper.GetErrorMessageHtml(this,
>                    this.Attributes["Style"]));
>            }
>
>            if (this.ControlID != Guid.Empty && this.Page is mmBusinessWebPage)
>            {
>                // *** If we are in security admin mode write out the security icon
>                if (((mmBusinessWebPage)this.Page).SecurityAdmin)
>                    writer.Write(mmWebDataHelper.GetSecurityIconHtml(this, this.Attributes["Style"]));
>            }
>        }
>
>
>The ErrorMessage property is never set and therefore the error icon for the mmRadGrid is not created. I've stepped through the code, but I can't find where it attempts to set the mmRadGrid's ErrorMessage property.
>
>Thanks,
>
>Al
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform