Hi
I am use RadToolBar in my website,and below is source code
<telerik:RadToolBar ID="Searchbar" OnClientButtonClicking="Searchbar_OnClientButtonClicked" style="z-index:90001" runat="server">
<Items>
<telerik:RadToolBarDropDown ImageUrl="images/buttons/icon_search content.png">
<Buttons>
<telerik:RadToolBarButton Width="135px" ImageUrl="images/buttons/icon_document name.png" Text="Document Name" ></telerik:RadToolBarButton>
<telerik:RadToolBarButton ImageUrl="images/buttons/icon_search content.png" Text="Content Search" ></telerik:RadToolBarButton>
<telerik:RadToolBarButton ImageUrl="images/buttons/icon_search keyword.png" Text="Keyword Search" ></telerik:RadToolBarButton>
<telerik:RadToolBarButton ImageUrl="images/buttons/icon_profile search.png" Text="Profile Search" ></telerik:RadToolBarButton>
</Buttons>
</telerik:RadToolBarDropDown>
<telerik:RadToolBarButton Value="TextBtn" >
<ItemTemplate>
<telerik:RadTextBox ID="mainSearchTxt" onkeyup="mainSearchTxt_keyup(event,id)" EmptyMessage="Content Search" Width="220px" runat="server">
</telerik:RadTextBox>
</ItemTemplate>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton Text="Search" ></telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>
And below is javascript code mainSearchTxt_keyup(event,id) function
function mainSearchTxt_keyup(e, id) {
//alert("Hai")
var rtbar = $find("ctl00_ContentPlaceHolder1_Searchbar");
var tbarbtn = rtbar.findItemByValue("TextBtn");
var rtbox = tbarbtn.findControl("mainSearchTxt");
var txtval =rtbox.get_value()
}
In txtval i didnt get vlaue,but if i enable alert msg then i get value in txtval
Pls reply asap
Aravind
I am use RadToolBar in my website,and below is source code
<telerik:RadToolBar ID="Searchbar" OnClientButtonClicking="Searchbar_OnClientButtonClicked" style="z-index:90001" runat="server">
<Items>
<telerik:RadToolBarDropDown ImageUrl="images/buttons/icon_search content.png">
<Buttons>
<telerik:RadToolBarButton Width="135px" ImageUrl="images/buttons/icon_document name.png" Text="Document Name" ></telerik:RadToolBarButton>
<telerik:RadToolBarButton ImageUrl="images/buttons/icon_search content.png" Text="Content Search" ></telerik:RadToolBarButton>
<telerik:RadToolBarButton ImageUrl="images/buttons/icon_search keyword.png" Text="Keyword Search" ></telerik:RadToolBarButton>
<telerik:RadToolBarButton ImageUrl="images/buttons/icon_profile search.png" Text="Profile Search" ></telerik:RadToolBarButton>
</Buttons>
</telerik:RadToolBarDropDown>
<telerik:RadToolBarButton Value="TextBtn" >
<ItemTemplate>
<telerik:RadTextBox ID="mainSearchTxt" onkeyup="mainSearchTxt_keyup(event,id)" EmptyMessage="Content Search" Width="220px" runat="server">
</telerik:RadTextBox>
</ItemTemplate>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton Text="Search" ></telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>
And below is javascript code mainSearchTxt_keyup(event,id) function
function mainSearchTxt_keyup(e, id) {
//alert("Hai")
var rtbar = $find("ctl00_ContentPlaceHolder1_Searchbar");
var tbarbtn = rtbar.findItemByValue("TextBtn");
var rtbox = tbarbtn.findControl("mainSearchTxt");
var txtval =rtbox.get_value()
}
In txtval i didnt get vlaue,but if i enable alert msg then i get value in txtval
Pls reply asap
Aravind