or
var tempValue = new Array(0, 0, 0, 0, 0, 0, 0, 0);var senderId = sender.get_id();var telerikControl;var grid = $find("<%= uxGrid.ClientID %>");var rows = grid.get_masterTableView().get_dataItems();var rowCount = rows.length; // make loop run fasterfor (i = 0; i < rowCount; i++) { // foreach row for (j = 1; j <= 7; j++) { console.log(rows[i].get_element()); telerikControl = rows[i].findControl('uxHours' + j); if (telerikControl == null) { console.log('could not find control "uxHours' + j + '" in row ' + i + '; updateDaySummaries initiated by ' + senderId); } if (telerikControl.get_value().length != 0) { // do NOT use greater than //console.log('adding ' + telerikControl.get_value() + ' from ' + telerikControl.get_id() + ' to tempValue[' + (j - 1) + ']:' + tempValue[j - 1]); tempValue[j - 1] += telerikControl.get_value(); } }}console.log(rows[i].get_element()); ?<div style="z-index: 6000;" class="rcbSlide"><div style="display: none; width: 175px;" class="RadComboBoxDropDown RadComboBoxDropDown_Default " id="ctl00_bodyContentPlaceHolder_uxContainer_uxGrid_ctl00_ctl04_uxServiceList_dropDown_DropDown"><div style="height: 150px; width: 100%;" class="rcbScroll rcbWidth"><ul style="list-style: none outside none; margin: 0pt; padding: 0pt;" class="rcbList"><li class="rcbItem ">Business Development</li></ul></div></div></div><input type="hidden" name="ctl00_bodyContentPlaceHolder_uxContainer_uxGrid_ctl00_ctl04_uxServiceList_dropDown_ClientState" id="ctl00_bodyContentPlaceHolder_uxContainer_uxGrid_ctl00_ctl04_uxServiceList_dropDown_ClientState" autocomplete="off" value="{"logEntries":[],"value":"16","text":"Business Development","enabled":true}"><input type="hidden" name="ctl00_bodyContentPlaceHolder_uxContainer_uxGrid_ctl00_ctl04_uxServiceList_dropDown_ClientState" id="ctl00_bodyContentPlaceHolder_uxContainer_uxGrid_ctl00_ctl04_uxServiceList_dropDown_ClientState" autocomplete="off" value="{"logEntries":[],"value":"16","text":"Business Development","enabled":true}"><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <script type="text/javascript"> function OnClientItemSelected(sender, args) { var vidpath = args.get_item().get_name(); PlayVid(vidpath); <-- This is where I was thinking of calling a code-behind vb function } </script> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> Select a file below to view it.<br /><br /> <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Height="250px" InitialPath="/VideoLibrary" Skin="Outlook" EnableCreateNewFolder="False" ToolTip="Double-click a video from the list to view it." TreePaneWidth="0px" VisibleControls="Grid, ContextMenus" onclientitemselected="OnClientItemSelected" Width="606px"> <Configuration SearchPatterns="*.*" ViewPaths="/VideoLibrary"> </Configuration> </telerik:RadFileExplorer> <br /><br /> <ASPNetVideo:WindowsMedia ID="WindowsMedia1" runat="server" Height="480px" VideoURL="some_video_title.wmv" Width="640px" WMode="Window"> </ASPNetVideo:WindowsMedia> </form></asp:Content> <rad:RadGrid ID="gridClients" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" EnableAJAX="True" EnableAJAXLoadingTemplate="True" GridLines="None" LoadingTemplateTransparency="50" ShowStatusBar="True" Skin="Windows" Width="98%" AllowFilteringByColumn="True" PageSize="25" DataBound="gridClients_ItemDataBound" OnUpdateCommand="gridClients_UpdateCommand" OnInsertCommand="gridClients_InsertCommand" OnDeleteCommand="gridClients_DeleteCommand"> ... <EditFormSettings EditFormType="Template" UserControlName="ClientGrid" > <EditColumn UniqueName="EditCommandColumn"></EditColumn> <FormTemplate> <table cellpadding="2" cellspacing="0" border="0" width="100%"> <tr id="SpecialInstructRow" runat="server" visible="false"> <td> <label for="SpecialInstuct">Billing Notes:</label> <asp:TextBox ID="SpecialInstructTextBox" runat="server" Text='<%# Bind("SpecialInstructions") %>' TextMode="MultiLine" ></asp:TextBox> </td> </tr> ... </table><li class="rmItem"> <a class="rmLink radMenuLoginReq" href="..."> <img src="..."> <span class="rmText rmExpandDown">Menu Item</span> </a> <div class="rmSlide"> ... </div></li>
Dear Forum.
I added a button to a command item template in my grid and now only the command item template is showig and not the Export to Excel button. I need both buttons to show, please advise.
Thanks,
Celeste
<CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false" />
<CommandItemTemplate>
<asp:Button ID="btnExpandAll" Text="Expand All" Runat="server" CommandName="ExpandAll"></asp:Button>
</CommandItemTemplate>