I've implemented the Session Expiration example using the RadNotification.
However, I've noticed that users often have to click the "Continue Session" button several times
before the modal closes. I've worked around this by continuing to call notification.hide() until
notification.isVisible() is no longer true. This workaround appears to work, but I would like to see a
fix for this in the future.
function ContinueSession() { var notification = $find("ctl00_SessionTimeoutRadNotification"); //we need to contact the server to restart the Session - the fastest way is via callback //calling update() automatically performs the callback, no need for any additional code or control sessionKeepAlive(); var attempts = 0; while (notification.isVisible()) { notification.hide(); attempts++; } console.log("Took " + attempts + " attempts to close"); //resets the showInterval for the scenario where the Notification is not disposed (e.g. an AJAX request is made) //You need to inject a call to the ContinueSession() function from the code behind in such a request var showIntervalStorage = notification.get_showInterval(); //store the original value notification.set_showInterval(0); //change the timer to avoid untimely showing, 0 disables automatic showing notification.set_showInterval(showIntervalStorage); //sets back the original interval which will start counting from its full value again stopTimer("timeLeftCounter"); seconds = 60; updateMainLabel(true);}
<telerik:PivotGridColumnField DataField="Start_Date" Caption="Start_Date" >
</telerik:PivotGridColumnField>
<telerik:PivotGridRowField DataField="MACHINENAME" Caption="MACHINENAME" CellStyle-Width="110px" >
</telerik:PivotGridRowField>
<telerik:PivotGridAggregateField DataField="USER_NM" Caption="USER_NM" >
<HeaderCellTemplate>User Name</HeaderCellTemplate>
</telerik:PivotGridAggregateField>
<telerik:PivotGridAggregateField DataField="PROJECT_ID" Caption="PROJECT_ID" >
<HeaderCellTemplate>PROJECT_ID</HeaderCellTemplate>
</telerik:PivotGridAggregateField>
<telerik:PivotGridAggregateField DataField="OPER" Caption="OPER" >
<HeaderCellTemplate>OPER</HeaderCellTemplate>
</telerik:PivotGridAggregateField>
<telerik:PivotGridAggregateField DataField="Part_NAME" Caption="Part_NAME" >
<HeaderCellTemplate>Part_NAME</HeaderCellTemplate>
</telerik:PivotGridAggregateField>
<telerik:PivotGridAggregateField DataField="SUB_LEG_ID" Caption="SUB_LEG_ID" >
<HeaderCellTemplate>SUB_LEG_ID</HeaderCellTemplate>
</telerik:PivotGridAggregateField>
<telerik:PivotGridAggregateField DataField="ITEM_NM" Caption="ITEM_NM" >
<HeaderCellTemplate>ITEM_NM</HeaderCellTemplate>
</telerik:PivotGridAggregateField>
<telerik:PivotGridAggregateField DataField="OPER_DESCR" Caption="OPER_DESCR" >
<HeaderCellTemplate>OPER_DESCR</HeaderCellTemplate>
</telerik:PivotGridAggregateField>
<telerik:PivotGridAggregateField DataField="WORK_NAME" Caption="WORK_NAME" >
<HeaderCellTemplate>WORK_NAME</HeaderCellTemplate>
</telerik:PivotGridAggregateField>
<telerik:PivotGridAggregateField DataField="RUN_HRS" Caption="RUN_HRS" >
<HeaderCellTemplate>RUN_HRS</HeaderCellTemplate>
</telerik:PivotGridAggregateField>
<telerik:PivotGridAggregateField DataField="MH" Caption="MH" >
<HeaderCellTemplate>MH</HeaderCellTemplate>
</telerik:PivotGridAggregateField>
<telerik:PivotGridAggregateField DataField="MCH" Caption="MCH" >
<HeaderCellTemplate>MCH</HeaderCellTemplate>
</telerik:PivotGridAggregateField>
This works fine but i want to display the Strings in Aggregate field.
How to resolve this.
<telerik:GridTemplateColumn DataField="Comments" FilterControlAltText="Filter column13 column" AllowFiltering="false"<br> HeaderText="Comments" UniqueName="Comments"><br> <EditItemTemplate><br> <asp:TextBox ID="tbComments" runat="server" TextMode="MultiLine" Text='<%# Eval("Comments") %>'>></asp:TextBox><br> <asp:RequiredFieldValidator ID="rfvComments" ControlToValidate="tbComments" Display="Dynamic"<br> runat="server" ErrorMessage="Please enter a reason for changing this budget item."></asp:RequiredFieldValidator><br> </EditItemTemplate><br> <ItemTemplate><br> <asp:Label ID="CommentsLabel" runat="server" Text='<%# Eval("Comments") %>'></asp:Label><br> </ItemTemplate><br> </telerik:GridTemplateColumn>