Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
1.1K+ views
I am trying to implement the Session Timeout functionality. 

1) Is it possible to somehow get the browser window to flash/blink or something similar when the notification appears? If I have opened a PDF from my site and am reading that in its own tab, and the session timeout window appears on the previous tab, I want to be notified that it exists, otherwise the Timeout Window becomes a bit more pointless.  

2) Also, your Session Timeout demo gets quite confusing when you say some of the code is there only for the demo but not needed otherwise, yet I can't seem to get mine to redirect me after the 2 minutes.  Do you have a quick sample that shows an alert after 10 seconds, and then after 5 seconds of being visible, (and no action taken...simulating a session timeout) it redirects to a new page? I'm not sure what I am doing wrong.  

Here's the HTML code I have so far:
<script language="javascript">
    function SessionTimeoutOnShowing(sender, args) {
    }
    function ContinueSession() {
        var notification = $find("rnSessionTimeout");
        notification.update();
        notification.hide();
    }
</script>
 
    <telerik:RadNotification ID="rnSessionTimeout" runat="server" Position="Center" Width="300"
        Height="125" LoadContentOn="PageLoad" AutoCloseDelay="10000" ShowInterval="15000"
        Title="Session Expiration" Value="~/" TitleIcon="Warning" OnClientShowing="SessionTimeoutOnShowing"
        ContentIcon="Warning" Skin="Default" EnableRoundedCorners="true">
        <ContentTemplate>
                Your session is about to expire. Do you wish to continue using this site?<br />
                <telerik:RadButton Skin="Default" ID="continueSession" runat="server" Text="Continue Your Session" Style="margin-top: 10px;" OnClientClick="ContinueSession(); return false;" />
        </ContentTemplate>
    </telerik:RadNotification>
John Snyder
Top achievements
Rank 1
 answered on 16 Aug 2011
4 answers
141 views
I will preface this question by saying that I have only been using telerik tools for about a week and a half, but I am having a very strange issue and have not been able to find anything online that describes my issue.  

I am using a RadGrid in one of my pages, and when I do not allow filtering everything shows up perfectly, however, as soon as I tick the 'Enable Filtering' check box, the width of one of my columns goes astronomically large.  I'm not talking a few hundred pixels, Google Chrome put it at 114,085,104px wide.  I have deleted and re-created the page, same issue.  I also tried adding the 'Enable Filtering' property to another existing page that had a radgrid, and it also happened there.  I have gone through the CSS several times to make sure it wasn't picking up something weird, but haven't found anything. 

Any advice would be greatly appreciated.

Thanks!
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Aug 2011
18 answers
246 views
Hello people,

 Can you tell me how can I get the rows that are with color red in my RadGrid?? which is the property? I need to count them to update a text on a button, but the problem is that those rows are not selected, so I can't count them by item.selected property..

The button(Unprocessed) is not counting the Processed and updating the text because there are none "Selected" so the counting appears like "Processed (0) Total(300) " when you can see rows at red...can i get those rows to count?

Here is my code:
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Aug 2011
2 answers
90 views
Am I losing my mind?  Jumped into VSB today and wanted to do a quick skin for RadListVIew.  A couple of things i noticed..

1 -- for reason when I create a skin it also adds other elements I didn't pick (Grid, Input, etc, etc).  Didn't do this before. 
2 -- there's no fine-tune option for ListView  (this might be normal as I've never skinned ListView before).
3 -- upon downloading a vanilla DEFAULT skin for ListView, it didn't appear that it used DEFAULT as the base skin like it should have.

Figured I'd report a few quirks.  Used both IE and FF to make sure it wasn't something funky with my browser.

I really don't like that it adds other components.... having to delete the files is a pain.  Anyway, wanted to report.  Thanks all.
Clint
Top achievements
Rank 1
 answered on 16 Aug 2011
6 answers
144 views
I am using RadAsyncUpload to send content into SharePoint using HttpHandlerUrl="~/_vti_bin/myHandler.ashx", the content is delivered, and this handler replies with the FileInfo Json which includes the SharePoint information required client-side (without metaData)

Have no idea what this represents, so leaving it empty:
"metaData":"/wEFsAF7IlRlbXBGaWxlTmFtZSI6InFobXhpZGRyLjN4NSIsIkFzeW5jVXBsb2FkVHlwZU5hbWUiOiJUZWxlcmlrLldlYi5VSS5VcGxvYWRlZEZpbGVJbmZvLCBUZWxlcmlrLldlYi5VSSwgVmVyc2lvbj0yMDExLjEuNDEzLjM1LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPTEyMWZhZTc4MTY1YmEzZDQifexeAUe9Qntvi6cibJXmRsELub3C"

The question is related to the querystring values included with the request to the handler
_vti_bin/myHandler.ashx?type=rau&RadUrid=8e407d48-f46e-4360-8cdb-5b44b384e2870; How should these values be used in a custom handler.

