Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 views
Hello,

When i try to close a modal pop-up window with the following with the following code Chrome just crashes, this function works correctly in IE and FF.

            function CloseWindow() {
                var vWindowManager = window.parent.GetRadWindowManager();
               vWindowManager.closeAll();
            }

What could be causing this issue?
Georgi Tunev
Telerik team
 answered on 01 Apr 2010
3 answers
170 views
I have a page that has several nested RadSplitters. The outer one is vertical so I have left and right panes. The right pane contains another RadSplitter that contains 3 panes separated by 2 RadSplitBars. The top pane (ViewPane) has a fixed height, the middle pane is set to height of 100%, and the bottom pane has a fixed height of 100px. The bottom pane contains several controls, one of which is a radCombo box. The issue I have is that the combo box opens lower than the bottom of the screen. I cannot seem to get the pane to properly size so the combo opens up rather than down. I have attached an image of the problem. I am using RadControls for ASPNET AJAX Q2 2008, Telerik Web UI version 2008.2.1001.35. My page's code is below...

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="radTest.aspx.vb" Inherits="UI.radTest" %> 
 
<!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 id="Head1" runat="server">  
        <title></title>  
        <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.0)"/><!--Fixes IE Page 'Flicker' --> 
        <meta http-equiv="Page-Exit" content="blendTrans(Duration=0.0)"/><!--Fixes IE Page 'Flicker' --> 
        <link href="StyleSheet.css" type="text/css" rel="STYLESHEET"/>  
        <script type="text/javascript" src="scripts/camobject.js"></script> 
        <script type="text/javascript" src="scripts/swfobject.js"></script> 
        <script type="text/javascript" language="javascript" src="scripts/cookie.js"></script> 
        <script type="text/javascript" src="scripts/Logout.js"></script> 
        <style type="text/css">  
           .style1  
            {   
                width: 133px;  
                  
            }  
            .style2  
            {  
                width: 111px;  
            }  
            .style3  
            {  
                font-family: Verdana;  
            }  
              
        </style> 
    </head> 
    <script language="javascript" type="text/javascript">  
    //removed  
    </script> 
    <body style="margin:0px;height:100%;" scroll="no" bgcolor="#38475a">  
        <form id="form1" runat="server">  
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> 
              
            <!-- Navigation and Header --> 
            <table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #cccccc;">  
                <tr style="background-color: #636c7b;" id="NavRow" runat="server">  
                    <td><img src="images/navspacer.jpg" border="0" width="250px" height="29px" alt="" /></td>  
                    <td> 
                        <ipc:TabNavigation   
                            ID="MyNavBar" runat="server" ActiveTab="5" BackColor="#636C7B" /> 
                    </td> 
                    <td width="100%" align="right" style="padding-right:4px"><a href="logout.aspx" class="ipcLink">Log Out</a><ipc:ChangePasswordWindow runat="server" ID="ipcChangePasswordWindow" NavigateUrl="ChangePassword.aspx" VisibleOnPageLoad="false" ReloadOnShow="true" Modal="true" ShowContentDuringLoad="false" SkinID="WebBlue" Width="400" Height="400" Behaviors="None" VisibleStatusbar="false" ShowDividerBeforeLink="true" VisibleTitlebar="False" Skin="WebBlue" /></td>  
                    <td rowspan="2" width="272px" valign="top">  
                        <ipc:NewsControl ID="myNewsBar" runat="server" BackColor="#636C7B"   
                            Height="58px" Width="272px" /> 
                    </td> 
                </tr> 
                <tr style="background-color: #636c7b;">  
                    <td style="background-image: url(images/g_nav_bg.jpg); background-repeat: repeat-x; height: 29px" width="250px">  
                    </td> 
                    <td id="NavCell" class="NavCell" style="background-image: url(images/g_nav_bg.jpg); background-repeat: repeat-x;  
                        height: 29px"> 
                    </td> 
                    <td style="background-image: url(images/g_nav_bg.jpg); background-repeat: repeat-x;  
                        height: 29px"> 
                    </td> 
                </tr> 
            </table> 
 
            <telerik:RadSplitter ID="RadSplitter1"   
                                 runat="server"   
                                 Width="100%"   
                                 Height="100%"   
                                 HeightOffset="58" 
                                 Skin="WebBlue"   
                                 BorderSize="0"   
                                 PanesBorderSize="0"   
                                 Orientation = "Vertical" 
                                 BorderWidth="0">  
                <telerik:RadPane ID="leftPane"   
                                 runat="server"   
                                 Width="268px"   
                                 Scrolling="None"   
                                 Height=""   
                                 OnClientPaneExpanded="PaneExpanded"   
                                 OnClientPaneCollapsed="PaneCollapsed"   
                                 BorderStyle="None"   
                                 BorderWidth="0px"   
                                 BorderColor="#D1D8E2">  
                    <telerik:RadSplitter ID="RadSplitter2"   
                                         runat="server"   
                                         Width="100%" 
                                         Height="100%" 
                                         Skin="WebBlue" 
                                         BorderSize="0" 
                                         PanesBorderSize="0" 
                                         Orientation="Horizontal" 
                                         BorderWidth="0">  
                        <telerik:RadPane ID="tabPane" 
                                         runat="server" 
                                         Width="100%" 
                                         Scrolling="None" 
                                         Height="28px" 
                                         BorderStyle="None" 
                                         BorderWidth="0px" 
                                         BorderColor="#D1D8E2">  
                            <table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#D1D8E2">  
                                <tr> 
                                    <td height="28px" valign="top">  
                                        <a href="lpr_search.aspx">  
                                            <img src="images/search_front.jpg" alt="" border="0" width="90" height="28" /> 
                                        </a> 
                                    </td> 
                                    <td id="RTTab" runat="server" height="28px" valign="top">  
                                        <a href="lpr_realtime.aspx">  
                                            <img src="images/Real-Time_back.jpg" alt="" border="0" width="89" height="28" /> 
                                        </a> 
                                    </td> 
                                    <td id="WLTab" runat="server" height="28px" valign="top">  
                                        <a href="lpr_watchlist.aspx">  
                                            <img src="images/watchlist_back.jpg" alt="" border="0" width="90" height="28" /> 
                                        </a> 
                                    </td> 
                                </tr> 
                            </table> 
                        </telerik:RadPane> 
                        <telerik:RadSplitBar ID="RadSplitbar2" runat="server" CollapseMode="None" EnableResize="false"/>  
                        <telerik:RadPane ID="navigationPane" 
                                         runat="server" 
                                         Width="100%" 
                                         Scrolling="None" 
                                         Height="100%" 
                                         BorderStyle="None" 
                                         BorderWidth="0px" 
                                         BorderColor="#D1D8E2">  
                            <telerik:RadTreeView   
                                ID="RadTreeView1"   
                                runat="server" 
                                Width="100%" 
                                Height="100%" 
                                BackColor="#D1D8E2"                                          
                                AutoPostBack="True"   
                                OnClientNodeChecked="AfterCheckHandler"   
                                OnClientNodePopulated="AfterClientToggle" 
                                OnClientNodeExpanded="onClientNodeToggle" 
                                OnClientNodeCollapsed="onClientNodeToggle"   
                                CheckBoxes="true" 
                                MultipleSelect="true" 
                                OnNodeExpand="RadTreeView1_NodeExpand" 
                                LoadingMessage="(loading...)">  
                            </telerik:RadTreeView> 
                        </telerik:RadPane> 
                    </telerik:RadSplitter> 
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward" EnableResize="false"/>  
                <telerik:RadPane ID="rightPane"   
                                 runat="server"   
                                 Width="100%"   
                                 Scrolling="None"   
                                 Height="100%"   
                                 BackColor="#232323"   
                                 BorderStyle="None"   
                                 BorderWidth="0px"   
                                 BorderColor="#D1D8E2">  
                    <telerik:RadSplitter ID="RadSplitter3"   
                                 runat="server"   
                                 Width="100%"   
                                 Height="100%" 
                                 Skin="WebBlue"   
                                 BorderSize="0"   
                                 Orientation="Horizontal" 
                                 PanesBorderSize="0"   
                                 BorderWidth="0">  
                        <telerik:RadPane ID="ViewPane"   
                                         runat="server"   
                                         Width="100%"   
                                         Scrolling="None"   
                                         Height="350px"   
                                         BackColor="#232323"   
                                         BorderStyle="None"   
                                         BorderWidth="0px"   
                                         BorderColor="#D1D8E2">  
                            <iframe id="viewFrame" src="lpr_wmplayback.aspx" frameborder="0" width="100%" height="350px" scrolling="no"></iframe>                  
                        </telerik:RadPane> 
                        <telerik:RadSplitBar ID="RadSplitbar3" runat="server" CollapseMode="None" EnableResize="false"/>  
                        <telerik:RadPane ID="ResultsPane"   
                                         runat="server"   
                                         Width="50%"   
                                         Scrolling="None"   
                                         Height="100%"   
                                         BackColor="#D1D8E2"   
                                         BorderStyle="None"   
                                         BorderWidth="0px"   
                                         BorderColor="#D1D8E2">  
                            <iframe id="gridFrame" src="lpr_radgrid.aspx" frameborder="0" width="100%" height="100%" runat="server" scrolling="no"></iframe> 
                        </telerik:RadPane> 
                        <telerik:RadSplitBar ID="RadSplitbar4" runat="server" CollapseMode="Backward" EnableResize="true"/>  
                        <telerik:RadPane ID="CriteriaPane"   
                                         runat="server"   
                                         Width="100%"   
                                         Scrolling="None"   
                                         Height="100px"   
                                         BackColor="#D1D8E2"   
                                         BorderStyle="None"   
                                         BorderWidth="0px"   
                                         BorderColor="#D1D8E2">  
                            <table border="0" id="tblCriteria" cellpadding="1" cellspacing="1" width="100%" class="ArchiveGrid">  
                                <tr> 
                                    <td align="right" nowrap="nowrap">Search Plate Number:</td> 
                                    <td align="left" nowrap="nowrap">  
                                        <telerik:RadTextBox ID="txtPlateNum" runat="server" TextMode="SingleLine" Width="100px">  
                                        </telerik:RadTextBox> 
                                    </td> 
                                    <td align="right" nowrap="nowrap">Accuracy:</td> 
                                    <td align="left" nowrap="nowrap">  
                                        <telerik:RadNumericTextBox ID="txtAccuracy" runat="server" MaxValue="100" MinValue="25" Type="Percent" Width="80px" ShowSpinButtons="True" ClientEvents-OnValueChanged="txtAccuracy_OnValueChanged">  
                                        </telerik:RadNumericTextBox> 
                                    </td> 
                                    <td align="right" nowrap="nowrap">Start Date:</td> 
                                    <td align="left" nowrap="nowrap">  
                                        <telerik:RadDatePicker ID="StartDatePicker" runat="server">  
                                        </telerik:RadDatePicker> 
                                        <asp:RequiredFieldValidator runat="server" ID="rfvStartDate" ControlToValidate="StartDatePicker" ErrorMessage="Valid Date Required" /> 
                                    </td> 
                                    <td align="right" nowrap="nowrap">End Date:</td> 
                                    <td align="left" nowrap="nowrap">  
                                        <telerik:RadDatePicker ID="EndDatePicker" runat="server">  
                                        </telerik:RadDatePicker> 
                                        <asp:RequiredFieldValidator runat="server" ID="rfvEndDate" ControlToValidate="EndDatePicker" ErrorMessage="Valid Date Required" /> 
                                    </td> 
                                    <td align="right" nowrap="nowrap">  
                                        <asp:Button ID="btn_Search" runat="server" BackColor="White" Text="Search"  Width="60px" style="font-weight: bold; margin: 5px; font-size: 8pt; width: 60px; color: #383838; height: 22px; background-color: #a7b7c6;" /> 
                                    </td> 
 
                                </tr> 
                                <tr> 
                                    <td align="right" nowrap="nowrap">Defined Searches:</td> 
                                    <td align="left" colspan="3" nowrap="nowrap">  
                                        <telerik:RadComboBox ID="cboDefinedSearches" runat="server">  
                                        </telerik:RadComboBox> 
                                    </td> 
                                    <td align="right" nowrap="nowrap">Start Time:</td> 
                                    <td align="left" nowrap="nowrap">  
                                        <telerik:RadTimePicker ID="StartTimePicker" runat="server">  
                                        </telerik:RadTimePicker> 
                                        <asp:RequiredFieldValidator runat="server" ID="rfvStartTime" ControlToValidate="StartTimePicker" ErrorMessage="Valid Time Required" /> 
                                    </td> 
                                    <td align="right" nowrap="nowrap">End Time:</td> 
                                    <td align="left" nowrap="nowrap">  
                                        <telerik:RadTimePicker ID="EndTimePicker" runat="server">  
                                        </telerik:RadTimePicker> 
                                        <asp:RequiredFieldValidator runat="server" ID="rfvEndTime" ControlToValidate="EndTimePicker" ErrorMessage="Valid Time Required" /> 
                                    </td> 
                                    <td nowrap="nowrap">&nbsp;</td> 
                                </tr> 
                                <tr> 
                                    <td align="right" nowrap="nowrap">Search Watch List:</td> 
                                    <td align="left" colspan="3" nowrap="nowrap">  
                                        <telerik:RadComboBox ID="cboWatchList" runat="server">  
                                        </telerik:RadComboBox> 
                                    </td> 
                                    <td colspan="2" nowrap="nowrap">&nbsp;</td> 
                                    <td colspan="2" nowrap="nowrap">  
                                        <asp:CompareValidator ID="dcvSearch" runat="server" ControlToValidate="EndDatePicker" ControlToCompare="StartDatePicker" Operator="GreaterThanEqual" Type="Date" ErrorMessage="The end date must be on or after the start date.<br /><br />" /> 
                                    </td> 
                                    <td nowrap="nowrap">&nbsp;</td> 
                                </tr> 
                            </table> 
                        </telerik:RadPane> 
                    </telerik:RadSplitter> 
                </telerik:RadPane> 
            </telerik:RadSplitter> 
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
                <ConfirmTemplate> 
                    <div class="windowpopup radconfirm">     
                       <div class="dialogtext"> {1} </div>        
                       <div> 
                         <a onclick="$find('{0}').callBack(true);" 
                            class="radwindowbutton" 
                            href="javascript:void(0);" > 
                           <span class="outerspan">  
                             <span class="innerspan">##LOC[Yes]##</span> 
                           </span> 
                         </a> 
                         <a onclick="$find('{0}').callBack(false);" 
                            class="radwindowbutton" 
                            href="javascript:void(0);">  
                           <span class="outerspan">  
                             <span class="innerspan">##LOC[No]##</span> 
                           </span> 
                         </a> 
                       </div> 
                    </div>    
                </ConfirmTemplate> 
                <Windows> 
                    <telerik:RadWindow ID="RadAddWindow" runat="server" Animation="None" Behavior="Default" Behaviors="Default" InitialBehaviors="None" InitialBehavior="None" Left="" NavigateURL="lpr_addToWL.aspx" VisibleOnPageLoad="false" ReloadOnShow="true" Modal="true" Top="" ShowContentDuringLoad="false" Skin="WebBlue" Width="270" Height="190" VisibleStatusbar="false" VisibleTitlebar="false"></telerik:RadWindow> 
                    <telerik:RadWindow ID="RadVerifyWindow"   
                                        runat="server"   
                                        Animation="None"   
                                        Behavior="Default"   
                                        Behaviors="Default"   
                                        InitialBehaviors="None"   
                                        InitialBehavior="None"   
                                        Left=""   
                                        NavigateURL="lpr_addToWL.aspx"   
                                        VisibleOnPageLoad="false"   
                                        ReloadOnShow="true"   
                                        Modal="true"   
                                        Top=""   
                                        ShowContentDuringLoad="false"   
                                        Skin="WebBlue" Width="460"   
                                        Height="490"   
                                        VisibleStatusbar="false"   
                                        VisibleTitlebar="false"></telerik:RadWindow> 
                    <telerik:RadWindow ID="RadStatsWindow"   
                                        runat="server"   
                                        Animation="None"   
                                        Behavior="Default"   
                                        Behaviors="Default"   
                                        InitialBehaviors="None"   
                                        InitialBehavior="None"   
                                        Left=""   
                                        NavigateURL="lpr_visitchart.aspx"   
                                        VisibleOnPageLoad="false"   
                                        ReloadOnShow="true"   
                                        Modal="true"   
                                        Top=""   
                                        ShowContentDuringLoad="false"   
                                        Skin="WebBlue"   
                                        Width="640"   
                                        Height="710"   
                                        VisibleStatusbar="false"   
                                        VisibleTitlebar="true"></telerik:RadWindow> 
                </Windows> 
            </telerik:RadWindowManager> 
        </form> 
    </body> 
