or
$(checkBoxSelector).live('click', function () { var index = $(checkBoxSelector).index(this); var gridRow = $('#MainContent_QueueGrid > tbody > tr:eq(' + index + ')'); if ($(this).is(":checked")) { gridRow.find('.rcbCheckBox').each(function () { if ($(this)[0].nextSibling.wholeText === 'Approve') { $(this)[0].attr("checked", true); alert("Checking the box"); } }); } else { gridRow.find('.rcbCheckBox').each(function () { if ($(this)[0].nextSibling.wholeText === 'Approve') { $(this)[0].attr("checked", false); alert("UNChecking the box"); } }); } });| function mainMenuItemClosed(sender, eventArgs) |
| { |
| var item = eventArgs.get_item(); |
| if (item) |
| { |
| sender.trackChanges(); |
| item.get_items().clear(); |
| item.set_expandMode(Telerik.Web.UI.MenuItemExpandMode.WebService); |
| item._itemsLoaded = false; |
| sender.commitChanges(); |
| } |
| } |
<InlineEditTemplate> <div class="rsCustomAppointmentContainer"> <span class="rsCustomAppointmentContainerInner"> <div style="float: left"> <asp:Label ID="Label4" runat="server" Text="Option:" CssClass="inline-label"></asp:Label> <asp:Label ID="Label6" runat="server" Text='<%# Bind("ID") %>'></asp:Label> <asp:Label ID="Label1" runat="server" Text='<%# Bind("Subject") %>'></asp:Label> <asp:LinkButton ID="LinkButtonOpt" runat="server" CommandName="Link" Text='more info ...'></asp:LinkButton> <%--<asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Subject") %>' TextMode="SingleLine" ReadOnly="true"></asp:TextBox>--%> </div> <div style="float: left"> <asp:Label ID="Label2" runat="server" CssClass="inline-label">Initial Date:</asp:Label> <telerik:RadDatePicker runat="server" ID="InitialDateRadDatePicker" SelectedDate='<%# Bind("Start") %>' MinDate="1900-01-01" OnSelectedDateChanged="Initial_SelectedDateChanged"> <DatePopupButton Visible="True" /> <DateInput ID="DateInput2" runat="server" EmptyMessageStyle-CssClass="riError" EmptyMessage=" " EnableSingleInputRendering="false" /> </telerik:RadDatePicker> </div> <div style="float: left"> <telerik:RadNumericTextBox ID="job_durationTextBox" runat="server" Type="Number" NumberFormat-DecimalDigits="0" MinValue="1" OnTextChanged="jobDuration_TextChanged" Width="100%" Label="Duration:"> </telerik:RadNumericTextBox> </div> <div style="float: left"> <asp:Label ID="Label3" runat="server" CssClass="inline-label">Final Date:</asp:Label> <telerik:RadDatePicker runat="server" ID="FinalDateRadDatePicker" SelectedDate='<%# Bind("End") %>' MinDate="1900-01-01" OnSelectedDateChanged="Final_SelectedDateChanged"> <DatePopupButton Visible="True" /> <DateInput ID="DateInput1" runat="server" EmptyMessageStyle-CssClass="riError" EmptyMessage=" " EnableSingleInputRendering="false" /> </telerik:RadDatePicker> </div> <div style="float: left"> <span class="inline-label">Stage:</span> <telerik:RadComboBox ID="StageAuxComboBox" runat="server" SelectedValue='<%# Bind("cvp_stage_id") %>' DataSourceID="StageDataSource" DataTextField="cvp_stage_name" DataValueField="cvp_stage_id"> </telerik:RadComboBox> </div> <div> <asp:Button ID="InsertButton" runat="server" CommandName="Update" Text="Update"> </asp:Button> <asp:Button ID="InsertCancelButton" runat="server" CommandName="Cancel" Text="Cancel"> </asp:Button> </div> </span> </div> </InlineEditTemplate>.noresults{ opacity: 0.4; filter:alpha(opacity=40); /* For IE8 and earlier */} .RadScheduler .rsCustomAppointmentContainerInner{ display: block; padding: 2px 0 0 2px; z-index: 1000 !important;}.RadScheduler .rsCustomAppointmentContainerInner *{ position: relative; z-index: 100 !important;}.rsCustomAppointmentContainer{ width: 100% !important; height: 100% !important; }.RadScheduler .rsAptEditSizingWrapper{ left:0px !important; top:0px !important; }.rsApt{ z-index: -1;}This is probably a newbie question, and is perhaps more of a javascript general question than a Telerik specific one. However, I guess many Telerik-developers know the answer :-)
In many cases, we need to keep track of some kind of state in client:
var someState; function SomeEventHandler() { someState = someState + 1; }theRadGrid.ClientSettings.ClientEvents.OnRowClick = "SomeEventHandler";