I'm developing webform with radgrid...it has textbox and when we type or press key in textbox it should start searching in radgrid and should disply onluy those records inside master-detail gris both...I'm new and do not have much idea...Could you please help me out??
code:
<telerik:RadGrid ID="RadGridComment" runat="server" OnItemCommand="RadGridComment_ItemCommand" AutoGenerateColumns="False" AllowMultiRowSelection="False"
GridLines="None" ShowGroupPanel="true" ShowHeader="false" MasterTableView-CommandItemDisplay="Top" >
<MasterTableView>
<CommandItemTemplate>
<asp:Table ID="tblSearch" runat="server" CssClass="search__background-image_png" Width="100%" Height="20%" CellPadding="0" CellSpacing="0">
<asp:TableRow>
<asp:TableCell Width="5%" Height="37px">
</asp:TableCell>
<asp:TableCell>
<asp:TextBox ID="txtSearch" runat="server" Width="225px" Height="20px" OnTextChanged="txtSearch_TextChanged"></asp:TextBox>
</asp:TableCell>
<asp:TableCell Width="40%" Height="25%">
<asp:RadioButton ID="rbtnSearchOption1" runat="server" GroupName="MessageSearch"
Text="Search in Titles only" Checked="true" Style="font-family: verdana; color: Black; font-style: normal;
font-size: 8pt; font-weight: lighter;" />
<asp:RadioButton ID="rbtnSearchOption2" runat="server" GroupName="MessageSearch"
Text="Search in all text" Style="font-family: verdana; color: Black; font-style: normal;
font-size: 8pt; font-weight: lighter;" />
</asp:TableCell>
<asp:TableCell Width="5%" Height="25%" HorizontalAlign="Right">
<div class="collapsed_ICON_png" >
</div>
</asp:TableCell>
<asp:TableCell Width="55%" Height="25%" HorizontalAlign="Left">
<asp:Label ID="lblSearchMsg" runat="server" Text="(1) records found" Style="font-family: Verdana;
color: Black; font-style: normal; font-size: 9pt; font-weight: lighter;"></asp:Label>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</CommandItemTemplate>
<Columns>
<telerik:GridBoundColumn SortExpression="id" Display="false" DataField="id" UniqueName="id">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Name" HeaderButtonType="TextButton" DataField="title"
UniqueName="companyName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Date" HeaderButtonType="TextButton" DataField="commentDate"
UniqueName="commentDate">
</telerik:GridBoundColumn>
<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="DeleteComment" ImageUrl="Images/delete_msg.png">
</telerik:GridButtonColumn>
</Columns>
<NestedViewSettings>
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="id" MasterKeyField="id" />
</ParentTableRelation>
</NestedViewSettings>
<NestedViewTemplate>
<asp:Panel ID="pnlNotices" runat="server" ScrollBars="Auto">
<fieldset style="padding: 10px;">
<asp:Table ID="tblMsg" runat="server">
<asp:TableRow Width="999px" Height="30px">
<asp:TableCell ID="tdcn" Text='<%#Bind("comment")%>'>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</fieldset>
</asp:Panel>
</NestedViewTemplate>
</MasterTableView>
</telerik:RadGrid>
thanks
patel