or
<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="Duplicate product not allowed" ControlToValidate="RadComboBox1" OnServerValidate="CustomValidator1_ServerValidate" >Protected Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) For Each dataItem As GridDataItem In RadGrid1.Items If args.Value = CType(dataItem("pk_productid").FindControl("RadComboBox1"), RadComboBox).Text Then args.IsValid = False End If Next End Subforeach (var status in statuslist){ RadComboBoxItem item = new RadComboBoxItem(status.StockName, status.StockStatusID.ToString()); item.Attributes.Add("Class", status.StockColor); RadComboBox1.Items.Add(item);}EnableRoundedCorners
="True" is set on the RadToolBar itself;
<telerik:RadToolBar ID="RadToolBar4" Height="30px" runat="server" Width="100%" Skin="Black" OnClientLoad="clientLoad" onbuttonclick="RadToolBar4_ButtonClick" CssClass="SeparatedButtons" OnClientDropDownOpened="dropDownOpened" EnableRoundedCorners="True" > <Items> <telerik:RadToolBarButton CommandName="Dashboard" Text="Dashboard" ID="rbDashboard" Font-Size="Medium" runat="server" Font-Names="Microsoft Sans Serif" BorderColor="LightGray" BorderStyle="Solid" BorderWidth="1px"> </telerik:RadToolBarButton> <telerik:RadToolBarButton CommandName="Documents" ID="rbDocuments" runat="server" Text="Documents" Font-Names="Microsoft Sans Serif" Font-Size="Medium" BorderColor="LightGray" BorderStyle="Solid" BorderWidth="1px"> </telerik:RadToolBarButton> <telerik:RadToolBarButton CommandName="OrgChart" ID="rbOrgChart" runat="server" Text="Organization Chart" Font-Size="Medium" Visible="false" BorderColor="LightGray" BorderStyle="Solid" BorderWidth="1px"> </telerik:RadToolBarButton> <telerik:RadToolBarDropDown Text="Please Select" Font-Size="Medium" CssClass="rightAligned" DropDownWidth="220px" BorderColor="White" BorderStyle="Solid" BorderWidth="1px"> <Buttons> <telerik:RadToolBarButton runat="server" Text="Profile" Font-Size="Medium" CheckOnClick="true" CommandName="ViewAccountProfile"> </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server" Text="Contact Us" Font-Size="Medium" CheckOnClick="true" CommandName="ContactUs"> </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server" Text="Sign Out" Font-Size="Medium" CheckOnClick="true" CommandName="SignOut"> </telerik:RadToolBarButton> <%-- <telerik:RadToolBarButton runat="server" Text="Change Password" Font-Size="Medium" CheckOnClick="true" CommandName="ChangePassword"> </telerik:RadToolBarButton>--%> </Buttons> </telerik:RadToolBarDropDown> </Items> </telerik:RadToolBar>
public override string EvaluateFilterExpression(GridFilteringItem filteringItem){ System.Diagnostics.Debug.WriteLine(string.Format("--- GridHyperlinkColumnWithComboFilter.EvaluateFilterExpression({0})", filteringItem)); var rv = base.EvaluateFilterExpression(filteringItem); System.Diagnostics.Debug.WriteLine(string.Format("--- GridHyperlinkColumnWithComboFilter.EvaluateFilterExpression({0}) returning \"{1}\"", filteringItem, rv)); return rv;}