| <telerik:RadToolBarButton runat="server" Group="Filtering" Text="Filter Options" Value="Filter Options"> |
| <ItemTemplate> |
| <div style=" |
| padding-left:10px; padding-right:10px; padding-top:8px;"> |
| <asp:Label ID="lblFilterName" runat="server" Text="Filter: "></asp:Label> |
| <telerik:RadComboBox |
| ID="comboFilterList" |
| runat="server" |
| AllowCustomText="true" |
| EmptyMessage="[Enter a Filter Name...]" AutoPostBack="False" OnClientKeyPressing="clientKeyPressing"></telerik:RadComboBox> |
| <asp:ImageButton ID="btnRun" runat="server" ImageUrl="~/Images/Regular/16x16/Symbol Green/Symbol Green Play.png" ToolTip="Run the grid filter now." /> |
| <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Disabled/16x16/Symbol Green/Symbol Green Configuration.png" ToolTip="Save Filter: enter a filter name in the textbox to enable this button." /> |
| <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="~/Images/Disabled/16x16/Symbol Green/Symbol Green Delete.png" ToolTip="Delete Filter: select a filter from the dropdown list to enable this button." /> |
| </div> |
| </ItemTemplate> |
| </telerik:RadToolBarButton> |
| function clientKeyPressing(sender) { |
| var txt = sender.get_text(); |
| var toolbar1 = $find("<%= RadToolBar1.ClientID %>"); |
| var filterbutton1 = toolbar1.findItemByValue("Filter Options"); |
| var btnRun = filterbutton1.findControl("btnRun"); |
| var btnSave = filterbutton1.findControl("btnSave"); |
| var btnDelete = filterbutton1.findControl("btnDelete"); |
| var combo = filterbutton1.findControl("comboFilterList"); |
| } |
| sys.webforms.pagerequestmanagerserverexception: failed to load viewstate the control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. for example when adding the controls dynamically, the controls added during the post-back must match the type and position of the controls added during the initial request |
<Telerik:RadAjaxPanel ID="rapBadgeColour" runat="server" EnableAJAX="true" >
<Telerik:RadComboBox ID="rcbBadgeColour" runat="server" DataTextField="Description" DataValueField="BadgeColour" Skin="Vista" MarkFirstMatch="True" Width="250px" AutoPostBack="true" HighlightTemplatedItems="True" OnSelectedIndexChanged="DoElementChanged">
<ItemTemplate>
<table style="border-bottom: 1px dotted #EFEFEF; margin-bottom: 10px; font-size: 11px;" width="98%">
<tr>
<td>
<asp:ImageButton ID="imgImage" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "img") %>' AlternateText='<%# DataBinder.Eval(Container.DataItem, "Description") %>' />
</td>
<td>
<%
# DataBinder.Eval(Container.DataItem, "Description") %>
</td>
</tr>
</table>
</ItemTemplate>
<CollapseAnimation Duration="200" Type="OutQuint" />
</Telerik:RadComboBox>
</Telerik:RadAjaxPanel>
Thanks
Rob
I am setting the property EmptyMessage at design time:
<telerik:RadTextBox ID="txtSearch" Runat="server" MaxLength="50" Width="100%" EmptyMessage="Enter search criteria here" CssClass="searchTextBox" />
The text "Enter search criteria here" is displayed when the textbox does not have focus and gets hidden when getting focus. So far behaving as expected. Now, if I press ESC twice while the textbox has focus, the text is displayed and becomes editable. Also, if there is text, pressing ESC once deletes the entered text.
Regards.
AlternatingItemStyle-BackColor. After settting this property I cannot see the row selection color for the alternate rows. It looks like the
AlternatingItemStyle-BackColor is overriding the row selection color. It looks like a bug. Is there any workaround to fix this.