Otherwise everthing is working well, pushing content into SharePoint.

More information would be most helpful.
Cat Cheshire
Top achievements
Rank 1
 answered on 16 Aug 2011
1 answer
55 views
Hi,

On Mouse over, it is highlighting 2 timeslot sections , how can I make it highlight only one section.
PFA the screenshot.

Thanks,
Navya
Plamen
Telerik team
 answered on 16 Aug 2011
2 answers
121 views
Hi all,

I'm using RadMenu and have problem with the DOCTYPE.
If I use 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
the menu looks good as image 1. But this one affects my RadGrid interface (for example, the font size is bigger, ...)

But when I use
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
there will be error with the Menu interface as image 2.

I would like to use the second DOCTYPE for many purpose.
Is anyone meet this situation before?

Thanks.

Andy.
July
Top achievements
Rank 2
 answered on 16 Aug 2011
2 answers
52 views
I am using RadDocks (with title templates) that are approximately the width of the user's screen.  This works fine with most skins.  But when I switch to Sitefinity, the header background image (rdCenter) is not wide enough.

It seems that other skins use a vertical image and repeat it, but Sitefinity uses one big wide image that is only 1200px, presumably so you can easily include the little dots on the left.  But, now I can't switch skins.

Am I missing something?

Thanks.
Chris Dalessandri
Top achievements
Rank 1
 answered on 16 Aug 2011
7 answers
275 views
Hi Telerik,

I have a RadWindow which is managed by RadWindowManager. It represents a dialog window.

Here is the code declaration and how I open it:

<telerik:RadWindow ID="HistoricalLocalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/HistoricalLocalSettings.aspx" OnClientShow="OnHistoricalLocalSettingsShow" OnClientClose="OnHistoricalLocalSettingsClose" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" Title="Settings" Width="450px" AutoSize="True" AutoSizeBehaviors="Height" OnClientResize="OnHistoricalLocalSettingResizeEnd" OnClientResizeEnd="OnHistoricalLocalSettingResizeEnd" />
function ShowLocalSettings(sender, eventArgs) {
    radDock = sender;
 
    var reportType = radDock.get_element().getAttribute("ReportType");
    if (reportType == "HistoricalReport") {
        oWindow = window.radopen(null, "HistoricalLocalSettingsWindow").center();
    }
    else if (reportType == "CustomReport") {
        oWindow = window.radopen(null, "CustomLocalSettingsWindow").center();
    }
    else {
        alert("Didn't find report type.");
    }
 
    SetupCenteringDialog(oWindow);
}
 
//Opens a historical report settings window -- passing the known settings to it
//so that the window will show the proper data to the user.
function OnHistoricalLocalSettingsShow(sender, eventArgs) {
    sender.argument = radDock.get_id();
}

On this window there is some content. The content that can be displayed on this window is subject to change, based on what is loading the window. The user also has the ability to add and remove this content based on a combo-box selection present inside of the window.

As such, I tell the window to auto-resize whenever the combobox changes:

//When the user changes between Line Chart and Pie Chart the number of controls
//displayed on the window changes. As such, I need to expand/contract the
//size of the window. This causes the window to resize itself.
function OnClientSelectedIndexChanged(sender, eventArgs) {
    var comboBoxValue = eventArgs.get_item().get_value();
    ValidateWindowState(comboBoxValue);
 
    if ($telerik.isIE) {
        timeout = setTimeout(function () { AdjustRadWindow(); }, 500);
    }
    else {
        AdjustRadWindow();
    }
}

function AdjustRadWindow() {
    var oWindow = GetRadWindow();
    if (oWindow.isVisible()) {
        oWindow.autoSize(true);
    }
}

This works perfectly fine in Chrome, but in IE it does not resize to the proper height. It seems to be remembering its old height (perhaps because the minHeight for the window is being set behind-the-scenes to convince IE to size the window properly? I am not sure.)

Regardless, even if I fudge with the timeout, I see sizing issues.

I have attached an image showing the initial state of the window in IE9.0.8112 with compatibility-mode turned off and Chrome 13.0.782

Is there something I can do about this? Thanks

Sean

Marin Bratanov
Telerik team
 answered on 16 Aug 2011
3 answers
101 views
Hi,

I have added Radgrid in a page and set AllowPaging="true" . And one of the GridBoundColumn we set AllowFiltering="true" . It works well. But when we filter with a value, the finding record doesn't display in the first page.
For instance, if we have 3 pages and the item which we look for is located in the 3rd page. After filtering, the 1st page and 2nd page are empty. We found the record in the 3rd page. We have to go through all the 3 pages.

Do we have any way to display the finding record in the first page and don't show other 2 empty pages.

Thanks,
D. Do
Duong
Top achievements
Rank 1
 answered on 16 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?