I have a case where i use a radbutton inside the nestedviewtemplate that uses 'OnClientCheckedChanged' event that i need to set the mastertable row´s expanded state and i cant seem to find out how to access the row dataitem from the button, does anyone have an idea?
My nestedviewtemplate,
<
NestedViewTemplate
>
<
asp:Panel
ID
=
"NestedViewPanel"
runat
=
"server"
CssClass
=
"divArtDetailsView"
>
<
div
class
=
"contactWrap"
>
<
table
width
=
"100%"
cellpadding
=
"0"
cellspacing
=
"0"
>
<
tr
>
<
td
width
=
"140px"
>
<
asp:Image
runat
=
"server"
ID
=
"imgArt"
/>
</
td
>
<
td
>
Diverse information ska in här, alla artikel extra kopplingar, fritext och lagerstatus
</
td
>
<
td
style
=
"vertical-align:top; text-align:right; padding-right:5px;"
>
<
telerik:RadButton
runat
=
"server"
ID
=
"btnPinRow"
AutoPostBack
=
"false"
ButtonType
=
"ToggleButton"
ToggleType
=
"CheckBox"
Checked
=
"false"
OnClientCheckedChanged
=
"pinChanged"
>
<
ToggleStates
>
<
telerik:RadButtonToggleState
Width
=
"16px"
IsBackgroundImage
=
"true"
ImageUrl
=
"images/pinned.png"
/>
<
telerik:RadButtonToggleState
Width
=
"16px"
IsBackgroundImage
=
"true"
ImageUrl
=
"images/unpinned.png"
HoveredImageUrl
=
"images/pinned.png"
Selected
=
"false"
/>
</
ToggleStates
>
</
telerik:RadButton
>
<
br
/><
br
/>
<
telerik:RadNumericTextBox
runat
=
"server"
ID
=
"txtAnt"
Width
=
"45px"
NumberFormat-DecimalDigits
=
"0"
Value
=
"1"
></
telerik:RadNumericTextBox
>
<
telerik:RadButton
runat
=
"server"
ID
=
"btnAddToCart"
Text
=
"Add"
></
telerik:RadButton
>
</
td
>
</
tr
>
</
table
>
</
div
>
</
asp:Panel
>
</
NestedViewTemplate
>
}
function
pinChanged(sender, eventArgs) {
var
button = sender;
//how to find parent mastertable row dataitem??
}