HI ,
I 'm using "kendoTabStrip" .
I'm trying to achieve When i click on DeleteImage , the tab should be closed (removed) . But Im unable to get same .
Please suggest me where I'm going wrong . Following are codes I'm using :
Thanks,
Pawan
I 'm using "kendoTabStrip" .
I'm trying to achieve When i click on DeleteImage , the tab should be closed (removed) . But Im unable to get same .
Please suggest me where I'm going wrong . Following are codes I'm using :
Thanks,
Pawan
<div id="dtabstrip"> <ul> <li class="k-state-active">First Tab <img src="images/DeleteIcon.gif" style="padding-left: 10px; z-index: 1111" onclick='DeleteTabs(this);' /> </li> <li>Second Tab</li> </ul> <div> 1111111sdffds</div> <div> 2222ssadasfas</div> </div> var dtabStrip = $("#dtabstrip").kendoTabStrip({ animation: { open: { effects: "fadeIn" }, close: { duration: 200, effects: "fadeOut" } } }); function DeleteTabs(ImgObj) { var aa = $(ImgObj).closest("li").text() ; dtabStrip.remove($(obj).closest("li")); }