</html> 
 

Any help or insight would be apprecitated.

--Frank Prevatt
Tsvetie
Telerik team
 answered on 01 Apr 2010
3 answers
83 views
Hi all,

in short:

- the Grid is built completeley in Codebehind, because some columns are added dynamically - no problem that works fine.
- one Column contains an imagebutton, which is used also as an indicator with different colors - works fine
- Rowclick opens a popup window - where data can be entered, changed and deleted - works fine
- Clicking the Savebutton in the popup window, the data is saved in the database and the js closes the window - works fine
- on the initial Page the refreshGrid fires - works fine
- in the AJAX-Eventhandler in Codebehind, the fired event arrives and there a rebind is initiated - works fine
- the Grid is built new, all data is inserted and it runs also through the decision in which color the Imagebutton has to appear - works fine
- the page appears in the browser... the new imagebutton does NOT appear

It's the same code in the same order as if the page is entered the first time (where all is working as expected)

When the entire Page is refreshed by hitting F5 or get the page new from menu, all appears as expected - just not after a refreshGrid...

Anyone an idea, what could be the reason and what I can do to resolve this problem? Thanks in advance!


Regards
Franco

Yavor
Telerik team
 answered on 01 Apr 2010
10 answers
250 views
Hi guys,

I'm doing custom filtering and need to know what item the user has selected as the filtering option (StartsWith, EndsWith, Contains, etc.)

