在普通视图下使用选择时,网格会正常工作,100%,但是如果将大小更改为更小或缩放,则选择无法正常工作。另一方面,选项检查在任何视图中都能完美运行
例如http://jsfiddle.net/mutesex/czxgg/2/
$("#slider").slider({
value: 1,
min: 0.1,
max: 2,
step: 0.1,
slide: function (event, ui) {
$("#amount").html("" + parseInt((ui.value) * 100) + "%");
$('#<%= GridView1.ClientID%>').animate({ zoom: ui.value }, 1);
//selectable___();
}
});
$("#amount").html("100%");
function selectable___() {
$(document).ready(function () {
$("#<%= GridView1.ClientID%>").selectable({
filter: "td[free='yes']",
stop: function () {
var result = $("#select-result").empty();
$(".ui-selected", this).each(function () {
var dia__ = $(this).attr("infodia");
if (!ExisteItem(dia__)) {
result.append(" #" + dia__);
diasSeleccion.push({ infodia: dia__ });
}
});
},
unselected: function (event, ui) { var e = $(ui.unselected); removeItem(e.attr("infodia")); },
unselecting: function (event, ui) { var e = $(ui.unselecting); removeItem(e.attr("infodia")); }
});
});
};