or
Private Sub custVal_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles custVal.ServerValidate args.IsValid = ValidatedConfiguration() End SubPrivate Sub ValidatedConfiguration()' How do I access the updated values here?End Function
I would like the embedded Skins to apply their default style.
Thanks!
<telerik:RadNotification ID="AddToCartNotification" runat="server" Animation="Fade" AutoCloseDelay="5000" ContentIcon="" Height="100px" Opacity="80" Position="Center" Skin="Forest" Width="300px" EnableRoundedCorners="True" EnableShadow="True" LoadContentOn="EveryShow" oncallbackupdate="AddToCartNotification_CallbackUpdate" Title="Add to Cart Result" />protected void OnVideoRepeaterItemCommand(object source, RepeaterCommandEventArgs e){ switch (e.CommandName) { case "AddToCart": { AddItemToCart((string)e.CommandArgument); break; } }}private void AddItemToCart(string productSku){ ShoppingCartUtilities.AddToCartResult result = ShoppingCartUtilities.AddItemToCart(productSku, 1, 1); string caption = ""; string msg = ""; string icon = ""; if (result == ShoppingCartUtilities.AddToCartResult.ItemAddSucceeded) { icon = "info"; caption = "Item Added"; msg = "Item successfully added to cart"; } else if (result == ShoppingCartUtilities.AddToCartResult.ItemAddFailedMaxItemCountReached) { icon = "warning"; caption = "Maximum Count for Item Reached"; msg = "Only one copy of this video can be added to your cart"; } else { icon = "deny"; caption = "Unable to Add Item to Cart"; msg = "Add to cart failed. Sorry for the inconvenience"; } string value = string.Format("{0}|{1}|{2}", icon, caption, msg); AddToCartNotification.Value = value; AddToCartNotification.Show();}protected void AddToCartNotification_CallbackUpdate(object sender, Telerik.Web.UI.RadNotificationEventArgs e){ RadNotification notification = sender as RadNotification; if(notification == null) return; string[] vals = notification.Value.Split('|'); if (vals == null || vals.Length < 3) return; AddToCartNotification.TitleIcon = vals[0]; AddToCartNotification.Title = vals[1]; //AddToCartNotification.ContentIcon = vals[0]; AddToCartNotification.Text = vals[2];}