I can get a reference to the value in the filter textbox like this:

 fbox = CType((CType(e.Item, GridFilteringItem))("Description").Controls(0), TextBox) 

How do I get a reference to the adjacent Combobox and its selected item?

Thanks,

Ken
Daniel
Telerik team
 answered on 01 Apr 2010
4 answers
110 views
Hi,

i have been working with radgrid for over a year and never came across this problem.
i have a custom query which i run and get a datatable and assign this as a data source to the grid.
it loads fine for the first time, but when i try to get different data on

SelectedIndexChanged event for a drop down, it doesnt trigger the postback event.
i have made sure the autopostback property is set to true on the drop down and i also made sure i am not loading the dropdown on postbacks.

i have a published page which works fine but when i try to run it on localhost it doesnt postback.

i have been trying to find a fix for two days and couldnt figure it out. can you kindly help me with this. its important i fix this soon.

thank you,

Murali

Mira
Telerik team
 answered on 01 Apr 2010
1 answer
98 views
How to remove horizontal scroll bars in rad pane.
Even though we are applying SCROLLING PROPERTY TO "Y" IT IS NOT FUNCTIONING
Why I am not understanding it is eating my brain, any help would be great for me to complete the task ASAP.
wk
Top achievements
Rank 1
 answered on 01 Apr 2010
