i have a rad grid that allows filtering by column.
i found some great code to remove the menu items i don't want - works great. How can i rename the Display to something else?i can't find anything on that for gradGridColumn Filters. i know how to do it for the regular RadFilters, but not these guys.
thanks
rik
GridFilterMenu menu = MoveInvItemsRadGrid.FilterMenu;
int i = 0;
while (i < menu.Items.Count)
{
if (menu.Items[i].Text == "NoFilter" | menu.Items[i].Text == "StartsWith" | menu.Items[i].Text == "Contains" | menu.Items[i].Text == "EqualTo" | menu.Items[i].Text == "GreaterThan" | menu.Items[i].Text == "LessThan")
{
i = i + 1;
}
else
{
menu.Items.RemoveAt(i);
}
}
<telerik:RadRotator ID="RadRotator_Slider" PauseOnMouseOver="false" runat="server" Skin="cms" EnableEmbeddedSkins="false">
<ItemTemplate>
<asp:Image ID="Image" runat="server" style="cursor:pointer" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "Image") %>' AlternateText="" />
</ItemTemplate>
</telerik:RadRotator>
When Item is clicked, the following event is called and a redirection to
specified URL is executed:
Protected Sub RadRotator_Slider_ItemClick(o As Object, e As RadRotatorEventArgs) Handles RadRotator_Slider.ItemClick
Dim dt As DataTable = Session("DataSource")
Dim frame As RadRotatorItem = e.Item
Dim index As Integer = frame.Index
Dim Link As String = dt.Rows(index).Item("LinkAdress")
If Link <> "" Then Response.Redirect(Link)
End Sub
For some specific items, there is no URL. For those items, I would like to disable the
itemclick event and if possible, I would also like to change the cursor style when hovering
over the image back to normal. As a result, no postback action should be executed on items without url.
Is that possible?
protected void RadComboBox_StatusList_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e){ SetMessage("Hello");}<telerik:RadComboBox ID="RadComboBox_StatusList" runat="server" DataSourceID="StatusList" AutoPostBack="true" OnSelectedIndexChanged="RadComboBox_StatusList_SelectedIndexChanged" DataTextField="Status" DataValueField="StatusID" SelectedValue='<%#Bind("StatusID") %>'></telerik:RadComboBox>