Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views
I found this tip in another forum post:
----------------------
      http://www.telerik.com/community/forums/aspnet/window/forms-authentication.aspx#454784

     >If I understand you correctly you wish to redirect the parent page to your login one once the session expires. If this
      is the case, our suggestion is to add the following code to your Login page

      if (window != window.top) window.top.navigate(window.location.href); (IE only)
       OR
      if (window != window.top) window.top.location.href = window.location.href; (cross-browser)

    This code makes sure that the Login page loads in the top browser window, even if it is initially loaded in one of the
     RadWindow  objects.
----------------------

I do a reasonable amount of Javascript coding here and there, but nothing with window management. Into what event would I insert this code snip? Could you give a more complete code sample?

Thanks.
Marin Bratanov
Telerik team
 answered on 08 Jul 2011
1 answer
57 views
Hi all,

I have a Email column which uses "telerik:GridTemplateColumn".
Normally, my customer often copies email from existed emails when create a new record.
But when copy & paste, it includes the space at the end which causes error because of email validation.
This one doesn't happen with telerik:GridBoundColumn".
I mean there is no space at the end when highlight if use telerik:GridBoundColumn
Are there any ways to fix it?

Thanks.

Andy.
Tsvetina
Telerik team
 answered on 08 Jul 2011
2 answers
85 views
We have a Click Event that calls

RadAjaxManager1.ResponseScripts.Add(

"btnBankingAlertClick()");

This opens a radwindow as below

function

btnBankingAlertClick() {

var oWnd = radopen("Dialogs/Alert.aspx?ftn=6", "GenericDialogWindow");

}

 

In ClientClose we pick up the argument and call

 

if(arg.res) AjaxPostback('EndCollection:');

In RadAjaxManager_AjaxRequest a method is called and as part of that the following lines are called
 

RadAjaxManager1.Alert("Collection information inserted into banking sucessfully");

RadAjaxManager1.ResponseScripts.Add("btnBankingAlertDoneClick()");

 

When debugging i can see ths code is hit but the alert and the function are not called.

Please help!!

Darren Nicholl
Top achievements
Rank 1
 answered on 08 Jul 2011
2 answers
32 views
I want to have my entire screen use the ajaxloadingpanel.  I have some code here:

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlInner" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnReset">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlInner"  LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
  
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"
        IsSticky="true" Style="position:absolute; top:0; left:0; height:100%; width:100%;">
    </telerik:RadAjaxLoadingPanel>

 

 

which works for texboxes, etc.  but not for a radgrid.  The grid is blank.  But, I tried wrapping the grid with the radajaxloadingpanel and then the grid gets updated fine, but NOT the text boxes.  I can't seem to make it all work together on one screen.  And, the example for wrapping the entire screen in the ajaxloadingpanel is 2 1/2 years old and so it doesn't apply here.

Maria Ilieva
Telerik team
 answered on 08 Jul 2011
6 answers
135 views
I have RadGrid2 in RadGrid1's EditForm FormTemplate.  I have RadGrid2 being binded with the ItemCreated of RadGrid1 using advanced databinding.  I know that if you put the RadGrid2 within the NeedDataSource it will rebind automatically but I cannot access the ID of RadGrid2 in the RadGrid2_NeedDataSource in able to bind the data the first time.  So I use the GridEditFormItem FindControl to get the ID of RadGrid2 but cannot do that outside the RadGrid1_ItemCommand.

Any suggestions?
Genti
Telerik team
 answered on 08 Jul 2011
3 answers
69 views
Hi I have a radlistbox inside of a panel that has a collapsable panel extender added to it and when the panel is minimized the radlistbox sits on top of it and does not hide. THis only happens in IE8 and older versions. Please tell me how I can overcome this.
Peter Filipov
Telerik team
 answered on 08 Jul 2011
1 answer
71 views
I have noticed on the "Grid / Binary Images and Upload in Grid",    if you refresh the PAGE after inserting a new image/record, another duplicate new row is added. This behaviour also happens on the demo page.
Is there a way to prevent this happening?
Peter Filipov
Telerik team
 answered on 08 Jul 2011
3 answers
82 views
Hi,
1) I am using tabstrip, and i use scrolling for tabs, so i don't want the tabs to be in multi-line. I set width to the tabstrip. But when it exceeds it , it comes in two lines.  any help with that?

2) I use entity datasource for the tabstrip, but in the TabSelected event, the dataItem for the selected tab is 'nothing'. (I use templates for tabs)

Here are the screenshots for the multi line issue

