Hi,
I have a update panel on my page inside it i have taken selectpicker dropdown.
Tooltip dosent show on selectpicker dropdown.
And also after selectedindex event of dropdwon it dosent focuses on other control.
<div class="col-md-4 col-lg-4">
<div class="row">
<asp:Label ID="lblVehAppAuth" runat="server" Text="Approver IN" CssClass="control-label col-md-5 col-lg-5"></asp:Label>
<div class="col-md-7 col-lg-7">
<asp:DropDownList ID="drpVeh_IN_AppAuth" runat="server" CssClass="form-control input-sm" class="selectpicker" AutoPostBack="true"
data-live-search="true" OnSelectedIndexChanged="drpVeh_IN_AppAuth_SelectedIndexChanged" data-toggle="tooltip" data-placement="top" title="Select IN Vehicle Approver">
</asp:DropDownList>
</div>
</div>
</div>
<div class="col-md-4 col-lg-4">
<div class="row">
<asp:Label ID="lbp_Veh_Out" runat="server" Text="OUT" CssClass="control-label col-md-2 col-lg-2"></asp:Label>
<div class="col-md-7 col-lg-7">
<asp:DropDownList ID="drpVeh_OUT_AppAuth" runat="server" CssClass="form-control input-sm" class="selectpicker" AutoPostBack="true"
data-live-search="true" OnSelectedIndexChanged="drpVeh_OUT_AppAuth_SelectedIndexChanged" data-toggle="tooltip" data-placement="top" title="Select OUT Vehicle Approver">
</asp:DropDownList>
</div>
</div>
protected void drpVeh_IN_AppAuth_SelectedIndexChanged(object sender, EventArgs e)
{
drpVeh_OUT_AppAuth.Focus();
}
protected void drpVeh_OUT_AppAuth_SelectedIndexChanged(object sender, EventArgs e)
{
btnAddVehicle.Focus();
}
<script type="text/javascript">
$(function () {
pageLoad();
});
//On UpdatePanel Refresh
var prm = Sys.WebForms.PageRequestManager.getInstance();
if (prm != null) {
prm.add_endRequest(function (sender, e) {
if (sender._postBackSettings.panelsToUpdate != null) {
pageLoad();
}
});
};
function pageLoad() {
$('[data-toggle="tooltip"]').tooltip()
}
</script>
<!--End of Tooltip Script-->
<script type="text/javascript">
$(function () {
ApplySelectPicker();
});
//On UpdatePanel Refresh
var prm = Sys.WebForms.PageRequestManager.getInstance();
if (prm != null) {
prm.add_endRequest(function (sender, e) {
if (sender._postBackSettings.panelsToUpdate != null) {
ApplySelectPicker();
}
});
};
function ApplySelectPicker() {
$('[id*=drpVeh_IN_AppAuth]').selectpicker({
style: 'btn-default btn-sm btn-block',
size: 6
})
$('[id*=drpVeh_OUT_AppAuth]').selectpicker({
style: 'btn-default btn-sm btn-block',
size: 6
})
};