| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!IsPostBack) |
| { |
| this.rcbCategory.DataSource = PublisherServer.Categories(); |
| this.rcbCategory.DataTextField = "Name"; |
| this.rcbCategory.DataBind(); |
| this.rcbCategory.SelectedIndex = -1; |
| } |
| } |
| function itemOnClick_handler(sender, args) { |
| $find('<%= ActiveSlide.ClientID %>').InitialItemIndex = args.get_item().get_index(); |
| $find('<%= ActiveSlide.ClientID %>').InitialItemIndex = sender.CurrentItemIndex(); |
| $find('<%= ActiveSlide.ClientID %>').InitialItemIndex = sender.get_item().get_index(); |
| $find('<%= ActiveSlide.ClientID %>').InitialItemIndex = args.get_item().CurrentItemIndex(); |
| } |
| Are any of the above close? Here's my rotator: |
| <telerik:RadRotator ID="ThumbRotator" runat="server" RotatorType="FromCode" Width="628" Height="118px" ItemHeight="118" ItemWidth="157" ScrollDuration="500" FrameDuration="3000" ScrollDirection="Left" PauseOnMouseOver="false"
OnClientItemShowing
="itemShowing_handler" OnClientItemClicked="itemOnClick_handler" > |
| <ItemTemplate> |
| <div class="itemTemplate"> |
| <asp:Label ID="hlnkThumbTitle" runat="server" Font-Names="Arial" Font-Size="XX-Small" Text='<%# DataBinder.Eval(Container.DataItem, "thumbTitle") %>'></asp:Label> <br /> <img src='<%# DataBinder.Eval(Container.DataItem, "thumbImage") %>' alt='<%# DataBinder.Eval(Container.DataItem, "thumbTitle") %>' class="RotatorImage" width="85px" height="60" /> |
| </div> |
| </ItemTemplate> |
| <ControlButtons LeftButtonID="img_left" RightButtonID="img_right" /> |
| <SlideShowAnimation Type="Fade"></SlideShowAnimation> |
| </telerik:RadRotator> |
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function myFunction()
{
alert('testing');
}
</script>
</telerik:RadCodeBlock>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="SqlDataSource1" GridLines="None">
<HeaderContextMenu EnableAutoScroll="True">
</HeaderContextMenu>
<MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
<RowIndicatorColumn>
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<Columns>
<telerik:GridButtonColumn CommandName="Select" Text="Select" UniqueName="column">
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
<ClientSettings Selecting-AllowRowSelect="true">
<Selecting AllowRowSelect="true" />
<ClientEvents OnRowSelected="myFunction" />
</ClientSettings>
</telerik:RadGrid>
| var tree = $find('<%=rpbPanelBar.Items(0).Controls(0).FindControl("rtvTreeView").ClientID %>'); |
| for (var k = 0; k < tree.get_selectedNodes().length; k++) { |
| var node = tree.get_selectedNodes()[k]; |
| var i = node.get_value(); |
| alert(i); |
| } |
| <telerik:GridBoundColumn DataField="Name" HeaderText="Applicant Name"> |
| <FilterTemplate> |
| <telerik:RadComboBox ID="ddlApplicantName" AppendDataBoundItems="true" Width='190px' |
| Skin='Office2007' MarkFirstMatch="true" AllowCustomText="true" runat="server" |
| DataSourceID="CurrentPostingOtherName" DataTextField="Name" DataValueField="Name" |
| OnClientSelectedIndexChanged="NameChange" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Name").CurrentFilterValue %>'> |
| <Items> |
| <telerik:RadComboBoxItem Text="All" /> |
| </Items> |
| </telerik:RadComboBox> |
| <telerik:RadScriptBlock ID="RadScriptBlock4" runat="server"> |
| <script type="text/javascript"> |
| function NameChange(sender, args) { |
| var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>"); |
| tableView.filter("Name", args.get_item().get_value(), "EqualTo"); |
| } |
| </script> |
| </telerik:RadScriptBlock> |
| </FilterTemplate> |
| </telerik:GridBoundColumn> |
This is the RadComboBox using header and item templates. Can I add textboxes and buttons to allow quick filtering of the content of the column.upon clicking the “apply filter” button, , this would likely involve an AJAX call to refresh the bound context table for the dropdown. It should look similar to the filters on the grid.
Regards
Ravi
mcamail2002@gmail.com
www.yourtechniche.com