Naresh
Top achievements
Rank 1
 answered on 08 Jul 2011
1 answer
63 views
I have a webform which calls a control that creates a grid. One of the fields in the grid needs to run a method when the selection is changed. This causes the whole page to postback. I need it to only postback for a couple of the different items contained within the grid. I have tried several different solutions (adding a radajaxmanager, a radajaxproxy, adding the ajaxsettings in the code behind, etc) without success. I'm sure there is something real basic I am overlooking. Could someone please point me in the right direction? Thanks!

Test.aspx

 

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test.aspx.vb" Inherits="Project.Test" %>

 

<%@ Register src="../controls/cntControl.ascx" tagname="cntControl" tagprefix="uc1" %>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

    <title></title>

    <script type="text/javascript">   

      function pageLoad() {

      }   

    </script>

</head>

<body>

    <form id="form1" runat="server">

    <div>

        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">

        </telerik:RadScriptManager>

        <uc1:cntAttibuteOptionTypes ID="cntControl1" runat="server" />

    </div>

    </form>

</body>

</html>

 

 


cntControl.ascx

 

<%@ Control Language="vb" AutoEventWireup="false" Codebehind="cntControl.ascx.vb" Inherits="Project.cntControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>

<meta content="False" name="vs_snapToGrid" />

<P>

<telerik:RadGrid ID="dgOptions" runat="server" CellSpacing="0" GridLines="None"

    ShowHeader="False" Skin="Web20" AutoGenerateColumns="false"

    BorderStyle="None">

<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>

 

    <ItemStyle BorderStyle="None" Wrap="False" />

 

<MasterTableView nodetailrecordstext="" nomasterrecordstext="">

<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

 

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

 

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>

<Columns>

                  <telerik:GridBoundColumn DataField="displaytext" ItemStyle-Wrap="False">

                      <ItemStyle Width="185px" />

                  </telerik:GridBoundColumn>

                  <telerik:GridBoundColumn Visible="False" DataField="OptionTypeCd"></telerik:GridBoundColumn>

                  <telerik:GridTemplateColumn>

                        <ItemTemplate>

                              <asp:DropDownList id="ddlProdOption" AutoPostBack="true" OnSelectedIndexChanged="DropDown_SelectedIndexChanged"

                                    runat="server"></asp:DropDownList>

                        </ItemTemplate>

                  </telerik:GridTemplateColumn>

                        <ItemTemplate>

                              <asp:TextBox ID="txtProdOption" Runat="server" Width="200px"></asp:TextBox>

                        </ItemTemplate>

                  </telerik:GridTemplateColumn>

                  <telerik:GridTemplateColumn>

                        <ItemTemplate>

                              <asp:TextBox ID="txtImage" runat="server" Width="70"></asp:TextBox>&nbsp;

                        </ItemTemplate>

                  </telerik:GridTemplateColumn>

                  <telerik:GridTemplateColumn>

                        <ItemTemplate>

                              <asp:TextBox ID="txtLrgImage" Runat="server"></asp:TextBox>&nbsp;

                        </ItemTemplate>

                  </telerik:GridTemplateColumn>

</Columns>

<EditFormSettings>

<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>

</EditFormSettings>

</MasterTableView>

 

<FilterMenu EnableImageSprites="False"></FilterMenu>

</telerik:RadGrid>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

    <AjaxSettings>

 

        <telerik:AjaxSetting AjaxControlID="dgOptions">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="dgOptions" />

            </UpdatedControls>

        </telerik:AjaxSetting>

 

    </AjaxSettings>

</telerik:RadAjaxManager>

<p>

Iana Tsolova
Telerik team
 answered on 08 Jul 2011
2 answers
46 views


Click here to see the history of the old thread.


Pasted below is the last message i received on the thread in the link. my issue is related to tab order which i see in Ajax controls as well.  As suggested in the following message i already have a Link Button added to all special days. But tab order still skips those days. The last thing we do before adding the date to specialdays list in code we add a hyperlink on click of which it shows details of the event of the day. The special day is clickable but not reachable in tab order. we need tab order to work for 508 compliance. Please suggest if there is any other thing i can do to get it work.

Thanks,
Shalini

From: Telerik Admin
Date: 7/4/2011 4:41:02 AM

Hi Shalini,

In order to achieve the desired functionality you need to put a control which could be tabbed into your special day template. I am sending you a simple example which demonstrates that. Please check it out and let me know if it helps you.

Looking forward for your reply.

All the best,
Radoslav
the Telerik team

Radoslav
Telerik team
 answered on 08 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?