1 answer
130 views
Hi,

Is that posible to set a background image for a cell?
For example 1st Jan, if i want to set a background image for it, how can i do that?

Regards,
Iry
Shinu
Top achievements
Rank 2
 answered on 01 Apr 2010
2 answers
132 views
Hi, everyone.

I have this stable piece of code which i've just tested in firefox 3.5.8, and it worked fine as expected.

It's a RadGrid. One of its columns is a specific GridTemplateColumn with a HyperLink inside.

Then i got some complaints about the link not working anymore (the user clicked on it and nothing happened). The browser used was Firefox 3.6.2 (latest), so i've updated mine and tested it.

Same result: the hyperlink stopped working and does not trigger the redirection.
The code is intact, hasn't changed a line.

Any help is appreciated, thanks in advance


Lucas
Pavel
Telerik team
 answered on 01 Apr 2010
5 answers
119 views
I have a RadGrid with GridBoundColumns . I need to do javascript validations for the BoundColumns.

I tried the following code .But I was getting error in MasterTableView

function

 

Validation(txt)

 

{

var grid=document.getElementById("<%= Radgrid1.ClientID %>");
var masterTable = grid.get_masterTableView();  
        for (var i = 0; i < masterTable.get_dataItems().length; i++)  
        {  
            // to access the textbox in each row 
           var txtbx = masterTable.get_dataItems()[i].findElement("vchConsignmentTypeName");
 alert(txtbx);
             // set alert
 
        }  
}

<

 

telerik:GridBoundColumn DataField="vchConsignmentTypeName"  HeaderText="Consignment*" UniqueName="vchConsignmentTypeName" />

 


I am calling the javascript from code behind as

Protected

 

Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand

 

ScriptManager.RegisterStartupScript(

Me, Me.GetType(), "Msg", "<script>Validation();</script>", False)

 

End

 

Sub

I am getting the error exactly at grid.get_masterTableView();  
Please help me

 

Yavor
Telerik team
 answered on 01 Apr 2010
1 answer
152 views

Hi -

Here I am Samar Singh want to display the Paging Section and Images for Sorting in my RadGrid control in the following way that i putted in Red Circle  in the bellow attached .jpg file.

So please analyze this one and provide me a way to do this one to implement it in my project.

Thanks in Advance.

 

 

 

Thanks & Regards

Samar Singh (KMG Infotech Pvt.)
Email_Id : samar.singh@kmgin.com

Yavor
Telerik team
 answered on 01 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?