or
function GridPickGroup(button) {
var value = $(button).data("val");
var currentGroupRow = $(button).closest(".k-grouping-row");
GridData.grid.select(currentGroupRow.nextUntil(".k-grouping-row"));
}
...
<
div
id
=
"tabstrip"
>
<
ul
>
<
li
class
=
"k-state-active"
>
Tab 1 Title</
li
>
<
li
>
Tab 2 Title</
li
>
</
ul
>
<!--Tab1-->
<
div
>
<
div
id
=
"grid"
></
div
>
</
div
>
<!--Tab2-->
<
div
>
<
div
id
=
"Tab2"
>
Config 1: <
input
type
=
"text"
name
=
"config1"
/>
Config 2: <
input
type
=
"text"
name
=
"config2"
/>
<
input
type
=
"checkbox"
name
=
"config3"
value
=
"Config A"
/> Config A
<
input
type
=
"checkbox"
name
=
"config3"
value
=
"Config B"
/> Config B
</
div
>
</
div
>
</
div
>
...
if
( isDefined(
this
.options.width )) {
if
(
this
.options.width ===
"auto"
) {
var popup =
this
.control.popup.element;
var width = popup.css(
"visibility"
,
"hidden"
).show().outerWidth();
popup.hide().css(
"visibility"
,
"visible"
);
}
else
{
width =
this
.options.width;
}
this
.control.wrapper.closest(
".k-widget"
).width(width);
}
$(function(){<
br
> $("#grid").kendoGrid();<
br
> });
grid = $(
"#grid"
).data(
"kendoGrid"
);
for
(
var
i = 0; i < 50; i ++) {
if
( grid.dataItem(i).FirstName == reference) {
var
item = grid.dataItem(i);
break
;
}
}